Pressure

Trait Pressure 

Source
pub trait Pressure {
    // Required methods
    fn pressure(&self) -> &f64;
    fn pressure_mut(&mut self) -> &mut f64;
}
Expand description

Set the thermodynamic pressure of a system.

Macrostates with the Pressure trait set the pressure of the simulation. In hoomd-rs, 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::Isobaric;

let macrostate = Isobaric { pressure: 0.4 };

Required Methods§

Source

fn pressure(&self) -> &f64

The system’s pressure $([\mathrm{energy}] \cdot [\mathrm{length}]^{-D})$.

Source

fn pressure_mut(&mut self) -> &mut f64

The system’s pressure $([\mathrm{energy}] \cdot [\mathrm{length}]^{-D})$.

Implementors§