Go to the documentation of this file.
6 #ifndef OPENMPCD_CUDA_MPCFLUID_DEVICECODE_TRIPLETS_HPP
7 #define OPENMPCD_CUDA_MPCFLUID_DEVICECODE_TRIPLETS_HPP
28 const MPCParticleVelocityType*
const velocities,
29 MPCParticleVelocityType*
const comVelocities);
38 const unsigned int workUnitOffset,
39 const MPCParticleVelocityType*
const velocities,
40 MPCParticleVelocityType*
const comVelocities);
49 const unsigned int tripletID,
50 const MPCParticleVelocityType*
const velocities);
__global__ void getCenterOfMassVelocities_triplet_kernel(const unsigned int workUnitOffset, const MPCParticleVelocityType *const velocities, MPCParticleVelocityType *const comVelocities)
Saves the center-of-mass velocities of the MPC fluid's triplets to the given buffer.
__constant__ unsigned int mpcParticleCount
The number of MPC fluid particles.
__device__ Vector3D< MPCParticleVelocityType > getCenterOfMassVelocity_triplet(const unsigned int tripletID, const MPCParticleVelocityType *const velocities)
Returns the center-of-mass velocity of for the given triplet.
void getCenterOfMassVelocities_triplet(const unsigned int mpcParticleCount, const MPCParticleVelocityType *const velocities, MPCParticleVelocityType *const comVelocities)
Saves the center-of-mass velocities of the MPC fluid's triplets to the given buffer.