pub struct LammpsLogParser;Expand description
Parse LAMMPS thermo output from a log file string.
Looks for lines starting with a header of whitespace-separated column names, then reads subsequent numeric rows.
Implementations§
Source§impl LammpsLogParser
impl LammpsLogParser
Sourcepub fn parse_thermo(log_text: &str) -> Vec<LammpsThermoRecord>
pub fn parse_thermo(log_text: &str) -> Vec<LammpsThermoRecord>
Parse thermo records from a LAMMPS log file string.
Returns a vector of thermo records. Columns are matched by name (case-insensitive). Unknown columns are ignored.
Sourcepub fn parse_wall_time(log_text: &str) -> Option<String>
pub fn parse_wall_time(log_text: &str) -> Option<String>
Extract the total simulation time from a log file.
Looks for a line of the form Total wall time: HH:MM:SS.
Returns None if not found.
Sourcepub fn count_total_steps(log_text: &str) -> u64
pub fn count_total_steps(log_text: &str) -> u64
Count the number of MD steps in a LAMMPS log file.
Looks for lines matching run N and sums up N.
Auto Trait Implementations§
impl Freeze for LammpsLogParser
impl RefUnwindSafe for LammpsLogParser
impl Send for LammpsLogParser
impl Sync for LammpsLogParser
impl Unpin for LammpsLogParser
impl UnsafeUnpin for LammpsLogParser
impl UnwindSafe for LammpsLogParser
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.