OpenMPCD
Namespaces | Functions
DeviceCode/Triplets.hpp File Reference
#include <OpenMPCD/Types.hpp>
#include <OpenMPCD/Vector3D.hpp>
Include dependency graph for DeviceCode/Triplets.hpp:

Go to the source code of this file.

Namespaces

 OpenMPCD::CUDA
 Namespace for simulations using CUDA.
 
 OpenMPCD::CUDA::MPCFluid
 Namespace for MPC Fluid classes.
 
 OpenMPCD::CUDA::MPCFluid::DeviceCode
 Contains CUDA Device code.
 

Functions

void OpenMPCD::CUDA::MPCFluid::DeviceCode::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. More...
 
__global__ void OpenMPCD::CUDA::MPCFluid::DeviceCode::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. More...
 
__device__ Vector3D< MPCParticleVelocityType > OpenMPCD::CUDA::MPCFluid::DeviceCode::getCenterOfMassVelocity_triplet (const unsigned int tripletID, const MPCParticleVelocityType *const velocities)
 Returns the center-of-mass velocity of for the given triplet. More...
 

Detailed Description

Defines CUDA Device code for MPC fluids consisting out of MPC-particle triplets.

Definition in file DeviceCode/Triplets.hpp.