[][src]Struct nyx_space::dynamics::momentum::AngularMom

pub struct AngularMom { /* fields omitted */ }

AngularMom exposes the equations of motion for the angular momentum of a rigid body.

Methods

impl AngularMom[src]

pub fn from_tensor_matrix(
    tensor: &Matrix3<f64>,
    velocity: &Vector3<f64>
) -> AngularMom
[src]

Initializes a new AngularMom struct with an time-invariant inertia tensor of a rigid body and its original angular velocity.

Throughout this documentation [I] refers to the inertia tensor and ω to the angular velocity. NOTE: The provided inertia tensor must be expressed in a frame such that it is a diagonal matrix. There is always such a frame. If this is not the primary frame desired, use the parallel axis theorem. This theorem is developped in Schaub & Junkins, "Analytical Mechanics of Space Systems", 3th ed., page 163, section 4.2.2 "Inertia Matrix Properties". This function will panic! if the inertia tensor is not diagonal.

pub fn momentum(&self) -> Vector3<f64>[src]

Returns the angular momentum of the system, i.e. [I]ω

Trait Implementations

impl Dynamics for AngularMom[src]

type StateSize = U3

Defines the state size for these dynamics. It must be imported from nalgebra.

fn state(&self) -> VectorN<f64, Self::StateSize>[src]

Returns the angular velocity ω of the system, not its momentum.

fn set_state(
    &mut self,
    new_t: f64,
    new_angular_velocity: &VectorN<f64, Self::StateSize>
)
[src]

Set the angular velocity ω of the system and the time.

fn eom(
    &self,
    _t: f64,
    omega: &VectorN<f64, Self::StateSize>
) -> VectorN<f64, Self::StateSize>
[src]

Computes the instantaneous equations of motion of the angular velocity of a tensor (i.e. the angular acceleration). [I]̲̇ω = -[̃ω][I]̲ω + ̲L

Source: Schaub & Junkins, 3th ed., eq. 4.32.

impl Copy for AngularMom[src]

impl Clone for AngularMom[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AngularMom[src]

Auto Trait Implementations

impl Send for AngularMom

impl Sync for AngularMom

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>,