/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/BoussinesqBuoyancy.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/BoussinesqBuoyancy.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
BoussinesqBuoyancy.H
Go to the documentation of this file.
1#ifndef BOUSSINESQBUOYANCY_H
2#define BOUSSINESQBUOYANCY_H
3
6
7namespace amr_wind::pde::icns {
8
16class BoussinesqBuoyancy : public MomentumSource::Register<BoussinesqBuoyancy>
17{
18public:
19 static std::string identifier() { return "BoussinesqBuoyancy"; }
20
21 explicit BoussinesqBuoyancy(const CFDSim& sim);
22
24
25 void operator()(
26 const int lev,
27 const amrex::MFIter& mfi,
28 const amrex::Box& bx,
29 const FieldState fstate,
30 const amrex::Array4<amrex::Real>& src_term) const override;
31
32private:
34 const Field* m_vof;
35
36 amrex::Vector<amrex::Real> m_gravity{0.0, 0.0, -9.81};
37
39 amrex::Real m_ref_theta{300.0};
40
42 amrex::Real m_beta{0.0};
43
45 bool m_is_vof{false};
46};
47} // namespace amr_wind::pde::icns
48
49#endif /* BOUSSINESQBUOYANCY_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition BoussinesqBuoyancy.H:17
static std::string identifier()
Definition BoussinesqBuoyancy.H:19
const Field & m_temperature
Definition BoussinesqBuoyancy.H:33
const Field * m_vof
Definition BoussinesqBuoyancy.H:34
void operator()(const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState fstate, const amrex::Array4< amrex::Real > &src_term) const override
Definition BoussinesqBuoyancy.cpp:45
amrex::Real m_ref_theta
Reference temperature (Kelvin)
Definition BoussinesqBuoyancy.H:39
bool m_is_vof
Check for VOF.
Definition BoussinesqBuoyancy.H:45
amrex::Vector< amrex::Real > m_gravity
Definition BoussinesqBuoyancy.H:36
BoussinesqBuoyancy(const CFDSim &sim)
Definition BoussinesqBuoyancy.cpp:17
amrex::Real m_beta
Thermal expansion coefficient.
Definition BoussinesqBuoyancy.H:42
FieldState
Definition FieldDescTypes.H:14
Definition ABLForcing.cpp:11