pub struct DumpTimeSeries {
pub frames: Vec<LammpsDumpFrame>,
}Expand description
Analysis utilities for a time series of LAMMPS dump frames.
Fields§
§frames: Vec<LammpsDumpFrame>All frames in the series.
Implementations§
Source§impl DumpTimeSeries
impl DumpTimeSeries
Sourcepub fn new(frames: Vec<LammpsDumpFrame>) -> Self
pub fn new(frames: Vec<LammpsDumpFrame>) -> Self
Construct from a vector of frames.
Sourcepub fn mean_ke_series(&self) -> Vec<Option<f64>>
pub fn mean_ke_series(&self) -> Vec<Option<f64>>
Extract mean kinetic energy per frame.
Sourcepub fn number_density_series(&self) -> Vec<f64>
pub fn number_density_series(&self) -> Vec<f64>
Extract number density per frame.
Sourcepub fn frame_at_timestep(&self, ts: u64) -> Option<&LammpsDumpFrame>
pub fn frame_at_timestep(&self, ts: u64) -> Option<&LammpsDumpFrame>
Get the frame at a given timestep, if present.
Auto Trait Implementations§
impl Freeze for DumpTimeSeries
impl RefUnwindSafe for DumpTimeSeries
impl Send for DumpTimeSeries
impl Sync for DumpTimeSeries
impl Unpin for DumpTimeSeries
impl UnsafeUnpin for DumpTimeSeries
impl UnwindSafe for DumpTimeSeries
Blanket Implementations§
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.