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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/LES/Smagorinsky.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
Smagorinsky.H
Go to the documentation of this file.
1#ifndef SMAGORINSKY_H
2#define SMAGORINSKY_H
3
4#include <string>
7
8namespace amr_wind::turbulence {
9
13template <typename Transport>
14class Smagorinsky : public TurbModelBase<Transport>
15{
16public:
17 static std::string identifier()
18 {
19 return "Smagorinsky-" + Transport::identifier();
20 }
21
22 explicit Smagorinsky(CFDSim& sim);
23
25 std::string model_name() const override { return "Smagorinsky"; }
26
29 const FieldState fstate, const DiffusionType /*unused*/) override;
30
32 void post_advance_work() override {}
33
35 void parse_model_coeffs() override;
36
39
40private:
42 amrex::Real m_Cs{0.135};
43
44 const Field& m_vel;
45 const Field& m_rho;
46};
47
48} // namespace amr_wind::turbulence
49
50#endif /* SMAGORINSKY_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition Smagorinsky.H:15
Smagorinsky(CFDSim &sim)
Definition Smagorinsky.cpp:15
std::string model_name() const override
Model name for debugging purposes.
Definition Smagorinsky.H:25
void parse_model_coeffs() override
Parse turbulence model coefficients.
Definition Smagorinsky.cpp:67
void post_advance_work() override
No post advance work for this model.
Definition Smagorinsky.H:32
amrex::Real m_Cs
Smagorinsky coefficient (default value set for ABL simulations)
Definition Smagorinsky.H:42
const Field & m_rho
Definition Smagorinsky.H:45
void update_turbulent_viscosity(const FieldState fstate, const DiffusionType) override
Update the turbulent viscosity field.
Definition Smagorinsky.cpp:22
TurbulenceModel::CoeffsDictType model_coeffs() const override
Return model coefficients dictionary.
Definition Smagorinsky.cpp:75
const Field & m_vel
Definition Smagorinsky.H:44
static std::string identifier()
Definition Smagorinsky.H:17
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