Implementation of LB collision model MRT [9].
Instead of providing all relaxation parameters, you can also provide just two. There are two variants, one that matches TRT [13] and one by Pan et al. [24]. Only works with D3Q19!
#include <CollisionModel.h>
Public Types | |
using | tag = MRT_tag |
Public Member Functions | |
D3Q19MRT (const real_t _s1, const real_t _s2, const real_t _s4, const real_t _s9, const real_t _s10, const real_t _s16, const uint_t _level=uint_t(0)) | |
{ 0, _s1, _s2, 0, _s4, 0, _s4, 0, _s4, _s9, _s10, _s9, _s10, _s9, _s9, _s9, _s16, _s16, _s16 } { 0, s_e, s_eps, 0, s_q, 0, s_q, 0, s_q, s_nu, s_pi, s_nu, s_pi, s_nu, s_nu, s_nu, s_m, s_m, s_m } More... | |
void | pack (mpi::SendBuffer &buffer) const |
void | unpack (mpi::RecvBuffer &buffer) |
void | configure (IBlock &block, StructuredBlockStorage &sbs) |
Adapts the relaxation parameters to the "right", level-dependent parameters once "configure" is called. More... | |
real_t | s0 () const |
real_t | s1 () const |
real_t | s2 () const |
real_t | s3 () const |
real_t | s4 () const |
real_t | s5 () const |
real_t | s6 () const |
real_t | s7 () const |
real_t | s8 () const |
real_t | s9 () const |
real_t | s10 () const |
real_t | s11 () const |
real_t | s12 () const |
real_t | s13 () const |
real_t | s14 () const |
real_t | s15 () const |
real_t | s16 () const |
real_t | s17 () const |
real_t | s18 () const |
real_t | s (const uint_t index) const |
real_t | s_e () const |
real_t | s_eps () const |
real_t | s_q () const |
real_t | s_nu () const |
real_t | s_pi () const |
real_t | s_m () const |
real_t | omega () const |
real_t | omega (const cell_idx_t, const cell_idx_t, const cell_idx_t, const Vector3< real_t > &=Vector3< real_t >(), const real_t=real_t(1)) const |
real_t | omega_bulk () const |
real_t | omega_odd () const |
real_t | viscosity () const |
real_t | viscosity (const cell_idx_t, const cell_idx_t, const cell_idx_t) const |
real_t | viscosity (const uint_t _level) const |
uint_t | level () const |
Static Public Member Functions | |
static D3Q19MRT | constructPan (const real_t lambda_e, const real_t lambda_d, const uint_t _level=uint_t(0)) |
static D3Q19MRT | constructPanWithMagicNumber (const real_t omega, const real_t magicNumber=threeSixteenth, const uint_t _level=uint_t(0)) |
Model by Pan et al., An evaluation of lattice Boltzmann schemes for porous medium flow simulation. http://dx.doi.org/10.1016/j.compfluid.2005.03.008. More... | |
static D3Q19MRT | constructTRT (const real_t lambda_e, const real_t lambda_d, const uint_t _level=uint_t(0)) |
Supposed to be identical to TRT ! More... | |
static D3Q19MRT | constructTRTWithMagicNumber (const real_t omega, const real_t magicNumber=threeSixteenth, const uint_t _level=uint_t(0)) |
Static Public Attributes | |
static const real_t | threeSixteenth = real_t(3) / real_t(16) |
Private Member Functions | |
D3Q19MRT () | |
void | initTRT (const real_t lambda_e, const real_t lambda_d, const uint_t _level=uint_t(0)) |
void | initPan (const real_t lambda_e, const real_t lambda_d, const uint_t _level=uint_t(0)) |
Private Attributes | |
real_t | s_ [19] |
real_t | viscosity_ |
uint_t | level_ |
|
inline |
{ 0, _s1, _s2, 0, _s4, 0, _s4, 0, _s4, _s9, _s10, _s9, _s10, _s9, _s9, _s9, _s16, _s16, _s16 } { 0, s_e, s_eps, 0, s_q, 0, s_q, 0, s_q, s_nu, s_pi, s_nu, s_pi, s_nu, s_nu, s_nu, s_m, s_m, s_m }
|
inlineprivate |
|
inline |
Adapts the relaxation parameters to the "right", level-dependent parameters once "configure" is called.
|
inlinestatic |
|
inlinestatic |
Model by Pan et al., An evaluation of lattice Boltzmann schemes for porous medium flow simulation. http://dx.doi.org/10.1016/j.compfluid.2005.03.008.
|
inlinestatic |
Supposed to be identical to TRT !
|
inlinestatic |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
static |
|
private |