OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::dynamics::StoreStatisticInField< DYNAMICS > Struct Template Referencefinal

#include <modifiers.h>

+ Inheritance diagram for olb::dynamics::StoreStatisticInField< DYNAMICS >:
+ Collaboration diagram for olb::dynamics::StoreStatisticInField< DYNAMICS >:

Public Types

using value_t = typename DYNAMICS::value_t
 
using descriptor_t = typename DYNAMICS::descriptor_t
 
using MomentaF = typename DYNAMICS::MomentaF
 
using EquilibriumF = typename DYNAMICS::EquilibriumF
 
using parameters = typename DYNAMICS::parameters
 
template<typename NEW_T >
using exchange_value_type = StoreStatisticInField<typename DYNAMICS::template exchange_value_type<NEW_T>>
 
template<typename M >
using exchange_momenta = StoreStatisticInField<typename DYNAMICS::template exchange_momenta<M>>
 
- Public Types inherited from olb::dynamics::CustomCollision< DYNAMICS::value_t, DYNAMICS::descriptor_t, DYNAMICS::MomentaF::abstract >
using value_t
 
using descriptor_t
 
using MomentaF
 
- Public Types inherited from olb::Dynamics< DYNAMICS::value_t, DYNAMICS::descriptor_t >
using value_t
 
using descriptor_t
 

Public Member Functions

std::type_index id () override
 Expose unique type-identifier for RTTI.
 
AbstractParameters< value_t, descriptor_t > & getParameters (BlockLattice< value_t, descriptor_t > &block) override
 Parameters access for legacy post processors.
 
template<concepts::Cell CELL, typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > collide (CELL &cell, PARAMETERS &parameters) any_platform
 
void computeEquilibrium (ConstCell< value_t, descriptor_t > &cell, value_t rho, const value_t u[descriptor_t::d], value_t fEq[descriptor_t::q]) const override
 
std::string getName () const override
 Return human-readable name.
 
- Public Member Functions inherited from olb::dynamics::CustomCollision< DYNAMICS::value_t, DYNAMICS::descriptor_t, DYNAMICS::MomentaF::abstract >
void initialize (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell) override
 Initialize dynamics-specific data for cell.
 
DYNAMICS::value_t computeRho (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell) const override
 Compute particle density.
 
void computeU (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t u[DYNAMICS::descriptor_t::d]) const override
 Compute fluid velocity.
 
void computeJ (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t j[DYNAMICS::descriptor_t::d]) const override
 Compute fluid momentum.
 
void computeStress (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d], DYNAMICS::value_t pi[util::TensorVal< DYNAMICS::descriptor_t >::n]) const override
 Compute stress tensor.
 
void computeRhoU (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t &rho, DYNAMICS::value_t u[DYNAMICS::descriptor_t::d]) const override
 Compute fluid velocity and particle density.
 
void computeAllMomenta (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t &rho, DYNAMICS::value_t u[DYNAMICS::descriptor_t::d], DYNAMICS::value_t pi[util::TensorVal< DYNAMICS::descriptor_t >::n]) const override
 Compute all momenta up to second order.
 
void defineRho (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho) override
 Set particle density.
 
void defineU (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d]) override
 Set fluid velocity.
 
void defineRhoU (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d]) override
 Define fluid velocity and particle density.
 
void defineAllMomenta (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d], const DYNAMICS::value_t pi[util::TensorVal< DYNAMICS::descriptor_t >::n]) override
 Define all momenta up to second order.
 
void inverseShiftRhoU (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t &rho, DYNAMICS::value_t u[DYNAMICS::descriptor_t::d]) const override
 Calculate population momenta s.t. the physical momenta are reproduced by the computeRhoU.
 
- Public Member Functions inherited from olb::Dynamics< DYNAMICS::value_t, DYNAMICS::descriptor_t >
virtual ~Dynamics () any_platform
 
virtual CellStatistic< DYNAMICS::value_t > collide (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell)
 Perform purely-local collision step on Cell interface (legacy, to be deprecated)
 
virtual void computeEquilibrium (ConstCell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d], DYNAMICS::value_t fEq[DYNAMICS::descriptor_t::q]) const=0
 Return iPop equilibrium for given first and second momenta.
 
void iniEquilibrium (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d])
 Initialize to equilibrium distribution.
 
void iniRegularized (Cell< DYNAMICS::value_t, DYNAMICS::descriptor_t > &cell, DYNAMICS::value_t rho, const DYNAMICS::value_t u[DYNAMICS::descriptor_t::d], const DYNAMICS::value_t pi[util::TensorVal< DYNAMICS::descriptor_t >::n])
 Initialize cell to equilibrium and non-equilibrum part.
 

Detailed Description

