OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
olb::momenta::DefineToNEq Struct Reference

When momenta are changed, the equilibrium part of the population is modified while the non-equilibrium part is kept. More...

#include <definitionRule.h>

+ Collaboration diagram for olb::momenta::DefineToNEq:

Public Member Functions

template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void defineRho (CELL &cell, V rho) any_platform
 
template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void defineU (CELL &cell, const V u[DESCRIPTOR::d]) any_platform
 
template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void defineRhoU (CELL &cell, V rho, const V u[DESCRIPTOR::d]) any_platform
 
template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void defineAllMomenta (CELL &cell, V rho, const V u[DESCRIPTOR::d], const V pi[util::TensorVal< DESCRIPTOR >::n]) any_platform
 

Static Public Member Functions

static std::string getName ()
 

Detailed Description

When momenta are changed, the equilibrium part of the population is modified while the non-equilibrium part is kept.

Definition at line 96 of file definitionRule.h.

Member Function Documentation

◆ defineAllMomenta()

template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::DefineToNEq::defineAllMomenta ( CELL & cell,
V rho,
const V u[DESCRIPTOR::d],
const V pi[util::TensorVal< DESCRIPTOR >::n] )
inline

Definition at line 133 of file definitionRule.h.

136 {
137 lbm<DESCRIPTOR>::defineNEqFromPi(cell, rho, u, pi);
138 }
static void defineNEqFromPi(CELL &cell, const RHO &rho, const U &u, const PI &pi) any_platform
Definition lbm.h:410

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ defineRho()

template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::DefineToNEq::defineRho ( CELL & cell,
V rho )
inline

Definition at line 98 of file definitionRule.h.

99 {
100 // get old equilibrium data (oldRho, u)
101 V oldRho, u[DESCRIPTOR::d];
102 TYPE().computeRhoU(cell, oldRho, u);
103 TYPE().inverseShiftRhoU(cell, oldRho, u);
104
105 // modify the equilibrium part of the population from (oldRho, u) to (rho, u)
106 lbm<DESCRIPTOR>::defineNEq(cell, oldRho, u, rho, u);
107 }
static void defineNEq(CELL &cell, const OLDRHO &oldRho, const OLDU &oldU, const NEWRHO &newRho, const NEWU &newU) any_platform
Definition lbm.h:397

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ defineRhoU()

template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::DefineToNEq::defineRhoU ( CELL & cell,
V rho,
const V u[DESCRIPTOR::d] )
inline

Definition at line 122 of file definitionRule.h.

124 {
125 V oldRho, oldU[DESCRIPTOR::d];
126 TYPE().computeRhoU(cell, oldRho, oldU);
127 TYPE().inverseShiftRhoU(cell, oldRho, oldU);
128
129 lbm<DESCRIPTOR>::defineNEq(cell, oldRho, oldU, rho, u);
130 }

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

+ Here is the call graph for this function:

◆ defineU()

template<typename TYPE , typename CELL , typename V = typename CELL::value_t, typename DESCRIPTOR = typename CELL::descriptor_t>
void olb::momenta::DefineToNEq::defineU ( CELL & cell,
const V u[DESCRIPTOR::d] )
inline

Definition at line 110 of file definitionRule.h.

111 {
112 // get old equilibrium data (rho, oldU)
113 V rho, oldU[DESCRIPTOR::d];
114 TYPE().computeRhoU(cell, rho, oldU);
115 TYPE().inverseShiftRhoU(cell, rho, oldU);
116
117 // modify the equilibrium part of the population from (rho, oldU) to (rho, u)
118 lbm<DESCRIPTOR>::defineNEq(cell, rho, oldU, rho, u);
119 }

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

+ Here is the call graph for this function:

◆ getName()

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

Definition at line 140 of file definitionRule.h.

140 {
141 return "DefineToNEq";
142 }

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