Rigid

Rigid body representation and tools

Rigid state structure

Tools

void mirheo::rigid_operations::collectRigidForces(const ROVview &view, cudaStream_t stream)

Reduce the forces contained in the particles to the force and torque variable of the RigidMotion objects.

enum mirheo::rigid_operations::ApplyTo

controls to what quantities to apply the

Values:

PositionsOnly
PositionsAndVelocities
void mirheo::rigid_operations::applyRigidMotion(const ROVview &view, const PinnedBuffer<real4> &initialPositions, ApplyTo action, cudaStream_t stream)

Set the positions (and optionally velocities, according to the rigid motions.

Note
The size of initialPositions must be the same as the object sizes described by view
Parameters
  • view: The view that contains the input RigidMotion and output particles
  • initialPositions: The positions of the particles in the frame of reference of the object
  • action: Apply the rigid motion to positions or positions and velocities
  • stream: execution stream

void mirheo::rigid_operations::clearRigidForcesFromMotions(const ROVview &view, cudaStream_t stream)

set the force and torques of the RigidMotion objects to zero