Loading [MathJax]/extensions/TeX/AMSmath.js
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
npt_inline.hpp File Reference
#include "config/config.hpp"
#include "random.hpp"
#include "thermostat.hpp"
#include <utils/Vector.hpp>
#include <cstddef>
+ Include dependency graph for npt_inline.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Utils::Vector3d propagate_therm0_nptiso (IsotropicNptThermostat const &npt_iso, Utils::Vector3d const &vel, double mass, int p_identity)
 Add velocity-dependent noise and friction for NpT-sims to the particle's velocity; \( p(t) = p(t) \exp(- \gamma_0 dt / m) + \sqrt{k_B T (1 - \exp(-2 \gamma_0 dt)}N(0,1) \).
 
double propagate_thermV_nptiso (IsotropicNptThermostat const &npt_iso, double p_epsilon, double piston)
 Added noise and friction for NpT-sims to NptIsoParameters::p_epsilon; \( p_{\epsilon} = p_{epsilon}(t) \exp(- \gamma_V dt / W) + \sqrt{k_B T (1 - \exp(-2 \gamma_V dt / W)}N(0,1) \).
 

Function Documentation

◆ propagate_therm0_nptiso()

Utils::Vector3d propagate_therm0_nptiso ( IsotropicNptThermostat const &  npt_iso,
Utils::Vector3d const &  vel,
double  mass,
int  p_identity 
)
inline

Add velocity-dependent noise and friction for NpT-sims to the particle's velocity; \( p(t) = p(t) \exp(- \gamma_0 dt / m) + \sqrt{k_B T (1 - \exp(-2 \gamma_0 dt)}N(0,1) \).

Parameters
npt_isoParameters
velparticle velocity
massparticle mass
p_identityparticle identity
Returns
velocity added noise

Definition at line 48 of file npt_inline.hpp.

References IsotropicNptThermostat::gamma0, IsotropicNptThermostat::pref_noise_0, IsotropicNptThermostat::pref_rescale_0, BaseThermostat::rng_counter(), and BaseThermostat::rng_seed().

Referenced by velocity_verlet_npt_propagate_pos().

◆ propagate_thermV_nptiso()

double propagate_thermV_nptiso ( IsotropicNptThermostat const &  npt_iso,
double  p_epsilon,
double  piston 
)
inline

Added noise and friction for NpT-sims to NptIsoParameters::p_epsilon; \( p_{\epsilon} = p_{epsilon}(t) \exp(- \gamma_V dt / W) + \sqrt{k_B T (1 - \exp(-2 \gamma_V dt / W)}N(0,1) \).

Parameters
npt_isoParameters
p_epsilonconjugate momentum of volume
pistonpiston mass
Returns
conjugate momentum of volume added noise

Definition at line 69 of file npt_inline.hpp.

References IsotropicNptThermostat::gammav, IsotropicNptThermostat::pref_noise_V, IsotropicNptThermostat::pref_rescale_V, BaseThermostat::rng_counter(), and BaseThermostat::rng_seed().

Referenced by velocity_verlet_npt_propagate_pos().