OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
olb::momenta::PorousParticleMomentum< MOMENTUM > Struct Template Reference

#include <elements.h>

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

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

Definition at line 1005 of file elements.h.

1006 {
1007 MOMENTUM().template compute<TYPE>(cell, j);
1008 }

◆ 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::PorousParticleMomentum< MOMENTUM >::computeU ( CELL & cell,
U & u )
inline

Definition at line 1011 of file elements.h.

1012 {
1013 V rho{};
1014 lbm<DESCRIPTOR>::computeRhoU(cell, rho, u);
1015 V u_tmp[3] = {0., 0., 0.};
1016 if (cell.template getFieldPointer<descriptors::VELOCITY_DENOMINATOR>()[0] > std::numeric_limits<V>::epsilon()) {
1017 for (int i=0; i<DESCRIPTOR::d; i++) {
1018 u_tmp[i] = (V(1) - cell.template getField<descriptors::POROSITY>())
1019 * ( cell.template getFieldPointer<descriptors::VELOCITY_NUMERATOR>()[i]
1020 / cell.template getField<descriptors::VELOCITY_DENOMINATOR>()
1021 - u[i] );
1022 u[i] += V(0.5) * rho * u_tmp[i];
1023 }
1024 }
1025 }
static void computeRhoU(CELL &cell, RHO &rho, U &u) any_platform
Computation of hydrodynamic variables.
Definition lbm.h:219

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

+ Here is the call graph for this function:

◆ define()

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

Definition at line 1028 of file elements.h.

1029 {
1030 MOMENTUM().template define<TYPE>(cell, u);
1031 }

◆ getName()

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

Definition at line 1042 of file elements.h.

1042 {
1043 return "PorousParticleMomentum<" + MOMENTUM().getName() + ">";
1044 }

◆ initialize()

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

Definition at line 1034 of file elements.h.

1035 {
1036 MOMENTUM().template initialize<TYPE>(cell);
1037 }

◆ inverseShift()

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

Definition at line 1040 of file elements.h.

1040{}

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