/home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/RANS/KOmegaSST.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/RANS/KOmegaSST.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
KOmegaSST.H
Go to the documentation of this file.
1#ifndef KOMEGASST_H
2#define KOMEGASST_H
3
4#include <string>
6
7namespace amr_wind::turbulence {
8
32template <typename Transport>
33class KOmegaSST : public TurbModelBase<Transport>
34{
35public:
36 static std::string identifier()
37 {
38 return "KOmegaSST-" + Transport::identifier();
39 }
40
41 explicit KOmegaSST(CFDSim& sim);
42
43 ~KOmegaSST() override;
44
45 std::string model_name() const override { return "KOmegaSST"; }
46
49 const FieldState fstate, const DiffusionType diff_type) override;
50
52 void post_advance_work() override {}
53
55 void update_scalar_diff(Field& deff, const std::string& name) override;
56
58 void parse_model_coeffs() override;
59
62
63protected:
65
74
77
79 amrex::Real m_beta_star{0.09};
80 amrex::Real m_alpha1{0.5555555555555556};
81 amrex::Real m_alpha2{0.44};
82 amrex::Real m_beta1{0.075};
83 amrex::Real m_beta2{0.0828};
84 amrex::Real m_sigma_k1{0.85};
85 amrex::Real m_sigma_k2{1.0};
86 amrex::Real m_sigma_omega1{0.5};
87 amrex::Real m_sigma_omega2{0.856};
88 amrex::Real m_a1{0.31};
89 amrex::Real m_tke_amb{0.0};
90 amrex::Real m_sdr_amb{0.0};
91
93 bool m_include_buoyancy{false};
94 amrex::Real m_buoyancy_factor = 0.0;
95 amrex::Real m_sigma_t{0.85};
96 amrex::Vector<amrex::Real> m_gravity{0.0, 0.0, -9.81};
97};
98
99} // namespace amr_wind::turbulence
100
101#endif /* KOMEGASST_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition KOmegaSST.H:34
Field * m_tke
Definition KOmegaSST.H:75
amrex::Real m_beta_star
Turbulence constants.
Definition KOmegaSST.H:79
amrex::Real m_sigma_omega2
Definition KOmegaSST.H:87
amrex::Real m_sigma_omega1
Definition KOmegaSST.H:86
amrex::Real m_alpha2
Definition KOmegaSST.H:81
Field & m_sdr_src
Definition KOmegaSST.H:70
Field * m_sdr
Definition KOmegaSST.H:76
bool m_include_buoyancy
Buoyancy modified constants.
Definition KOmegaSST.H:93
amrex::Real m_sdr_amb
Definition KOmegaSST.H:90
amrex::Real m_alpha1
Definition KOmegaSST.H:80
static std::string identifier()
Definition KOmegaSST.H:36
void update_turbulent_viscosity(const FieldState fstate, const DiffusionType diff_type) override
Update the turbulent viscosity field.
Definition KOmegaSST.cpp:68
void parse_model_coeffs() override
Parse turbulence model coefficients.
Definition KOmegaSST.cpp:17
Field & m_sdr_diss
Definition KOmegaSST.H:71
Field & m_f1
Definition KOmegaSST.H:66
amrex::Real m_tke_amb
Definition KOmegaSST.H:89
Field & m_shear_prod
Definition KOmegaSST.H:67
void post_advance_work() override
No post advance work for this model.
Definition KOmegaSST.H:52
Field & m_diss
Definition KOmegaSST.H:69
amrex::Real m_buoyancy_factor
Definition KOmegaSST.H:94
Field & m_rho
Definition KOmegaSST.H:72
amrex::Vector< amrex::Real > m_gravity
Definition KOmegaSST.H:96
KOmegaSST(CFDSim &sim)
Definition KOmegaSSTI.H:17
amrex::Real m_sigma_t
Definition KOmegaSST.H:95
std::string model_name() const override
String representation of this turbulence model for I/O.
Definition KOmegaSST.H:45
Field & m_buoy_term
Definition KOmegaSST.H:68
amrex::Real m_beta1
Definition KOmegaSST.H:82
void update_scalar_diff(Field &deff, const std::string &name) override
Update the effective scalar diffusivity field.
Definition KOmegaSST.cpp:269
Field & m_walldist
Definition KOmegaSST.H:73
amrex::Real m_sigma_k2
Definition KOmegaSST.H:85
amrex::Real m_a1
Definition KOmegaSST.H:88
TurbulenceModel::CoeffsDictType model_coeffs() const override
Return turbulence model coefficients.
Definition KOmegaSST.cpp:50
Field & m_vel
Definition KOmegaSST.H:64
amrex::Real m_sigma_k1
Definition KOmegaSST.H:84
amrex::Real m_beta2
Definition KOmegaSST.H:83
Definition TurbModelBase.H:96
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