pub struct EulerIntegrator;Expand description
Euler integrator (1st order, non-symplectic).
Simple but inaccurate. Energy drifts over time. Useful for comparison and debugging.
Implementations§
Trait Implementations§
Source§impl Clone for EulerIntegrator
impl Clone for EulerIntegrator
Source§fn clone(&self) -> EulerIntegrator
fn clone(&self) -> EulerIntegrator
Returns a duplicate 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 EulerIntegrator
impl Debug for EulerIntegrator
Source§impl Default for EulerIntegrator
impl Default for EulerIntegrator
Source§fn default() -> EulerIntegrator
fn default() -> EulerIntegrator
Returns the “default value” for a type. Read more
Source§impl Integrator for EulerIntegrator
impl Integrator for EulerIntegrator
Source§fn step(
&self,
state: &mut SimState,
force_field: &dyn ForceField,
dt: f64,
) -> SimResult<()>
fn step( &self, state: &mut SimState, force_field: &dyn ForceField, dt: f64, ) -> SimResult<()>
Step the state forward by one timestep. Read more
Source§fn error_order(&self) -> u32
fn error_order(&self) -> u32
Get the error order of this integrator.
Source§fn is_symplectic(&self) -> bool
fn is_symplectic(&self) -> bool
Check if integrator is symplectic (preserves phase space volume).
Auto Trait Implementations§
impl Freeze for EulerIntegrator
impl RefUnwindSafe for EulerIntegrator
impl Send for EulerIntegrator
impl Sync for EulerIntegrator
impl Unpin for EulerIntegrator
impl UnsafeUnpin for EulerIntegrator
impl UnwindSafe for EulerIntegrator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more