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
initialPositionsmust be the same as the object sizes described byview - Parameters
view: The view that contains the input RigidMotion and output particlesinitialPositions: The positions of the particles in the frame of reference of the objectaction: Apply the rigid motion to positions or positions and velocitiesstream: execution stream