md.constrain

Overview

ConstraintForce

Details

Constraints.

Constraint forces constrain a given set of particle to a given surface, to have some relative orientation, or impose some other type of constraint.

As with other force commands in hoomd, multiple constrain commands can be issued to specify multiple constraints, which are additively applied.

Warning: Constraints will be invalidated if two separate constraint commands apply to the same particle.

The degrees of freedom removed from the system by constraints are correctly taken into account when computing the temperature.

class hoomd.md.constrain.ConstraintForce
check_initialization()
cur_id = 0
disable()

Disable the force.

Example:

force.disable()

Executing the disable command removes the force from the simulation. Any `hoomd.run` command executed after disabling a force will not calculate or use the force during the simulation. A disabled force can be re-enabled with enable()

enable()

Enable the force.

Example:

force.enable()

See disable.

update_coeffs()