OpenMPCD
Namespaces | Functions
DeviceCode/Chains.hpp File Reference
#include <OpenMPCD/Types.hpp>
#include <OpenMPCD/Vector3D.hpp>
Include dependency graph for DeviceCode/Chains.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_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. More...
 
__global__ void OpenMPCD::CUDA::MPCFluid::DeviceCode::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. More...
 
__device__ Vector3D< MPCParticleVelocityType > OpenMPCD::CUDA::MPCFluid::DeviceCode::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. More...
 

Detailed Description

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

Definition in file DeviceCode/Chains.hpp.