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

defineRho leads to a new non-equilibrium population, defineU only sets the velocity data. More...

#include <definitionRule.h>

+ Collaboration diagram for olb::momenta::DefineUSeparatelyTrace:

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

defineRho leads to a new non-equilibrium population, defineU only sets the velocity data.

Definition at line 180 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::DefineUSeparatelyTrace::defineAllMomenta ( CELL & cell,
V rho,
const V u[DESCRIPTOR::d],
const V pi[util::TensorVal< DESCRIPTOR >::n] )
inline

Definition at line 206 of file definitionRule.h.

209 {
210 DefineUSeparately().defineAllMomenta<TYPE>(cell, rho, u, pi);
211 }

References olb::momenta::DefineUSeparately::defineAllMomenta().

+ Here is the call 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::DefineUSeparatelyTrace::defineRho ( CELL & cell,
V rho )
inline

Definition at line 182 of file definitionRule.h.

183 {
184 // get old equilibrium data (oldRho, u)
185 V oldRho, u[DESCRIPTOR::d];
186 // only this line is different to DefineUSeparately
187 lbm<DESCRIPTOR>::computeRhoU(cell, oldRho, u);
188 TYPE().inverseShiftRhoU(cell, oldRho, u);
189
190 // modify the equilibrium part of the population from (oldRho, u) to (rho, u)
191 lbm<DESCRIPTOR>::defineNEq(cell, oldRho, u, rho, u);
192 }
static void defineNEq(CELL &cell, const OLDRHO &oldRho, const OLDU &oldU, const NEWRHO &newRho, const NEWU &newU) any_platform
Definition lbm.h:397
static void computeRhoU(CELL &cell, RHO &rho, U &u) any_platform
Computation of hydrodynamic variables.
Definition lbm.h:219

References olb::lbm< DESCRIPTOR >::computeRhoU(), and olb::lbm< DESCRIPTOR >::defineNEq().

+ Here is the call 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::DefineUSeparatelyTrace::defineRhoU ( CELL & cell,
V rho,
const V u[DESCRIPTOR::d] )
inline

Definition at line 199 of file definitionRule.h.

201 {
202 defineRho<TYPE>(cell, rho);
203 }

◆ defineU()

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

Definition at line 195 of file definitionRule.h.

196 { }

◆ getName()

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

Definition at line 213 of file definitionRule.h.

213 {
214 return "DefineUSeparatelyTrace";
215 }

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