Langevin¶
- class hoomd.md.methods.rattle.Langevin(filter, kT, manifold_constraint, tally_reservoir_energy=False, tolerance=1e-06, default_gamma=1.0, default_gamma_r=(1.0, 1.0, 1.0))¶
Bases:
MethodRATTLE
Langevin dynamics with RATTLE constraint.
- Parameters:
filter (hoomd.filter.filter_like) – Subset of particles to apply this method to.
kT (hoomd.variant.variant_like) – Temperature of the simulation \([\mathrm{energy}]\).
manifold_constraint (hoomd.md.manifold.Manifold) – Manifold constraint.
tally_reservoir_energy (bool) – If true, the energy exchange between the thermal reservoir and the particles is tracked. Total energy conservation can then be monitored by adding
langevin_reservoir_energy_groupname
to the logged quantities. Defaults to False \([\mathrm{energy}]\).tolerance (float) – Defines the tolerated error particles are allowed to deviate from the manifold in terms of the implicit function. The units of tolerance match that of the selected manifold’s implicit function. Defaults to 1e-6
default_gamma (float) – Default drag coefficient for all particle types \([\mathrm{mass} \cdot \mathrm{time}^{-1}]\).
default_gamma_r ([
float
,float
,float
]) – Default rotational drag coefficient tensor for all particles \([\mathrm{time}^{-1}]\).
Translational degrees of freedom
Langevin
uses the same integrator ashoomd.md.methods.Langevin
, which follows the Langevin equations of motion with the additional force term \(- \lambda \vec{F}_\mathrm{M}\). The force \(\vec{F}_\mathrm{M}\) keeps the particles on the manifold constraint, where the Lagrange multiplier \(\lambda\) is calculated via the RATTLE algorithm. For more details about Langevin dynamics seehoomd.md.methods.Langevin
.Use
Brownian
if your system is not underdamped.Example
sphere = hoomd.md.manifold.Sphere(r=5) langevin_rattle = hoomd.md.methods.rattle.Langevin( filter=hoomd.filter.All(), kT=1.5, manifold_constraint=sphere, default_gamma=1.0, default_gamma_r=(1.0, 1.0, 1.0), ) simulation.operations.integrator.methods = [langevin_rattle]
Members inherited from
AutotunedObject
:- property kernel_parameters¶
Kernel parameters.
Read more...
- property is_tuning_complete¶
Check if kernel parameter tuning is complete.
Read more...
- tune_kernel_parameters()¶
Start tuning kernel parameters.
Read more...
Members inherited from
MethodRATTLE
:- manifold_constraint¶
Manifold constraint.
Read more...
- tolerance¶
Defines the tolerated error particles are allowed to deviate from the manifold in terms of the implicit function.
Read more...
Members defined in
Langevin
:- filter¶
Subset of particles to apply this method to.
- Type:
- kT¶
Temperature of the simulation \([\mathrm{energy}]\).
- Type: