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

#include <collisionCUM.h>

+ Collaboration diagram for olb::collision::CUM::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >:

Public Types

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

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 DESCRIPTOR, typename MOMENTA, typename EQUILIBRIUM>
struct olb::collision::CUM::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >

Definition at line 40 of file collisionCUM.h.

Member Typedef Documentation

◆ EquilibriumF

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
using olb::collision::CUM::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::EquilibriumF = typename EQUILIBRIUM::template type<DESCRIPTOR,MOMENTA>

Definition at line 44 of file collisionCUM.h.

◆ MomentaF

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
using olb::collision::CUM::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::MomentaF = typename MOMENTA::template type<DESCRIPTOR>

Definition at line 43 of file collisionCUM.h.

Member Function Documentation

◆ apply()

template<typename DESCRIPTOR , typename MOMENTA , typename EQUILIBRIUM >
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::collision::CUM::type< DESCRIPTOR, MOMENTA, EQUILIBRIUM >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 47 of file collisionCUM.h.

47 {
48 const V omega = parameters.template get<descriptors::OMEGA>();
49 V rho, u[DESCRIPTOR::d];
50 MomentaF().computeRhoU(cell, rho, u);
51 V uSqr = cum<DESCRIPTOR>::cumCollision(cell, omega, rho, u);
52 return {rho, uSqr};
53 };
typename MOMENTA::template type< DESCRIPTOR > MomentaF
typename meta::list< descriptors::OMEGA > parameters
static V cumCollision(CELL &cell, const V &omega, V &rho, U &u) any_platform
Definition cum.h:142

References olb::cum< DESCRIPTOR >::cumCollision().

+ Here is the call graph for this function:

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