walker::VelocityCoeffHydroTimeScale class

Velocity equation coefficients policy with DNS hydrodynamics time scale

C0 is user-defined and we pull in a hydrodynamic timescale from an external function (from DNS).

Public static functions

static auto type() -> ctr::CoeffPolicyType noexcept
Coefficients policy type accessor.

Constructors, destructors, conversion operators

VelocityCoeffHydroTimeScale(kw::sde_c0::info::expect::type C0_, kw::sde_c0::info::expect::type& C0, std::array<tk::real, 9>&)

Public functions

void update(char depvar, char, const std::map<tk::ctr::Product, tk::real>& moments, const tk::Table& hts, ctr::DepvarType solve, ctr::VelocityVariantType, kw::sde_c0::info::expect::type C0, tk::real t, tk::real& eps, std::array<tk::real, 9>& G) const
Update the model coefficients.
auto hydrotimescale(tk::real t, const tk::Table& ts) const -> tk::real

Function documentation

walker::VelocityCoeffHydroTimeScale::VelocityCoeffHydroTimeScale(kw::sde_c0::info::expect::type C0_, kw::sde_c0::info::expect::type& C0, std::array<tk::real, 9>&)

Parameters
C0_ in Value of C0 parameter in the Langevin model
C0 in/out Value of to set the C0 parameter in the Langevin model

Constructor: initialize coefficients

void walker::VelocityCoeffHydroTimeScale::update(char depvar, char, const std::map<tk::ctr::Product, tk::real>& moments, const tk::Table& hts, ctr::DepvarType solve, ctr::VelocityVariantType, kw::sde_c0::info::expect::type C0, tk::real t, tk::real& eps, std::array<tk::real, 9>& G) const

Update the model coefficients.

Update the dissipation rate (eps) based on eps/k (from DNS) and the turbulent kinetic energy (k) (from the SDE)

tk::real walker::VelocityCoeffHydroTimeScale::hydrotimescale(tk::real t, const tk::Table& ts) const

Parameters
in Time at which to sample inverse hydrodynamics time scale
ts in Hydro time scale table to sample
Returns Sampled value from discrete table of inverse hydro time scale

Sample the inverse hydrodynamics time scale at time t