/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/tke/source_terms/KsgsM84Src.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/tke/source_terms/KsgsM84Src.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
KsgsM84Src.H
Go to the documentation of this file.
1#ifndef KSGSM84SRC_H
2#define KSGSM84SRC_H
3
5
6namespace amr_wind::pde::tke {
7
11class KsgsM84Src : public TKESource::Register<KsgsM84Src>
12{
13public:
14 static std::string identifier() { return "KsgsM84Src"; }
15
16 explicit KsgsM84Src(const CFDSim& /*sim*/);
17
18 ~KsgsM84Src() override;
19
20 void operator()(
21 const int lev,
22 const amrex::MFIter& mfi,
23 const amrex::Box& bx,
24 const FieldState fstate,
25 const amrex::Array4<amrex::Real>& src_term) const override;
26
27private:
28 amrex::Real m_Ceps{0.93};
29 amrex::Real m_CepsGround{3.9};
30
36};
37
38AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real calc_ceps_local(
39 const amrex::Real Ceps, const amrex::Real tlscale, const amrex::Real ds)
40{
41 return (Ceps / 0.93) * (0.19 + (0.74 * tlscale / ds));
42}
43
44AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real calc_dissip(
45 const amrex::Real Ceps, const amrex::Real tke, const amrex::Real tlscale)
46{
47 return Ceps * std::sqrt(tke) * tke / tlscale;
48}
49
50} // namespace amr_wind::pde::tke
51
52#endif /* KSGSM84SRC_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition KsgsM84Src.H:12
amrex::Real m_CepsGround
Definition KsgsM84Src.H:29
static std::string identifier()
Definition KsgsM84Src.H:14
Field & m_buoy_prod
Definition KsgsM84Src.H:33
amrex::Real m_Ceps
Definition KsgsM84Src.H:28
KsgsM84Src(const CFDSim &)
Definition KsgsM84Src.cpp:9
Field & m_dissip
Definition KsgsM84Src.H:34
Field & m_shear_prod
Definition KsgsM84Src.H:32
void operator()(const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState fstate, const amrex::Array4< amrex::Real > &src_term) const override
Definition KsgsM84Src.cpp:24
Field & m_turb_lscale
Definition KsgsM84Src.H:31
Field & m_tke
Definition KsgsM84Src.H:35
FieldState
Definition FieldDescTypes.H:14
Definition SDRSrc.cpp:7
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real calc_ceps_local(const amrex::Real Ceps, const amrex::Real tlscale, const amrex::Real ds)
Definition KsgsM84Src.H:38
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real calc_dissip(const amrex::Real Ceps, const amrex::Real tke, const amrex::Real tlscale)
Definition KsgsM84Src.H:44