OpenMPCD
Functions
LeesEdwardsBoundaryConditions.hpp File Reference
#include <OpenMPCD/Types.hpp>
#include <OpenMPCD/Vector3D.hpp>
Include dependency graph for LeesEdwardsBoundaryConditions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const Vector3D< MPCParticlePositionType > OpenMPCD::getImageUnderLeesEdwardsBoundaryConditions (const Vector3D< MPCParticlePositionType > &position, const FP mpcTime, const FP shearRate, const unsigned int simBoxX, const unsigned int simBoxY, const unsigned int simBoxZ, MPCParticleVelocityType *const velocityCorrection)
 Returns the image of the given particle position under Lees-Edwards boundary conditions. More...
 

Detailed Description

Defines Host functions for Lees-Edwards boundary conditions.

Definition in file LeesEdwardsBoundaryConditions.hpp.

Function Documentation

◆ getImageUnderLeesEdwardsBoundaryConditions()

const OpenMPCD::Vector3D< OpenMPCD::MPCParticlePositionType > OpenMPCD::getImageUnderLeesEdwardsBoundaryConditions ( const Vector3D< MPCParticlePositionType > &  position,
const FP  mpcTime,
const FP  shearRate,
const unsigned int  simBoxX,
const unsigned int  simBoxY,
const unsigned int  simBoxZ,
MPCParticleVelocityType *const  velocityCorrection 
)

Returns the image of the given particle position under Lees-Edwards boundary conditions.

See also
LeesEdwardsBoundaryConditions
Exceptions
OpenMPCD::NULLPointerExceptionIf OPENMPCD_DEBUG is defined, throws if velocityCorrection == nullptr.
Parameters
[in]positionThe particle position.
[in]mpcTimeThe simulation time for the MPC steps.
[in]shearRateThe applied shear rate.
[in]simBoxXThe size of the primary simulation box along the x direction.
[in]simBoxYThe size of the primary simulation box along the y direction.
[in]simBoxZThe size of the primary simulation box along the z direction.
[out]velocityCorrectionSet to the velocity along the x direction that needs to be added to the particle's velocity.

Definition at line 7 of file LeesEdwardsBoundaryConditions.cpp.