OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::momenta::MovingPorousMomentumCombination< MOMENTUM > Struct Template Reference

#include <elements.h>

+ Collaboration diagram for olb::momenta::MovingPorousMomentumCombination< MOMENTUM >:

Public Member Functions

template<typename TYPE , typename CELL , typename J , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void compute (CELL &cell, J &j) any_platform
 
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void computeU (CELL &cell, U &u) any_platform
 
template<typename TYPE , typename CELL , typename U , typename DESCRIPTOR = typename CELL::descriptor_t>
void define (CELL &cell, const U &u) any_platform
 
template<typename TYPE , typename CELL >
void initialize (CELL &cell) any_platform
 
template<typename TYPE , typename CELL , typename U >
void inverseShift (CELL &cell, U &u) any_platform
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

template<typename MOMENTUM>
struct olb::momenta::MovingPorousMomentumCombination< MOMENTUM >

Definition at line 1365 of file elements.h.

Member Function Documentation

◆ compute()

template<typename MOMENTUM >
template<typename TYPE , typename CELL , typename J , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::compute ( CELL & cell,
J & j )
inline

Definition at line 1367 of file elements.h.

1368 {
1369 MOMENTUM().template compute<TYPE>(cell, j);
1370 }
void compute(CELL &cell, J &j) any_platform
Definition elements.h:1367

References olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::compute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ computeU()

template<typename MOMENTUM >
template<typename TYPE , typename CELL , typename U , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::computeU ( CELL & cell,
U & u )
inline

Definition at line 1373 of file elements.h.

1374 {
1375 MOMENTUM().template computeU<TYPE>(cell, u);
1376 const V wmporosity = cell.template getField<descriptors::WMPOROSITY>();
1377 const V porosity = cell.template getField<descriptors::POROSITY>();
1378 for (int iD=0; iD < DESCRIPTOR::d; ++iD) {
1379 u[iD] = wmporosity*(porosity*u[iD] + (V{1} - porosity) * cell.template getFieldComponent<descriptors::VELOCITY>(iD)) + (V{1} - wmporosity)*cell.template getFieldComponent<descriptors::WMVELOCITY>(iD);
1380 }
1381 }
void computeU(CELL &cell, U &u) any_platform
Definition elements.h:1373

References olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::computeU().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ define()

template<typename MOMENTUM >
template<typename TYPE , typename CELL , typename U , typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::define ( CELL & cell,
const U & u )
inline

Definition at line 1384 of file elements.h.

1385 {
1386 MOMENTUM().template define<TYPE>(cell, u);
1387 }
void define(CELL &cell, const U &u) any_platform
Definition elements.h:1384

References olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::define().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getName()

template<typename MOMENTUM >
static std::string olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::getName ( )
inlinestatic

Definition at line 1398 of file elements.h.

1398 {
1399 return "MovingPorousMomentumCombination<" + MOMENTUM().getName() + ">";
1400 }

◆ initialize()

template<typename MOMENTUM >
template<typename TYPE , typename CELL >
void olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::initialize ( CELL & cell)
inline

Definition at line 1390 of file elements.h.

1391 {
1392 MOMENTUM().template initialize<TYPE>(cell);
1393 }
void initialize(CELL &cell) any_platform
Definition elements.h:1390

References olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inverseShift()

template<typename MOMENTUM >
template<typename TYPE , typename CELL , typename U >
void olb::momenta::MovingPorousMomentumCombination< MOMENTUM >::inverseShift ( CELL & cell,
U & u )
inline

Definition at line 1396 of file elements.h.

1396{}

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