OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::momenta::PorousGuoMomentum Struct Reference

#include <elements.h>

+ Collaboration diagram for olb::momenta::PorousGuoMomentum:

Public Member Functions

template<typename TYPE , typename CELL , typename J , 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 >
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

Definition at line 1207 of file elements.h.

Member Function Documentation

◆ compute()

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

Definition at line 1210 of file elements.h.

1211 {
1213 }
static void computeJ(CELL &cell, J &j) any_platform
Computation of momentum.
Definition lbm.h:279

References olb::lbm< DESCRIPTOR >::computeJ().

+ Here is the call graph for this function:

◆ computeU()

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

Definition at line 1217 of file elements.h.

1218 {
1219 lbm<DESCRIPTOR>::computeU(cell, u);
1220
1221 const V porosity = cell.template getField<descriptors::POROSITY>();
1222 for (int iDim=0; iDim<DESCRIPTOR::d; ++iDim) {
1223 u[iDim] *= porosity;
1224 }
1225 }

◆ define()

template<typename TYPE , typename CELL , typename U >
void olb::momenta::PorousGuoMomentum::define ( CELL & cell,
const U & u )
inline

Definition at line 1229 of file elements.h.

1229{ }

◆ getName()

static std::string olb::momenta::PorousGuoMomentum::getName ( )
inlinestatic

Definition at line 1237 of file elements.h.

1237 {
1238 return "PorousGuoMomentum";
1239 }

◆ initialize()

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

Definition at line 1232 of file elements.h.

1232{ }

◆ inverseShift()

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

Definition at line 1235 of file elements.h.

1235{}

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