OpenLB 1.7
|
Dynamics constructed as a tuple of momenta, equilibrium and collision. More...
#include <interface.h>
Public Types | |
using | MomentaF = typename COMBINATION_RULE::template combined_momenta<DESCRIPTOR,MOMENTA> |
using | EquilibriumF = typename COMBINATION_RULE::template combined_equilibrium<DESCRIPTOR,MOMENTA,EQUILIBRIUM> |
using | CollisionO = typename COMBINATION_RULE::template combined_collision<DESCRIPTOR,MOMENTA,EQUILIBRIUM,COLLISION> |
using | parameters = typename COMBINATION_RULE::template combined_parameters<DESCRIPTOR,MOMENTA,EQUILIBRIUM,COLLISION> |
template<typename NEW_MOMENTA > | |
using | exchange_momenta |
template<typename NEW_RULE > | |
using | exchange_combination_rule |
template<template< typename > typename WRAPPER> | |
using | wrap_collision |
Public Types inherited from olb::Dynamics< T, DESCRIPTOR > | |
using | value_t = T |
using | descriptor_t = DESCRIPTOR |
Public Member Functions | |
std::type_index | id () override |
Expose unique type-identifier for RTTI. | |
std::string | getName () const override |
Return human-readable name. | |
template<typename FIELD > | |
constexpr bool | hasParameter () const |
Return true iff FIELD is a parameter. | |
AbstractParameters< T, DESCRIPTOR > & | getParameters (BlockLattice< T, DESCRIPTOR > &block) override |
Interim workaround for accessing dynamics parameters in legacy post processors. | |
void | initialize (Cell< T, DESCRIPTOR > &cell) override |
Initialize MOMENTA-specific data for cell. | |
template<CONCEPT(MinimalCell) CELL, typename PARAMETERS , typename V = typename CELL::value_t> | |
CellStatistic< V > | apply (CELL &cell, PARAMETERS ¶meters) any_platform |
Apply purely-local collision step to a generic CELL. | |
T | computeEquilibrium (int iPop, T rho, const T u[DESCRIPTOR::d]) const override any_platform |
Return iPop equilibrium for given first and second momenta. | |
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. | |
Public Member Functions inherited from olb::Dynamics< T, DESCRIPTOR > | |
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 = is_vectorizable_v<CollisionO> |
Dynamics constructed as a tuple of momenta, equilibrium and collision.
Optionally also a combination rule thereof (e.g. a forcing scheme)
Definition at line 182 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::CollisionO = typename COMBINATION_RULE::template combined_collision<DESCRIPTOR,MOMENTA,EQUILIBRIUM,COLLISION> |
Definition at line 185 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::EquilibriumF = typename COMBINATION_RULE::template combined_equilibrium<DESCRIPTOR,MOMENTA,EQUILIBRIUM> |
Definition at line 184 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::exchange_combination_rule |
Definition at line 199 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::exchange_momenta |
Definition at line 192 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::MomentaF = typename COMBINATION_RULE::template combined_momenta<DESCRIPTOR,MOMENTA> |
Definition at line 183 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::parameters = typename COMBINATION_RULE::template combined_parameters<DESCRIPTOR,MOMENTA,EQUILIBRIUM,COLLISION> |
Definition at line 187 of file interface.h.
using olb::dynamics::Tuple< T, DESCRIPTOR, MOMENTA, EQUILIBRIUM, COLLISION, COMBINATION_RULE >::wrap_collision |
Definition at line 206 of file interface.h.
|
inline |
Apply purely-local collision step to a generic CELL.
Definition at line 243 of file interface.h.
|
inlineoverridevirtual |
Compute all momenta up to second order.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 271 of file interface.h.
|
inlineoverridevirtual |
Return iPop equilibrium for given first and second momenta.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 251 of file interface.h.
|
inlineoverridevirtual |
Compute fluid momentum.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 261 of file interface.h.
|
inlineoverridevirtual |
Compute particle density.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 255 of file interface.h.
|
inlineoverridevirtual |
Compute fluid velocity and particle density.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 268 of file interface.h.
|
inlineoverridevirtual |
Compute stress tensor.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 264 of file interface.h.
|
inlineoverridevirtual |
Compute fluid velocity.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 258 of file interface.h.
|
inlineoverridevirtual |
Define all momenta up to second order.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 285 of file interface.h.
|
inlineoverridevirtual |
Set particle density.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 276 of file interface.h.
|
inlineoverridevirtual |
Define fluid velocity and particle density.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 282 of file interface.h.
|
inlineoverridevirtual |
Set fluid velocity.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 279 of file interface.h.
|
inlineoverridevirtual |
Return human-readable name.
Reimplemented from olb::Dynamics< T, DESCRIPTOR >.
Definition at line 216 of file interface.h.
|
inlineoverridevirtual |
Interim workaround for accessing dynamics parameters in legacy post processors.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 232 of file interface.h.
|
inlineconstexpr |
Return true iff FIELD is a parameter.
Definition at line 227 of file interface.h.
|
inlineoverridevirtual |
Expose unique type-identifier for RTTI.
Implements olb::Dynamics< T, DESCRIPTOR >.
Definition at line 212 of file interface.h.
|
inlineoverridevirtual |
Initialize MOMENTA-specific data for cell.
Reimplemented from olb::Dynamics< T, DESCRIPTOR >.
Definition at line 237 of file interface.h.
|
inlineoverridevirtual |
Calculate population momenta s.t. the physical momenta are reproduced by the computeRhoU.
Reimplemented from olb::Dynamics< T, DESCRIPTOR >.
Definition at line 289 of file interface.h.
|
staticconstexpr |
Definition at line 189 of file interface.h.