pub trait Integrator {
// Required methods
fn step(
&self,
state: &mut SimState,
force_field: &dyn ForceField,
dt: f64,
) -> SimResult<()>;
fn error_order(&self) -> u32;
fn is_symplectic(&self) -> bool;
}Expand description
Numerical integrator trait.
Required Methods§
Sourcefn 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<()>
Sourcefn error_order(&self) -> u32
fn error_order(&self) -> u32
Get the error order of this integrator.
Sourcefn is_symplectic(&self) -> bool
fn is_symplectic(&self) -> bool
Check if integrator is symplectic (preserves phase space volume).