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

#include <elements.h>

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

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>
struct olb::momenta::InnerCornerDensity2D< normalX, normalY >

Definition at line 374 of file elements.h.

Member Function Documentation

◆ compute()

template<int normalX, int normalY>
template<typename TYPE , typename CELL , typename RHO , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::InnerCornerDensity2D< normalX, normalY >::compute ( CELL & cell,
RHO & rho )
inline

Definition at line 376 of file elements.h.

377 {
378 V u[DESCRIPTOR::d];
379 TYPE().computeU(cell, u);
380 const V rhoX = velocityBMRho<0,normalX>(cell, u);
381 const V rhoY = velocityBMRho<1,normalY>(cell, u);
382 rho = (rhoX + rhoY) / V{2};
383 }
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>
template<typename TYPE , typename CELL , typename RHO >
void olb::momenta::InnerCornerDensity2D< normalX, normalY >::define ( CELL & cell,
const RHO & rho )
inline

Definition at line 386 of file elements.h.

386{};

◆ getName()

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

Definition at line 394 of file elements.h.

394 {
395 return "InnerCornerDensity2D";
396 }

◆ initialize()

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

Definition at line 389 of file elements.h.

389{};

◆ inverseShift()

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

Definition at line 392 of file elements.h.

392{};

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