OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
olb::equilibria::P1::type< DESCRIPTOR, MOMENTA > Struct Template Reference

#include <equilibrium.h>

+ Collaboration diagram for olb::equilibria::P1::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::P1::type< DESCRIPTOR, MOMENTA >

Definition at line 186 of file equilibrium.h.

Member Typedef Documentation

◆ MomentaF

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

Definition at line 187 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::P1::type< DESCRIPTOR, MOMENTA >::compute ( CELL & cell,
PARAMETERS & parameters,
FEQ & fEq )
inline

Definition at line 195 of file equilibrium.h.

195 {
196 V rho, j[DESCRIPTOR::d] { };
197 MomentaF().computeRhoJ(cell, rho, j);
198 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
199 fEq[iPop] = equilibrium<DESCRIPTOR>::P1(iPop, rho, j);
200 }
201 return {rho, 0};
202 };
typename MOMENTA::template type< DESCRIPTOR > MomentaF
static V P1(int iPop, const RHO &rho, const U &u) any_platform
Definition lbm.h:75

References olb::equilibrium< DESCRIPTOR >::P1().

+ Here is the call graph for this function:

◆ compute() [2/2]

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

Definition at line 190 of file equilibrium.h.

190 {
191 return equilibrium<DESCRIPTOR>::P1(iPop, rho, u);
192 }

References olb::equilibrium< DESCRIPTOR >::P1().

+ Here is the call graph for this function:

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