OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
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 RHO , typename U >
auto compute (int iPop, const RHO &rho, const U &u) 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 67 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 68 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 76 of file equilibrium.h.

76 {
77 const V rho = MomentaF().computeRho(cell);
78 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
79 fEq[iPop] = descriptors::t<V,DESCRIPTOR>(iPop) * rho - descriptors::t<V,DESCRIPTOR>(iPop);
80 }
81 return {rho, 0};
82 };
typename MOMENTA::template type< DESCRIPTOR > MomentaF
Definition equilibrium.h:68

◆ compute() [2/2]

template<typename DESCRIPTOR , typename MOMENTA >
template<typename RHO , typename U >
auto olb::equilibria::ZerothOrder::type< DESCRIPTOR, MOMENTA >::compute ( int iPop,
const RHO & rho,
const U & u )
inline

Definition at line 71 of file equilibrium.h.

71 {
72 return descriptors::t<RHO,DESCRIPTOR>(iPop) * rho - descriptors::t<RHO,DESCRIPTOR>(iPop);
73 }

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