OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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 320 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 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 }

◆ 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 333 of file elements.h.

333{};

◆ getName()

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

Definition at line 341 of file elements.h.

341 {
342 return "InnerCornerDensity3D";
343 }

◆ 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 336 of file elements.h.

336{};

◆ 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 339 of file elements.h.

339{};

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