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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/turbulence/RANS/KOmegaSSTI.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
KOmegaSSTI.H
Go to the documentation of this file.
1#ifndef KOMEGASSTI_H
2#define KOMEGASSTI_H
3
10
11#include "AMReX_ParmParse.H"
12
13namespace amr_wind::turbulence {
14
15template <typename Transport>
16// cppcheck-suppress uninitMemberVar
18 : TurbModelBase<Transport>(sim)
19 , m_vel(sim.repo().get_field("velocity"))
20 , m_f1(sim.repo().declare_field("f1", 1, 1, 1))
21 , m_shear_prod(sim.repo().declare_field("shear_prod", 1, 1, 1))
22 , m_buoy_term(sim.repo().declare_field("buoyancy_term", 1, 1, 1))
23 , m_diss(sim.repo().declare_field("dissipation", 1, 1, 1))
24 , m_sdr_src(sim.repo().declare_field("omega_src", 1, 1, 1))
25 , m_sdr_diss(sim.repo().declare_field("sdr_dissipation", 1, 1, 1))
26 , m_rho(sim.repo().get_field("density"))
27 , m_walldist(sim.repo().declare_field("wall_dist", 1, 1, 1))
28{
31
32 auto& tke_eqn =
34 m_tke = &(tke_eqn.fields().field);
35
36 auto& sdr_eqn =
38 m_sdr = &(sdr_eqn.fields().field);
39
40 // TKE source term to be added to PDE
42}
43
44template <typename Transport>
46
47} // namespace amr_wind::turbulence
48
49#endif /* KOMEGASSTI_H */
Definition CFDSim.H:47
SimTime & time()
Return simulation time control.
Definition CFDSim.H:58
pde::PDEMgr & pde_manager()
Definition CFDSim.H:65
bool & fillpatch_on_regrid()
Definition Field.H:161
void set_default_fillpatch_bc(const SimTime &time, const amrex::BCType::mathematicalBndryTypes bctype=amrex::BCType::hoextrap) noexcept
Definition Field.cpp:377
PDEBase & register_transport_pde(const std::string &pde_name)
Register a new PDE instance and return its reference.
Definition PDEBase.cpp:55
Field * m_tke
Definition KOmegaSST.H:75
Field * m_sdr
Definition KOmegaSST.H:76
KOmegaSST(CFDSim &sim)
Definition KOmegaSSTI.H:17
Field & m_walldist
Definition KOmegaSST.H:73
Definition TurbModelBase.H:96
void inject_turbulence_src_terms(const std::string &key, const amrex::Vector< std::string > &terms)
Definition turb_utils.cpp:9
Definition CFDSim.H:23
static std::string pde_name()
Definition SDR.H:36
static std::string pde_name()
Definition TKE.H:37