Trait nyx_space::dynamics::AccelModel [−][src]
pub trait AccelModel: Send + Sync { fn eom(&self, osc: &Orbit) -> Result<Vector3<f64>, NyxError>; fn dual_eom(
&self,
radius: &Vector3<Hyperdual<f64, U7>>,
osc_ctx: &Orbit
) -> Result<(Vector3<f64>, Matrix3<f64>), NyxError>; }
Expand description
The AccelModel
trait handles immutable dynamics which return an acceleration. Those can be added directly to Celestial Dynamics for example.
Examples include spherical harmonics, i.e. accelerations which do not need to save the current state, only act on it.
Required methods
Defines the equations of motion for this force model from the provided osculating state in the integration frame.