Open Qmin  0.8.0
GPU-accelerated Q-tensor-based liquid crystal simulations
Functions
lcForce Namespace Reference

Functions

HOSTDEVICE int getBoundaryCase (int xd, int xu, int yd, int yu, int zd, int zu)
 
HOSTDEVICE void bulkL1Force (const scalar L1, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, dVec &spatialTerm)
 
HOSTDEVICE void boundaryL1Force (const scalar L1, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const int &ixd, const int &ixu, const int &iyd, const int &iyu, const int &izd, const int &izu, dVec &spatialTerm)
 
HOSTDEVICE void bulkL2Force (const scalar L2, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void boundaryL2Force (const scalar L2, int boundaryCase, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void bulkL3Force (const scalar L3, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void boundaryL3Force (const scalar L3, int boundaryCase, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void bulkL4Force (const scalar L4, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void boundaryL4Force (const scalar L4, int boundaryCase, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void bulkL6Force (const scalar L6, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 
HOSTDEVICE void boundaryL6Force (const scalar L6, int boundaryCase, const dVec &qCurrent, const dVec &xDown, const dVec &xUp, const dVec &yDown, const dVec &yUp, const dVec &zDown, const dVec &zUp, const cubicLatticeDerivativeVector &xDownDerivative, const cubicLatticeDerivativeVector &xUpDerivative, const cubicLatticeDerivativeVector &yDownDerivative, const cubicLatticeDerivativeVector &yUpDerivative, const cubicLatticeDerivativeVector &zDownDerivative, const cubicLatticeDerivativeVector &zUpDerivative, dVec &spatialTerm)
 

Detailed Description

Note that all of these "forces" actually return the negative of a force

Function Documentation

◆ getBoundaryCase()

HOSTDEVICE int lcForce::getBoundaryCase ( int  xd,
int  xu,
int  yd,
int  yu,
int  zd,
int  zu 
)

◆ bulkL1Force()

HOSTDEVICE void lcForce::bulkL1Force ( const scalar  L1,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
dVec &  spatialTerm 
)

◆ boundaryL1Force()

HOSTDEVICE void lcForce::boundaryL1Force ( const scalar  L1,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const int &  ixd,
const int &  ixu,
const int &  iyd,
const int &  iyu,
const int &  izd,
const int &  izu,
dVec &  spatialTerm 
)

◆ bulkL2Force()

HOSTDEVICE void lcForce::bulkL2Force ( const scalar  L2,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ boundaryL2Force()

HOSTDEVICE void lcForce::boundaryL2Force ( const scalar  L2,
int  boundaryCase,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ bulkL3Force()

HOSTDEVICE void lcForce::bulkL3Force ( const scalar  L3,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ boundaryL3Force()

HOSTDEVICE void lcForce::boundaryL3Force ( const scalar  L3,
int  boundaryCase,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ bulkL4Force()

HOSTDEVICE void lcForce::bulkL4Force ( const scalar  L4,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ boundaryL4Force()

HOSTDEVICE void lcForce::boundaryL4Force ( const scalar  L4,
int  boundaryCase,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ bulkL6Force()

HOSTDEVICE void lcForce::bulkL6Force ( const scalar  L6,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)

◆ boundaryL6Force()

HOSTDEVICE void lcForce::boundaryL6Force ( const scalar  L6,
int  boundaryCase,
const dVec &  qCurrent,
const dVec &  xDown,
const dVec &  xUp,
const dVec &  yDown,
const dVec &  yUp,
const dVec &  zDown,
const dVec &  zUp,
const cubicLatticeDerivativeVector xDownDerivative,
const cubicLatticeDerivativeVector xUpDerivative,
const cubicLatticeDerivativeVector yDownDerivative,
const cubicLatticeDerivativeVector yUpDerivative,
const cubicLatticeDerivativeVector zDownDerivative,
const cubicLatticeDerivativeVector zUpDerivative,
dVec &  spatialTerm 
)