|
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>
struct olb::momenta::InnerCornerDensity2D< normalX, normalY >
Definition at line 294 of file elements.h.
template<int normalX, int normalY>
template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
Definition at line 296 of file elements.h.
297 {
298 V u[DESCRIPTOR::d];
299 TYPE().computeU(cell, u);
300 const V rhoX = velocityBMRho<0,normalX>(cell, u);
301 const V rhoY = velocityBMRho<1,normalY>(cell, u);
302 rho = (rhoX + rhoY) / V{2};
303 }