Go to the documentation of this file.
6 #ifndef OPENMPCD_CUDA_MPCFLUID_DEVICECODE_DOUBLETS_HPP
7 #define OPENMPCD_CUDA_MPCFLUID_DEVICECODE_DOUBLETS_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 doubletID,
50 const MPCParticleVelocityType*
const velocities);
void getCenterOfMassVelocities_doublet(const unsigned int mpcParticleCount, const MPCParticleVelocityType *const velocities, MPCParticleVelocityType *const comVelocities)
Saves the center-of-mass velocities of the MPC fluid's doublets to the given buffer.
__device__ Vector3D< MPCParticleVelocityType > getCenterOfMassVelocity_doublet(const unsigned int doubletID, const MPCParticleVelocityType *const velocities)
Returns the center-of-mass velocity of for the given doublet.
__constant__ unsigned int mpcParticleCount
The number of MPC fluid particles.
__global__ void getCenterOfMassVelocities_doublet_kernel(const unsigned int workUnitOffset, const MPCParticleVelocityType *const velocities, MPCParticleVelocityType *const comVelocities)
Saves the center-of-mass velocities of the MPC fluid's doublets to the given buffer.