pub struct LammpsRunBlock {
pub timestep: f64,
pub run_steps: u64,
pub thermo_freq: u64,
pub dump_freq: u64,
pub ensemble: String,
pub temp_target: f64,
pub pressure_target: Option<f64>,
}Expand description
Builder for a LAMMPS input script run / timestep / fix block.
Fields§
§timestep: f64Integration timestep in fs.
run_steps: u64Number of MD steps.
thermo_freq: u64Thermo output frequency.
dump_freq: u64Dump output frequency.
ensemble: StringEnsemble: “nve”, “nvt”, “npt”.
temp_target: f64Temperature target (for NVT/NPT).
pressure_target: Option<f64>Pressure target in bar (for NPT).
Implementations§
Source§impl LammpsRunBlock
impl LammpsRunBlock
Sourcepub fn npt(timestep: f64, run_steps: u64, temp: f64, pressure: f64) -> Self
pub fn npt(timestep: f64, run_steps: u64, temp: f64, pressure: f64) -> Self
Create a new NPT run block.
Sourcepub fn thermo_every(self, freq: u64) -> Self
pub fn thermo_every(self, freq: u64) -> Self
Set thermo output frequency.
Sourcepub fn dump_every(self, freq: u64) -> Self
pub fn dump_every(self, freq: u64) -> Self
Set dump frequency.
Sourcepub fn total_time_fs(&self) -> f64
pub fn total_time_fs(&self) -> f64
Total simulated time in fs.
Auto Trait Implementations§
impl Freeze for LammpsRunBlock
impl RefUnwindSafe for LammpsRunBlock
impl Send for LammpsRunBlock
impl Sync for LammpsRunBlock
impl Unpin for LammpsRunBlock
impl UnsafeUnpin for LammpsRunBlock
impl UnwindSafe for LammpsRunBlock
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.