OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM > Struct Template Reference

#include <powerLawBGKdynamics.h>

+ Collaboration diagram for olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >:

Public Types

using MomentaF = typename MOMENTA::template type<DESCRIPTOR>
 
using CollisionO = typename COLLISION::template type<DESCRIPTOR, MOMENTA, EQUILIBRIUM>
 

Public Member Functions

template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > apply (CELL &cell, PARAMETERS &parameters) any_platform
 

Detailed Description

template<typename COLLISION, bool HERSCHELBULKLEY = false>
template<typename DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM>
struct olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >

Definition at line 126 of file powerLawBGKdynamics.h.

Member Typedef Documentation

◆ CollisionO

template<typename COLLISION , bool HERSCHELBULKLEY = false>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
using olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::CollisionO = typename COLLISION::template type<DESCRIPTOR, MOMENTA, EQUILIBRIUM>

Definition at line 128 of file powerLawBGKdynamics.h.

◆ MomentaF

template<typename COLLISION , bool HERSCHELBULKLEY = false>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
using olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::MomentaF = typename MOMENTA::template type<DESCRIPTOR>

Definition at line 127 of file powerLawBGKdynamics.h.

Member Function Documentation

◆ apply()

template<typename COLLISION , bool HERSCHELBULKLEY = false>
template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 131 of file powerLawBGKdynamics.h.

132 {
133 V rho, u[DESCRIPTOR::d], pi[util::TensorVal<DESCRIPTOR>::n] { };
134 MomentaF().computeAllMomenta(cell, rho, u, pi);
135 const V oldOmega = cell.template getField<descriptors::OMEGA>();
136 const V newOmega = computeOmega(cell, parameters, oldOmega, rho, pi);
137 cell.template setField<descriptors::OMEGA>(newOmega);
138 parameters.template set<descriptors::OMEGA>(newOmega);
139 return CollisionO().apply(cell, parameters);
140 }
typename COLLISION::template type< DESCRIPTOR, MOMENTA, EQUILIBRIUM > CollisionO
typename MOMENTA::template type< DESCRIPTOR > MomentaF
static V computeOmega(CELL &cell, PARAMETERS &parameters, OMEGA &omega0, RHO &rho, PI &pi) any_platform
typename COLLISION::parameters::template include< descriptors::OMEGA, OMEGA_MIN, OMEGA_MAX, M, N, YIELD_STRESS, SHEAR_RATE_MIN > parameters
static constexpr int n
result stored in n
Definition util.h:217

References olb::powerlaw::OmegaFromCell< COLLISION, HERSCHELBULKLEY >::computeOmega().

+ Here is the call graph for this function:

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