pub struct SymplecticEuler { /* private fields */ }
Expand description
Basic symplectic Euler integrator
slightly slower than super::SymplecticEulerRayon
(for appropriate choice of number_of_thread
)
but use less memory
For an example see the module level documentation super
.
Implementations§
Trait Implementations§
source§impl Clone for SymplecticEuler
impl Clone for SymplecticEuler
source§fn clone(&self) -> SymplecticEuler
fn clone(&self) -> SymplecticEuler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SymplecticEuler
impl Debug for SymplecticEuler
source§impl Default for SymplecticEuler
impl Default for SymplecticEuler
source§impl<'de> Deserialize<'de> for SymplecticEuler
impl<'de> Deserialize<'de> for SymplecticEuler
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SymplecticEuler
impl Display for SymplecticEuler
source§impl Hash for SymplecticEuler
impl Hash for SymplecticEuler
source§impl PartialEq<SymplecticEuler> for SymplecticEuler
impl PartialEq<SymplecticEuler> for SymplecticEuler
source§fn eq(&self, other: &SymplecticEuler) -> bool
fn eq(&self, other: &SymplecticEuler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SymplecticEuler
impl Serialize for SymplecticEuler
source§impl<State, const D: usize> SymplecticIntegrator<State, SimulationStateLeap<State, D>, D> for SymplecticEulerwhere
State: SimulationStateSynchronous<D> + LatticeStateWithEField<D> + LatticeStateWithEFieldNew<D>,
impl<State, const D: usize> SymplecticIntegrator<State, SimulationStateLeap<State, D>, D> for SymplecticEulerwhere State: SimulationStateSynchronous<D> + LatticeStateWithEField<D> + LatticeStateWithEFieldNew<D>,
§type Error = SymplecticEulerError<<State as LatticeStateWithEFieldNew<D>>::Error>
type Error = SymplecticEulerError<<State as LatticeStateWithEFieldNew<D>>::Error>
Type of error returned by the Integrator.
source§fn integrate_sync_sync(
&self,
l: &State,
delta_t: Real
) -> Result<State, Self::Error>
fn integrate_sync_sync( &self, l: &State, delta_t: Real ) -> Result<State, Self::Error>
Integrate a sync state to a sync state by advancing the link matrices and the electrical field simultaneously. Read more
source§fn integrate_leap_leap(
&self,
l: &SimulationStateLeap<State, D>,
delta_t: Real
) -> Result<SimulationStateLeap<State, D>, Self::Error>
fn integrate_leap_leap( &self, l: &SimulationStateLeap<State, D>, delta_t: Real ) -> Result<SimulationStateLeap<State, D>, Self::Error>
Integrate a leap state to a leap state using leap frog algorithm. Read more
source§fn integrate_sync_leap(
&self,
l: &State,
delta_t: Real
) -> Result<SimulationStateLeap<State, D>, Self::Error>
fn integrate_sync_leap( &self, l: &State, delta_t: Real ) -> Result<SimulationStateLeap<State, D>, Self::Error>
Integrate a sync state to a leap state by doing a half step for the conjugate momenta. Read more
source§fn integrate_leap_sync(
&self,
l: &SimulationStateLeap<State, D>,
delta_t: Real
) -> Result<State, Self::Error>
fn integrate_leap_sync( &self, l: &SimulationStateLeap<State, D>, delta_t: Real ) -> Result<State, Self::Error>
Integrate a leap state to a sync state by finishing doing a step for the position and finishing
the half step for the conjugate momenta. Read more
impl Copy for SymplecticEuler
impl Eq for SymplecticEuler
impl StructuralEq for SymplecticEuler
impl StructuralPartialEq for SymplecticEuler
Auto Trait Implementations§
impl RefUnwindSafe for SymplecticEuler
impl Send for SymplecticEuler
impl Sync for SymplecticEuler
impl Unpin for SymplecticEuler
impl UnwindSafe for SymplecticEuler
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.