OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
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 105 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 107 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 106 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 110 of file powerLawBGKdynamics.h.

111 {
112 V rho, u[DESCRIPTOR::d], pi[util::TensorVal<DESCRIPTOR>::n] { };
113 MomentaF().computeAllMomenta(cell, rho, u, pi);
114 const V oldOmega = cell.template getField<descriptors::OMEGA>();
115 const V newOmega = computeOmega(cell, parameters, oldOmega, rho, pi);
116 cell.template setField<descriptors::OMEGA>(newOmega);
117 parameters.template set<descriptors::OMEGA>(newOmega);
118 return CollisionO().apply(cell, parameters);
119 }
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:211

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: