ConstraintLocalAccessBase

class hoomd.data.ConstraintLocalAccessBase(state)

Directly access constraint data in the simulation state.

value

The constraint value.

Type:

(N_constraints) HOOMDArray or HOOMDGPUArray of float

members

the tags of particles in a constraint.

Type:

(N_constraints, 3) HOOMDArray or HOOMDGPUArray of int

tag

The constraint tags. MPI domain migration reorders constraints in memory. The constraint tag identifies each constraint in the order it existed in the initial configuration.

Type:

(N_constraints) HOOMDArray or HOOMDGPUArray of int

rtag

The constraint reverse tags. For a given constraint tag tag, i = constraints.rtag[tag] is the array index holding that constraint.

Type:

(N_constraints_global) HOOMDArray or HOOMDGPUArray of int