OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ > Struct Template Reference

#include <elements.h>

+ Collaboration diagram for olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >:

Public Member Functions

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
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

template<int normalX, int normalY, int normalZ>
struct olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >

Definition at line 400 of file elements.h.

Member Function Documentation

◆ compute()

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>
void olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >::compute ( CELL & cell,
RHO & rho )
inline

Definition at line 402 of file elements.h.

403 {
404 V u[DESCRIPTOR::d];
405 TYPE().computeU(cell, u);
406 const V rhoX = velocityBMRho<0,normalX>(cell, u);
407 const V rhoY = velocityBMRho<1,normalY>(cell, u);
408 const V rhoZ = velocityBMRho<2,normalZ>(cell, u);
409 rho = (rhoX + rhoY + rhoZ) / V(3);
410 }
V velocityBMRho(CELL &cell, const U &u) any_platform
Definition elements.h:55

References olb::momenta::velocityBMRho().

+ Here is the call graph for this function:

◆ define()

template<int normalX, int normalY, int normalZ>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >::define ( CELL & cell,
const RHO & rho )
inline

Definition at line 413 of file elements.h.

413{};

◆ getName()

template<int normalX, int normalY, int normalZ>
static std::string olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >::getName ( )
inlinestatic

Definition at line 421 of file elements.h.

421 {
422 return "InnerCornerDensity3D";
423 }

◆ initialize()

template<int normalX, int normalY, int normalZ>
template<typename TYPE , typename CELL >
void olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >::initialize ( CELL & cell)
inline

Definition at line 416 of file elements.h.

416{};

◆ inverseShift()

template<int normalX, int normalY, int normalZ>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::InnerCornerDensity3D< normalX, normalY, normalZ >::inverseShift ( CELL & cell,
RHO & rho )
inline

Definition at line 419 of file elements.h.

419{};

The documentation for this struct was generated from the following file: