pub struct PyNvtSimulation {
pub md: PyMdSimulation,
pub thermostat: NoseHooverThermostat,
}Expand description
NVT ensemble simulation using the Nosé-Hoover thermostat.
Wraps a PyMdSimulation and applies Nosé-Hoover velocity scaling each step.
Fields§
§md: PyMdSimulationUnderlying MD simulation.
thermostat: NoseHooverThermostatNosé-Hoover thermostat.
Implementations§
Source§impl PyNvtSimulation
impl PyNvtSimulation
Sourcepub fn new(config: PyMdConfig, tau: f64) -> Self
pub fn new(config: PyMdConfig, tau: f64) -> Self
Create an NVT simulation from an MD config with given thermostat time τ.
Sourcepub fn add_atom(&mut self, position: [f64; 3], atom_type: u32) -> usize
pub fn add_atom(&mut self, position: [f64; 3], atom_type: u32) -> usize
Add an atom. Returns atom index.
Sourcepub fn temperature(&self) -> f64
pub fn temperature(&self) -> f64
Temperature from instantaneous kinetic energy.
Sourcepub fn step_count(&self) -> u64
pub fn step_count(&self) -> u64
Step count.
Trait Implementations§
Source§impl Clone for PyNvtSimulation
impl Clone for PyNvtSimulation
Source§fn clone(&self) -> PyNvtSimulation
fn clone(&self) -> PyNvtSimulation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PyNvtSimulation
impl RefUnwindSafe for PyNvtSimulation
impl Send for PyNvtSimulation
impl Sync for PyNvtSimulation
impl Unpin for PyNvtSimulation
impl UnsafeUnpin for PyNvtSimulation
impl UnwindSafe for PyNvtSimulation
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.