/home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/LES/Kosovic.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/LES/Kosovic.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
Kosovic.H
Go to the documentation of this file.
1#ifndef KOSOVIC_H
2#define KOSOVIC_H
3
4#include <string>
7
8namespace amr_wind::turbulence {
9
13template <typename Transport>
14class Kosovic : public TurbModelBase<Transport>
15{
16public:
17 static std::string identifier()
18 {
19 return "Kosovic-" + Transport::identifier();
20 }
21
22 explicit Kosovic(CFDSim& sim);
23
25 std::string model_name() const override { return "Kosovic"; }
26
29 const FieldState fstate, const DiffusionType /*unused*/) override;
30
32 void post_advance_work() override {}
33
35 void update_alphaeff(Field& alphaeff) override;
36
38 void parse_model_coeffs() override;
39
42
43private:
45 // Ref: Mirocha et. al "Implementation of a Nonlinear Subfilter Turbulence
46 // Stress Model for Large-Eddy Simulation in the Advanced Research WRF
47 // Model"
48 // , MWR 2012.
49 amrex::Real m_Cb{0.36};
50 amrex::Real m_Cs{0.135};
51 amrex::Real m_C1{2.1};
52 amrex::Real m_C2{2.1};
53 amrex::Real m_Sk{0.5};
54 bool m_surfaceRANS{false};
55 amrex::Real m_surfaceFactor{0};
56 amrex::Real m_switchLoc{24};
57 amrex::Real m_surfaceRANSExp{2};
58 amrex::Real m_LESTurnOff{1e15};
59 bool m_writeTerms{false};
60 amrex::Real m_refMOL{-1e30};
61 const Field& m_vel;
62 const Field& m_rho;
65};
66
67} // namespace amr_wind::turbulence
68
69#endif /* SMAGORINSKY_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition Kosovic.H:15
amrex::Real m_refMOL
Definition Kosovic.H:60
amrex::Real m_LESTurnOff
Definition Kosovic.H:58
Field & m_Nij
Definition Kosovic.H:63
bool m_surfaceRANS
Definition Kosovic.H:54
amrex::Real m_C2
Definition Kosovic.H:52
void parse_model_coeffs() override
Parse turbulence model coefficients.
Definition Kosovic.cpp:158
void post_advance_work() override
No post advance work for this model.
Definition Kosovic.H:32
amrex::Real m_C1
Definition Kosovic.H:51
const Field & m_vel
Definition Kosovic.H:61
amrex::Real m_Sk
Definition Kosovic.H:53
Field & m_divNij
Definition Kosovic.H:64
Kosovic(CFDSim &sim)
Definition Kosovic.cpp:16
bool m_writeTerms
Definition Kosovic.H:59
void update_turbulent_viscosity(const FieldState fstate, const DiffusionType) override
Update the turbulent viscosity field.
Definition Kosovic.cpp:45
std::string model_name() const override
Model name for debugging purposes.
Definition Kosovic.H:25
amrex::Real m_surfaceFactor
Definition Kosovic.H:55
amrex::Real m_Cs
Definition Kosovic.H:50
const Field & m_rho
Definition Kosovic.H:62
amrex::Real m_Cb
Kosovic coefficient (default value set for ABL simulations)
Definition Kosovic.H:49
static std::string identifier()
Definition Kosovic.H:17
amrex::Real m_surfaceRANSExp
Definition Kosovic.H:57
amrex::Real m_switchLoc
Definition Kosovic.H:56
void update_alphaeff(Field &alphaeff) override
Update the effective thermal diffusivity field.
Definition Kosovic.cpp:133
TurbulenceModel::CoeffsDictType model_coeffs() const override
Return model coefficients dictionary.
Definition Kosovic.cpp:166
Definition TurbModelBase.H:96
Field & alphaeff() override
Return the effective thermal diffusivity field.
Definition TurbModel.H:53
std::unordered_map< std::string, amrex::Real > CoeffsDictType
Default identifier used by factor methods.
Definition TurbulenceModel.H:35
FieldState
Definition FieldDescTypes.H:14
DiffusionType
Definition incflo_enums.H:4
Definition CFDSim.H:23