[][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 Clone for AngularMom[src]

impl Copy for AngularMom[src]

impl Debug for AngularMom[src]

impl Dynamics for AngularMom[src]

type StateSize = U3

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

type StateType = Vector3<f64>

Defines the type which will be published on the propagator channel

fn state_vector(&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.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,