Trait nyx_space::dynamics::AccelModel [−][src]
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
fn eom(&self, osc: &Orbit) -> Result<Vector3<f64>, NyxError>
[src]
Defines the equations of motion for this force model from the provided osculating state in the integration frame.
fn dual_eom(
&self,
radius: &Vector3<Hyperdual<f64, U7>>,
osc_ctx: &Orbit
) -> Result<(Vector3<f64>, Matrix3<f64>), NyxError>
[src]
&self,
radius: &Vector3<Hyperdual<f64, U7>>,
osc_ctx: &Orbit
) -> Result<(Vector3<f64>, Matrix3<f64>), NyxError>
Acceleration models must implement their partials, although those will only be called if the propagation requires the computation of the STM.
Implementors
impl AccelModel for PointMasses
[src]
fn eom(&self, osc: &Orbit) -> Result<Vector3<f64>, NyxError>
[src]
fn dual_eom(
&self,
state: &VectorN<Hyperdual<f64, U7>, U3>,
ctx: &Orbit
) -> Result<(Vector3<f64>, Matrix3<f64>), NyxError>
[src]
&self,
state: &VectorN<Hyperdual<f64, U7>, U3>,
ctx: &Orbit
) -> Result<(Vector3<f64>, Matrix3<f64>), NyxError>