|
template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t> |
void | compute (CELL &cell, RHO &rho) any_platform |
|
template<typename TYPE , typename CELL , typename RHO > |
void | define (CELL &cell, const RHO &rho) any_platform |
|
template<typename TYPE , typename CELL > |
void | initialize (CELL &cell) any_platform |
|
template<typename TYPE , typename CELL , typename RHO > |
void | inverseShift (CELL &cell, RHO &rho) any_platform |
|
template<int normalX, int normalY, int normalZ>
struct olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >
Definition at line 320 of file elements.h.
template<int normalX, int normalY, int normalZ>
template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
Definition at line 322 of file elements.h.
323 {
324 V u[DESCRIPTOR::d];
325 TYPE().computeU(cell, u);
326 const V rhoX = velocityBMRho<0,normalX>(cell, u);
327 const V rhoY = velocityBMRho<1,normalY>(cell, u);
328 const V rhoZ = velocityBMRho<2,normalZ>(cell, u);
329 rho = (rhoX + rhoY + rhoZ) / V(3);
330 }