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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/LaminarModel.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
LaminarModel.H
Go to the documentation of this file.
1#ifndef LAMINARMODEL_H
2#define LAMINARMODEL_H
3
5
6namespace amr_wind::turbulence {
7
13template <typename Transport>
14class Laminar : public TurbModel<Transport>
15{
16public:
17 static std::string identifier()
18 {
19 return "Laminar-" + Transport::identifier();
20 }
21
22 explicit Laminar(CFDSim& sim) : TurbModel<Transport>(sim) {}
23
24 ~Laminar() override = default;
25
27 std::string model_name() const override { return "laminar"; }
28
31 const FieldState fstate,
32 const DiffusionType diff_type /*unused*/) override;
33
35 void post_advance_work() override {}
36
38 void parse_model_coeffs() override {}
39
42 Field& mu_turb() override { return this->mueff(); }
43
45 Field& alpha_turb() override { return this->alphaeff(); }
46
48 bool is_turbulent() const override { return false; }
49
51 void update_mueff(Field& mueff) override;
52
54 void update_alphaeff(Field& alphaeff) override;
55
57 void update_scalar_diff(Field& deff, const std::string& name) override;
58
61};
62
63} // namespace amr_wind::turbulence
64
65#endif /* LAMINARMODEL_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition LaminarModel.H:15
std::string model_name() const override
String representation of this model for I/O.
Definition LaminarModel.H:27
~Laminar() override=default
void update_turbulent_viscosity(const FieldState fstate, const DiffusionType diff_type) override
Update the effective/turbulent viscosity field.
Definition LaminarModel.cpp:83
Laminar(CFDSim &sim)
Definition LaminarModel.H:22
void update_scalar_diff(Field &deff, const std::string &name) override
Interface to update scalar diffusivity based on Schmidt number.
Definition LaminarModel.cpp:102
Field & mu_turb() override
Definition LaminarModel.H:42
Field & alpha_turb() override
Return the thermal diffusivity field (just the same as effective field)
Definition LaminarModel.H:45
void parse_model_coeffs() override
No model specific coefficient for this model.
Definition LaminarModel.H:38
void post_advance_work() override
No post advance work for this model.
Definition LaminarModel.H:35
static std::string identifier()
Definition LaminarModel.H:17
TurbulenceModel::CoeffsDictType model_coeffs() const override
Return model coefficients dictionary.
Definition LaminarModel.cpp:109
void update_mueff(Field &mueff) override
Interface to update effective viscosity (mu_eff = mu + mu_t)
Definition LaminarModel.cpp:90
bool is_turbulent() const override
Indicate that this model is not a turbulent model type.
Definition LaminarModel.H:48
void update_alphaeff(Field &alphaeff) override
Interface to update effective thermal diffusivity.
Definition LaminarModel.cpp:96
Definition TurbModel.H:18
Field & mueff() override
Return the effective dynamic viscosity field.
Definition TurbModel.H:47
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