OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA > Struct Template Reference

#include <equilibrium.h>

+ Collaboration diagram for olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >:

Public Types

using MomentaF = typename MOMENTA::template type<DESCRIPTOR>
 

Public Member Functions

template<typename CELL , typename RHO , typename U , typename FEQ , typename V = typename CELL::value_t>
CellStatistic< V > compute (CELL &cell, RHO &rho, U &u, FEQ &fEq) any_platform
 
template<typename CELL , typename PARAMETERS , typename FEQ , typename V = typename CELL::value_t>
CellStatistic< V > compute (CELL &cell, PARAMETERS &parameters, FEQ &fEq) any_platform
 

Detailed Description

template<typename DESCRIPTOR, typename MOMENTA>
struct olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >

Definition at line 72 of file equilibrium.h.

Member Typedef Documentation

◆ MomentaF

template<typename DESCRIPTOR , typename MOMENTA >
using olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >::MomentaF = typename MOMENTA::template type<DESCRIPTOR>

Definition at line 73 of file equilibrium.h.

Member Function Documentation

◆ compute() [1/2]

template<typename DESCRIPTOR , typename MOMENTA >
template<typename CELL , typename PARAMETERS , typename FEQ , typename V = typename CELL::value_t>
CellStatistic< V > olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >::compute ( CELL & cell,
PARAMETERS & parameters,
FEQ & fEq )
inline

Definition at line 84 of file equilibrium.h.

84 {
85 V rho, u[DESCRIPTOR::d];
86 MomentaF().computeRhoU(cell, rho, u);
87 return compute(cell, rho, u, fEq);
88 };
typename MOMENTA::template type< DESCRIPTOR > MomentaF
Definition equilibrium.h:73
CellStatistic< V > compute(CELL &cell, RHO &rho, U &u, FEQ &fEq) any_platform
Definition equilibrium.h:76

References olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >::compute().

+ Here is the call graph for this function:

◆ compute() [2/2]

template<typename DESCRIPTOR , typename MOMENTA >
template<typename CELL , typename RHO , typename U , typename FEQ , typename V = typename CELL::value_t>
CellStatistic< V > olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >::compute ( CELL & cell,
RHO & rho,
U & u,
FEQ & fEq )
inline

Definition at line 76 of file equilibrium.h.

76 {
77 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
78 fEq[iPop] = descriptors::t<V,DESCRIPTOR>(iPop) * rho - descriptors::t<V,DESCRIPTOR>(iPop);
79 }
80 return {rho, 0};
81 };
constexpr T t(unsigned iPop, tag::CUM) any_platform
Definition cum.h:108

References olb::descriptors::t().

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

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