[−][src]Struct nyx_space::dynamics::momentum::AngularMom
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]
tensor: &Matrix3<f64>,
velocity: &Vector3<f64>
) -> AngularMom
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 time(&self) -> f64
[src]
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]
&mut self,
new_t: f64,
new_angular_velocity: &VectorN<f64, Self::StateSize>
)
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]
&self,
_t: f64,
omega: &VectorN<f64, Self::StateSize>
) -> VectorN<f64, Self::StateSize>
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(&self) -> 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]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,