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

#include <elements.h>

+ Collaboration diagram for olb::momenta::MovingPorousMomentumCombinationNoWM< 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::MovingPorousMomentumCombinationNoWM< MOMENTUM >

Definition at line 1404 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::MovingPorousMomentumCombinationNoWM< MOMENTUM >::compute ( CELL & cell,
J & j )
inline

Definition at line 1406 of file elements.h.

1407 {
1408 MOMENTUM().template compute<TYPE>(cell, j);
1409 }
void compute(CELL &cell, J &j) any_platform
Definition elements.h:1406

References olb::momenta::MovingPorousMomentumCombinationNoWM< 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::MovingPorousMomentumCombinationNoWM< MOMENTUM >::computeU ( CELL & cell,
U & u )
inline

Definition at line 1412 of file elements.h.

1413 {
1414 MOMENTUM().template computeU<TYPE>(cell, u);
1415 const V porosity = cell.template getField<descriptors::POROSITY>();
1416 for (int iD=0; iD < DESCRIPTOR::d; ++iD) {
1417 u[iD] = porosity*u[iD] + (V{1} - porosity) * cell.template getFieldComponent<descriptors::VELOCITY>(iD);
1418 }
1419 }
void computeU(CELL &cell, U &u) any_platform
Definition elements.h:1412

References olb::momenta::MovingPorousMomentumCombinationNoWM< 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::MovingPorousMomentumCombinationNoWM< MOMENTUM >::define ( CELL & cell,
const U & u )
inline

Definition at line 1422 of file elements.h.

1423 {
1424 MOMENTUM().template define<TYPE>(cell, u);
1425 }
void define(CELL &cell, const U &u) any_platform
Definition elements.h:1422

References olb::momenta::MovingPorousMomentumCombinationNoWM< 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::MovingPorousMomentumCombinationNoWM< MOMENTUM >::getName ( )
inlinestatic

Definition at line 1436 of file elements.h.

1436 {
1437 return "MovingPorousMomentumCombinationNoWM<" + MOMENTUM().getName() + ">";
1438 }

◆ initialize()

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

Definition at line 1428 of file elements.h.

1429 {
1430 MOMENTUM().template initialize<TYPE>(cell);
1431 }
void initialize(CELL &cell) any_platform
Definition elements.h:1428

References olb::momenta::MovingPorousMomentumCombinationNoWM< 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::MovingPorousMomentumCombinationNoWM< MOMENTUM >::inverseShift ( CELL & cell,
U & u )
inline

Definition at line 1434 of file elements.h.

1434{}

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