pub struct IsothermalIsobaric {
pub temperature: f64,
pub pressure: f64,
}Expand description
Constant temperature, constant pressure macrostate.
Use IsothermalIsobaric to set both the system temperature and pressure
using a thermostat and barostat or Monte
Carlo trial moves.
- Temperature is given in units of $
[\mathrm{energy}]$: $\mathrm{temperature} = kT$. - Pressure is given in units of $
[\mathrm{energy}] \cdot [\mathrm{length}]^{-D}$ where $D$ is the dimensionality of the system.
§Example
use hoomd_simulation::macrostate::Isothermal;
let macrostate = Isothermal { temperature: 1.2 };Fields§
§temperature: f64Kinetic temperature of the system.
pressure: f64Pressure of the system.
Trait Implementations§
Source§impl Clone for IsothermalIsobaric
impl Clone for IsothermalIsobaric
Source§fn clone(&self) -> IsothermalIsobaric
fn clone(&self) -> IsothermalIsobaric
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 moreSource§impl Debug for IsothermalIsobaric
impl Debug for IsothermalIsobaric
Source§impl<'de> Deserialize<'de> for IsothermalIsobaric
impl<'de> Deserialize<'de> for IsothermalIsobaric
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IsothermalIsobaric
impl PartialEq for IsothermalIsobaric
Source§impl Pressure for IsothermalIsobaric
impl Pressure for IsothermalIsobaric
Source§impl Serialize for IsothermalIsobaric
impl Serialize for IsothermalIsobaric
Source§impl Temperature for IsothermalIsobaric
impl Temperature for IsothermalIsobaric
Source§fn temperature(&self) -> &f64
fn temperature(&self) -> &f64
The system’s temperature $
([\mathrm{energy}])$.Source§fn temperature_mut(&mut self) -> &mut f64
fn temperature_mut(&mut self) -> &mut f64
The system’s temperature $
([\mathrm{energy}])$.impl StructuralPartialEq for IsothermalIsobaric
Auto Trait Implementations§
impl Freeze for IsothermalIsobaric
impl RefUnwindSafe for IsothermalIsobaric
impl Send for IsothermalIsobaric
impl Sync for IsothermalIsobaric
impl Unpin for IsothermalIsobaric
impl UnsafeUnpin for IsothermalIsobaric
impl UnwindSafe for IsothermalIsobaric
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