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

#include <equilibrium.h>

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

Definition at line 100 of file equilibrium.h.

Member Typedef Documentation

◆ MomentaF

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

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

Definition at line 114 of file equilibrium.h.

114 {
115 V rho, u[DESCRIPTOR::d];
116 MomentaF().computeRhoU(cell, rho, u);
117 return compute(cell, rho, u, fEq);
118 };
CellStatistic< V > compute(CELL &cell, RHO &rho, U &u, FEQ &fEq) any_platform
typename MOMENTA::template type< DESCRIPTOR > MomentaF

References olb::equilibria::CahnHilliardZerothOrder::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::CahnHilliardZerothOrder::type< DESCRIPTOR, MOMENTA >::compute ( CELL & cell,
RHO & rho,
U & u,
FEQ & fEq )
inline

Definition at line 104 of file equilibrium.h.

104 {
105 const auto mu = cell.template getField<descriptors::CHEM_POTENTIAL>();
107 for (int iPop=1; iPop < DESCRIPTOR::q; ++iPop) {
109 }
110 return {rho, util::normSqr<V,DESCRIPTOR::d>(u)};
111 }
constexpr T t(unsigned iPop, tag::CUM) any_platform
Definition cum.h:108
auto normSqr(const ARRAY_LIKE &u) any_platform
Compute norm square of a d-dimensional vector.
Definition util.h:145

References olb::util::normSqr(), and 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: