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

#include <elements.h>

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

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

Definition at line 1583 of file elements.h.

1584 {
1585 MOMENTUM().template compute<TYPE>(cell, j);
1586 }
void compute(CELL &cell, J &j) any_platform
Definition elements.h:1583

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

Definition at line 1589 of file elements.h.

1590 {
1591 MOMENTUM().template computeU<TYPE>(cell, u);
1592 const V porosity = cell.template getField<descriptors::POROSITY>();
1593 for (int iVel=0; iVel < DESCRIPTOR::d; ++iVel) {
1594 u[iVel] *= porosity;
1595 }
1596 }
void computeU(CELL &cell, U &u) any_platform
Definition elements.h:1589

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

Definition at line 1599 of file elements.h.

1600 {
1601 MOMENTUM().template define<TYPE>(cell, u);
1602 }
void define(CELL &cell, const U &u) any_platform
Definition elements.h:1599

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

Definition at line 1613 of file elements.h.

1613 {
1614 return "PorousMomentum<" + MOMENTUM().getName() + ">";
1615 }

◆ initialize()

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

Definition at line 1605 of file elements.h.

1606 {
1607 MOMENTUM().template initialize<TYPE>(cell);
1608 }
void initialize(CELL &cell) any_platform
Definition elements.h:1605

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

Definition at line 1611 of file elements.h.

1611{}

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