![]() |
OpenLB 1.8.1
|
#include <zouHeDynamics.h>
Public Types | |
using | MomentaF = typename MOMENTA::template type<DESCRIPTOR> |
using | OriginalMomentaF = typename DYNAMICS::MomentaF |
using | EquilibriumF = typename CORRECTED_DYNAMICS::EquilibriumF |
using | parameters = typename CORRECTED_DYNAMICS::parameters |
template<typename NEW_T > | |
using | exchange_value_type |
template<typename M > | |
using | exchange_momenta = IncZouHeDynamics<T,DESCRIPTOR,DYNAMICS,M,direction,orientation> |
![]() | |
using | value_t = T |
using | descriptor_t = DESCRIPTOR |
using | MomentaF = typename MOMENTA::template type<DESCRIPTOR> |
![]() | |
using | value_t = T |
using | descriptor_t = DESCRIPTOR |
Public Member Functions | |
std::type_index | id () override |
Expose unique type-identifier for RTTI. | |
AbstractParameters< T, DESCRIPTOR > & | getParameters (BlockLattice< T, DESCRIPTOR > &block) override |
Parameters access for legacy post processors. | |
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t> | |
CellStatistic< V > | collide (CELL &cell, PARAMETERS ¶meters) any_platform |
template<typename CELL , typename PARAMETERS , typename V = typename CELL::value_t> | |
V | computeEquilibriumMP (int iPop, CELL &cell, PARAMETERS ¶meters) any_platform |
void | computeEquilibrium (ConstCell< T, DESCRIPTOR > &cell, T p, const T u[DESCRIPTOR::d], T fEq[DESCRIPTOR::q]) const override |
Return iPop equilibrium for given first and second momenta. | |
std::string | getName () const override |
Return human-readable name. | |
![]() | |
void | initialize (Cell< T, DESCRIPTOR > &cell) override |
Initialize dynamics-specific data for cell. | |
T | computeRho (ConstCell< T, DESCRIPTOR > &cell) const override |
Compute particle density. | |
void | computeU (ConstCell< T, DESCRIPTOR > &cell, T u[DESCRIPTOR::d]) const override |
Compute fluid velocity. | |
void | computeJ (ConstCell< T, DESCRIPTOR > &cell, T j[DESCRIPTOR::d]) const override |
Compute fluid momentum. | |
void | computeStress (ConstCell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], T pi[util::TensorVal< DESCRIPTOR >::n]) const override |
Compute stress tensor. | |
void | computeRhoU (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d]) const override |
Compute fluid velocity and particle density. | |
void | computeAllMomenta (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d], T pi[util::TensorVal< DESCRIPTOR >::n]) const override |
Compute all momenta up to second order. | |
void | defineRho (Cell< T, DESCRIPTOR > &cell, T rho) override |
Set particle density. | |
void | defineU (Cell< T, DESCRIPTOR > &cell, const T u[DESCRIPTOR::d]) override |
Set fluid velocity. | |
void | defineRhoU (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d]) override |
Define fluid velocity and particle density. | |
void | defineAllMomenta (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], const T pi[util::TensorVal< DESCRIPTOR >::n]) override |
Define all momenta up to second order. | |
void | inverseShiftRhoU (ConstCell< T, DESCRIPTOR > &cell, T &rho, T u[DESCRIPTOR::d]) const override |
Calculate population momenta s.t. the physical momenta are reproduced by the computeRhoU. | |
![]() | |
virtual | ~Dynamics () any_platform |
virtual CellStatistic< T > | collide (Cell< T, DESCRIPTOR > &cell) |
Perform purely-local collision step on Cell interface (legacy, to be deprecated) | |
void | iniEquilibrium (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d]) |
Initialize to equilibrium distribution. | |
void | iniRegularized (Cell< T, DESCRIPTOR > &cell, T rho, const T u[DESCRIPTOR::d], const T pi[util::TensorVal< DESCRIPTOR >::n]) |
Initialize cell to equilibrium and non-equilibrum part. | |
Static Public Attributes | |
static constexpr bool | is_vectorizable = false |
Definition at line 148 of file zouHeDynamics.h.
using olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::EquilibriumF = typename CORRECTED_DYNAMICS::EquilibriumF |
Definition at line 156 of file zouHeDynamics.h.
using olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::exchange_momenta = IncZouHeDynamics<T,DESCRIPTOR,DYNAMICS,M,direction,orientation> |
Definition at line 167 of file zouHeDynamics.h.
using olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::exchange_value_type |
Definition at line 161 of file zouHeDynamics.h.
using olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::MomentaF = typename MOMENTA::template type<DESCRIPTOR> |
Definition at line 154 of file zouHeDynamics.h.
using olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::OriginalMomentaF = typename DYNAMICS::MomentaF |
Definition at line 155 of file zouHeDynamics.h.
using olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::parameters = typename CORRECTED_DYNAMICS::parameters |
Definition at line 158 of file zouHeDynamics.h.
|
inline |
Definition at line 180 of file zouHeDynamics.h.
References olb::util::abs(), olb::descriptors::c(), olb::IncZouHeDynamics< T, DESCRIPTOR, DYNAMICS, MOMENTA, direction, orientation >::computeEquilibriumMP(), olb::util::normSqr(), olb::descriptors::opposite(), and olb::util::subIndexOutgoing().
|
inlineoverridevirtual |
Return iPop equilibrium for given first and second momenta.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 250 of file zouHeDynamics.h.
|
inline |
Definition at line 244 of file zouHeDynamics.h.
|
inlineoverridevirtual |
Return human-readable name.
Reimplemented from olb::Dynamics< T, DESCRIPTOR >.
Definition at line 254 of file zouHeDynamics.h.
|
inlineoverridevirtual |
Parameters access for legacy post processors.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 175 of file zouHeDynamics.h.
|
inlineoverridevirtual |
Expose unique type-identifier for RTTI.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 171 of file zouHeDynamics.h.
|
staticconstexpr |
Definition at line 169 of file zouHeDynamics.h.