27#ifndef STOCHASTIC_SGS_DYNAMICS_H
28#define STOCHASTIC_SGS_DYNAMICS_H
38template<
typename T,
typename DESCRIPTOR,
typename MOMENTA=momenta::BulkTuple>
68 T computePreFactor(T omega_, T smagoConst_);
99 T invM_S_SGS[DESCRIPTOR::q][DESCRIPTOR::q];
Definition of a LB cell – header file.
Highest-level interface to Cell data.
Implementation of the MRT collision step with stochastic relaxation based on " A stochastic subgrid m...
virtual T getRandomWalk(Cell< T, DESCRIPTOR > &cell_, T drift_, T result_)
Get local Random number of BoxMüllertransform -> returns randBM.
virtual T getSmagorinskyOmega(Cell< T, DESCRIPTOR > &cell_, T X_lang_n_)
Get local smagorinsky relaxation parameter of the dynamics.
virtual CellStatistic< T > collide(Cell< T, DESCRIPTOR > &cell, LatticeStatistics< T > &statistics_)
virtual void setOmega(T omega_)
Set local relaxation parameter of the dynamics.
virtual T getRandBMTrans(Cell< T, DESCRIPTOR > &cell_, T turbulenceInt_, T charU_)
Get local Random number of BoxMüllertransform -> returns randBM.
StochasticSGSdynamics(T omega_, T turbulenceInt_, T charU_, T smagoConst_, T dx_=1, T dt_=1)
Constructor.
This object is a MRT LB dynamics as described in D.Yu et al.
Top level namespace for all of OpenLB.
Return value of any collision.
Dynamics constructed as a tuple of momenta, equilibrium and collision.
Compute number of elements of a symmetric d-dimensional tensor.