Go to the documentation of this file.
6 #ifndef OPENMPCD_CUDA_MPCFLUID_DEVICECODE_CHAINS_HPP
7 #define OPENMPCD_CUDA_MPCFLUID_DEVICECODE_CHAINS_HPP
41 const unsigned int chainLength,
42 const MPCParticleVelocityType*
const velocities,
43 MPCParticleVelocityType*
const comVelocities);
62 const unsigned int workUnitOffset,
63 const unsigned int chainLength,
64 const MPCParticleVelocityType*
const velocities,
65 MPCParticleVelocityType*
const comVelocities);
78 const unsigned int chainID,
79 const unsigned int chainLength,
80 const MPCParticleVelocityType*
const velocities);
void getCenterOfMassVelocities_chain(const unsigned int mpcParticleCount, const unsigned int chainLength, const MPCParticleVelocityType *const velocities, MPCParticleVelocityType *const comVelocities)
Saves the center-of-mass velocities of the MPC fluid's chains to the given buffer.
__global__ void getCenterOfMassVelocities_chain_kernel(const unsigned int workUnitOffset, const unsigned int chainLength, const MPCParticleVelocityType *const velocities, MPCParticleVelocityType *const comVelocities)
Saves the center-of-mass velocities of the MPC fluid's chains to the given buffer.
__constant__ unsigned int mpcParticleCount
The number of MPC fluid particles.
__device__ Vector3D< MPCParticleVelocityType > getCenterOfMassVelocity_chain(const unsigned int chainID, const unsigned int chainLength, const MPCParticleVelocityType *const velocities)
Returns the center-of-mass velocity of for the given chain.