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

#include <equilibrium.h>

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

Definition at line 122 of file equilibrium.h.

Member Typedef Documentation

◆ MomentaF

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

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

Definition at line 131 of file equilibrium.h.

131 {
132 V rho, u[DESCRIPTOR::d];
133 MomentaF().computeRhoU(cell, rho, u);
134 const V uSqr = util::normSqr<V,DESCRIPTOR::d>(u);
135 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
136 fEq[iPop] = equilibrium<DESCRIPTOR>::secondOrder(iPop, rho, u, uSqr);
137 }
138 return {rho, util::normSqr<V,DESCRIPTOR::d>(u)};
139 };
typename MOMENTA::template type< DESCRIPTOR > MomentaF
static V secondOrder(int iPop, const RHO &rho, const U &u, const USQR &uSqr) any_platform
Computation of equilibrium distribution, second order in u.
Definition lbm.h:51

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

+ Here is the call graph for this function:

◆ compute() [2/2]

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

Definition at line 126 of file equilibrium.h.

126 {
127 return equilibrium<DESCRIPTOR>::secondOrder(iPop, rho, u);
128 }

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

+ Here is the call graph for this function:

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