pub struct DynamicsResults {
pub positions: Vec<f64>,
pub velocities: Vec<f64>,
pub accelerations: Vec<f64>,
pub kinetic_energy: f64,
pub potential_energy: f64,
pub total_energy: f64,
pub time_steps: Vec<f64>,
}Expand description
Results of a dynamics time-history analysis (Newton’s second law, F = m·a).
Energy is reported in the constant-applied-force potential convention so that
total mechanical energy is conserved: PE = −F·x and
KE + PE = ½·m·v₀² (constant).
Fields§
§positions: Vec<f64>Position x(t) = ½·a·t² + v₀·t at each time step.
velocities: Vec<f64>Velocity v(t) = v₀ + a·t at each time step.
accelerations: Vec<f64>Acceleration a = F/m (constant) at each time step.
kinetic_energy: f64Kinetic energy ½·m·v² at the final time step (J).
potential_energy: f64Potential energy −F·x at the final time step (J), in the constant-force field convention so that KE + PE is conserved.
total_energy: f64Total mechanical energy = KE + PE (J), conserved across the history.
time_steps: Vec<f64>The time steps the analysis was evaluated at.
Trait Implementations§
Source§impl Clone for DynamicsResults
impl Clone for DynamicsResults
Source§fn clone(&self) -> DynamicsResults
fn clone(&self) -> DynamicsResults
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicsResults
impl Debug for DynamicsResults
Source§impl PartialEq for DynamicsResults
impl PartialEq for DynamicsResults
Source§fn eq(&self, other: &DynamicsResults) -> bool
fn eq(&self, other: &DynamicsResults) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DynamicsResults
Auto Trait Implementations§
impl Freeze for DynamicsResults
impl RefUnwindSafe for DynamicsResults
impl Send for DynamicsResults
impl Sync for DynamicsResults
impl Unpin for DynamicsResults
impl UnsafeUnpin for DynamicsResults
impl UnwindSafe for DynamicsResults
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more