FixLangevin applies stochastic forces to particles in the system via Langevin dynamics
where \({\bf v}_i\) is velocity of particle \(i\), \(\Delta t\) is timestep size, \(T\) is temperature, \(\gamma\) is a drag parameter, and \({\bf W}_i\) is a Wiener vector.
Constructors
FixLangevin(state=..., handle=..., groupHandle=..., temp=...)
FixLangevin(state=..., handle=..., groupHandle=..., tempFunc=...)
FixLangevin(state=..., handle=..., groupHandle=..., intervals=... , temps=...)
Arguments
There are few options to change temperature dynamically:
Setting parameters from within the Python environment is done with setParameters.
setParameters(seed=..., gamma=...)
Arguments
Adding the integrator
fixLangevin=FixLangevin(state, handle='Lang',groupHandle='all',temp=2.0)
Setting parameters in python
fixLangevin.setParameters(seed=1234,gamma=1.0)
Activating the fix
#Activate fix
state.activateFix(fixLangevin)