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

Momentum of a moving porous medium. More...

#include <elements.h>

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

Momentum of a moving porous medium.

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

Definition at line 1292 of file elements.h.

1293 {
1294 MOMENTUM().template compute<TYPE>(cell, j);
1295 }
void compute(CELL &cell, J &j) any_platform
Definition elements.h:1292

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

Definition at line 1298 of file elements.h.

1299 {
1300 const V rho = TYPE().computeRho(cell);
1301 MOMENTUM().template computeU<TYPE>(cell, u);
1302 const V porosity = cell.template getField<descriptors::POROSITY>();
1303 for (int iD=0; iD < DESCRIPTOR::d; ++iD) {
1304 u[iD] += V{0.5} * rho
1305 * (V{1} - porosity)
1306 * (cell.template getFieldComponent<descriptors::VELOCITY>(iD) - u[iD]);
1307 }
1308 }
void computeU(CELL &cell, U &u) any_platform
Definition elements.h:1298

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

Definition at line 1311 of file elements.h.

1312 {
1313 MOMENTUM().template define<TYPE>(cell, u);
1314 }
void define(CELL &cell, const U &u) any_platform
Definition elements.h:1311

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

Definition at line 1325 of file elements.h.

1325 {
1326 return "MovingPorousMomentum<" + MOMENTUM().getName() + ">";
1327 }

◆ initialize()

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

Definition at line 1317 of file elements.h.

1318 {
1319 MOMENTUM().template initialize<TYPE>(cell);
1320 }
void initialize(CELL &cell) any_platform
Definition elements.h:1317

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

Definition at line 1323 of file elements.h.

1323{}

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