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

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

306{};

◆ getName()

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

Definition at line 314 of file elements.h.

314 {
315 return "InnerCornerDensity2D";
316 }

◆ initialize()

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

Definition at line 309 of file elements.h.

309{};

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

312{};

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