template<concepts::IntrospectableDynamics DYNAMICS>
struct olb::dynamics::StoreStatisticInField< DYNAMICS >

Definition at line 90 of file modifiers.h.

Member Typedef Documentation

◆ descriptor_t

template<concepts::IntrospectableDynamics DYNAMICS>
using olb::dynamics::StoreStatisticInField< DYNAMICS >::descriptor_t = typename DYNAMICS::descriptor_t

Definition at line 96 of file modifiers.h.

◆ EquilibriumF

template<concepts::IntrospectableDynamics DYNAMICS>
using olb::dynamics::StoreStatisticInField< DYNAMICS >::EquilibriumF = typename DYNAMICS::EquilibriumF

Definition at line 99 of file modifiers.h.

◆ exchange_momenta

template<concepts::IntrospectableDynamics DYNAMICS>
template<typename M >
using olb::dynamics::StoreStatisticInField< DYNAMICS >::exchange_momenta = StoreStatisticInField<typename DYNAMICS::template exchange_momenta<M>>

Definition at line 107 of file modifiers.h.

◆ exchange_value_type

template<concepts::IntrospectableDynamics DYNAMICS>
template<typename NEW_T >
using olb::dynamics::StoreStatisticInField< DYNAMICS >::exchange_value_type = StoreStatisticInField<typename DYNAMICS::template exchange_value_type<NEW_T>>

Definition at line 104 of file modifiers.h.

◆ MomentaF

template<concepts::IntrospectableDynamics DYNAMICS>
using olb::dynamics::StoreStatisticInField< DYNAMICS >::MomentaF = typename DYNAMICS::MomentaF

Definition at line 98 of file modifiers.h.

◆ parameters

template<concepts::IntrospectableDynamics DYNAMICS>
using olb::dynamics::StoreStatisticInField< DYNAMICS >::parameters = typename DYNAMICS::parameters

Definition at line 101 of file modifiers.h.

◆ value_t

template<concepts::IntrospectableDynamics DYNAMICS>
using olb::dynamics::StoreStatisticInField< DYNAMICS >::value_t = typename DYNAMICS::value_t

Definition at line 95 of file modifiers.h.

Member Function Documentation

◆ collide()

template<concepts::IntrospectableDynamics DYNAMICS>
template<concepts::Cell CELL, typename PARAMETERS , typename V = typename CELL::value_t>
CellStatistic< V > olb::dynamics::StoreStatisticInField< DYNAMICS >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 119 of file modifiers.h.

119 {
120 auto statistic = DYNAMICS().collide(cell, parameters);
121 cell.template setField<descriptors::STATISTIC>({statistic.rho, statistic.uSqr});
122 return statistic;
123 };
typename DYNAMICS::parameters parameters
Definition modifiers.h:101

◆ computeEquilibrium()

template<concepts::IntrospectableDynamics DYNAMICS>
void olb::dynamics::StoreStatisticInField< DYNAMICS >::computeEquilibrium ( ConstCell< value_t, descriptor_t > & cell,
value_t rho,
const value_t u[descriptor_t::d],
value_t fEq[descriptor_t::q] ) const
inlineoverride

Definition at line 125 of file modifiers.h.

125 {
126 DYNAMICS().computeEquilibrium(cell, rho, u, fEq);
127 };

◆ getName()

template<concepts::IntrospectableDynamics DYNAMICS>
std::string olb::dynamics::StoreStatisticInField< DYNAMICS >::getName ( ) const
inlineoverridevirtual

Return human-readable name.

Reimplemented from olb::Dynamics< DYNAMICS::value_t, DYNAMICS::descriptor_t >.

Definition at line 129 of file modifiers.h.

129 {
130 return "StoreStatisticInField<" + DYNAMICS().getName() + ">";
131 };

◆ getParameters()

template<concepts::IntrospectableDynamics DYNAMICS>
AbstractParameters< value_t, descriptor_t > & olb::dynamics::StoreStatisticInField< DYNAMICS >::getParameters ( BlockLattice< value_t, descriptor_t > & block)
inlineoverridevirtual

Parameters access for legacy post processors.

Implements olb::Dynamics< DYNAMICS::value_t, DYNAMICS::descriptor_t >.

Definition at line 114 of file modifiers.h.

114 {
115 return block.template getData<OperatorParameters<StoreStatisticInField>>();
116 }

◆ id()

template<concepts::IntrospectableDynamics DYNAMICS>
std::type_index olb::dynamics::StoreStatisticInField< DYNAMICS >::id ( )
inlineoverridevirtual

Expose unique type-identifier for RTTI.

Implements olb::Dynamics< DYNAMICS::value_t, DYNAMICS::descriptor_t >.

Definition at line 109 of file modifiers.h.

109 {
110 return typeid(StoreStatisticInField);
111 };

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