[−][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 Clone for AngularMom
[src]
fn clone(&self) -> AngularMom
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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 time(&self) -> f64
[src]
fn state_vector(&self) -> VectorN<f64, Self::StateSize>
[src]
Returns the angular velocity ω of the system, not its momentum.
fn state(&self) -> Vector3<f64>
[src]
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.
Auto Trait Implementations
impl RefUnwindSafe for AngularMom
impl Send for AngularMom
impl Sync for AngularMom
impl Unpin for AngularMom
impl UnwindSafe for AngularMom
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,