ParticleLocalAccessBase¶
- class hoomd.data.ParticleLocalAccessBase(state)¶
Directly access particle data in the simulation state.
Note
Changing some attributes (such as
velocity
andacceleration
) may not alter the trajectory of the system as you would expect. Themd.Integrator
is responsible for integrating the equations of motion and manages the values in these arrays.- typeid¶
The integer type of a particle.
- Type:
(N_particles)
HOOMDArray
orHOOMDGPUArray
offloat
- tag¶
The particle tags. Spatial sorting and MPI domain migration reorders particles in memory. The particle tag identifies each particle in the order it existed in the initial configuration.
- Type:
(N_particles)
HOOMDArray
orHOOMDGPUArray
ofint
- rtag¶
The particle reverse tags. For a given particle tag
tag
,i = particles.rtag[tag]
is the array index holding that particle.- Type:
(N_particles_global)
HOOMDArray
orHOOMDGPUArray
ofint
- position¶
Particle positions .
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
offloat
- image¶
A count of how many times each particle crosses the periodic box boundaries.
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
ofint
- velocity¶
Particle velocities .
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
offloat
- acceleration¶
Particle accelerations .
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
offloat
- mass¶
Particle masses .
- Type:
(N_particles)
HOOMDArray
orHOOMDGPUArray
offloat
- orientation¶
Particle orientations expressed as quaternions.
- Type:
(N_particles, 4)
HOOMDArray
orHOOMDGPUArray
offloat
- angmom¶
Particle angular momenta expressed as quaternions .
- Type:
(N_particles, 4)
HOOMDArray
orHOOMDGPUArray
offloat
- moment_inertia¶
Particle principal moments of inertia .
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
offloat
- charge¶
Particle electrical charges .
- Type:
(N_particles)
HOOMDArray
orHOOMDGPUArray
offloat
- diameter¶
Particle diameters .
- Type:
(N_particles)
HOOMDArray
orHOOMDGPUArray
offloat
- body¶
The id of the rigid body the particle is in.
- Type:
(N_particles)
HOOMDArray
orHOOMDGPUArray
ofint
- net_force¶
Net force on particle .
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
offloat
- net_torque¶
Net torque on particle .
- Type:
(N_particles, 3)
HOOMDArray
orHOOMDGPUArray
offloat
- net_virial¶
Net virial on particle .
- Type:
(N_particles, 6)
HOOMDArray
orHOOMDGPUArray
offloat
- net_energy¶
Net energy of a particle .
- Type:
(N_particles,)
HOOMDArray
orHOOMDGPUArray
offloat