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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/DensityBuoyancy.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
DensityBuoyancy.H
Go to the documentation of this file.
1//
2// DensityBuoyancy.H
3// amr-wind
4//
5
6#ifndef DensityBuoyancy_H
7#define DensityBuoyancy_H
8
11
12namespace amr_wind::pde::icns {
13
19class DensityBuoyancy : public MomentumSource::Register<DensityBuoyancy>
20{
21public:
22 static std::string identifier() { return "DensityBuoyancy"; }
23
24 explicit DensityBuoyancy(const CFDSim& sim);
25
26 ~DensityBuoyancy() override;
27
28 void operator()(
29 const int lev,
30 const amrex::MFIter& mfi,
31 const amrex::Box& bx,
32 const FieldState fstate,
33 const amrex::Array4<amrex::Real>& vel_forces) const override;
34
35private:
36 amrex::Vector<amrex::Real> m_gravity{0.0, 0.0, -9.81};
37
38 amrex::Real m_rho_0{1.0};
39
41};
42
43} // namespace amr_wind::pde::icns
44
45#endif /* DensityBuoyancy_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition DensityBuoyancy.H:20
DensityBuoyancy(const CFDSim &sim)
Definition DensityBuoyancy.cpp:21
static std::string identifier()
Definition DensityBuoyancy.H:22
Field & m_density
Definition DensityBuoyancy.H:40
amrex::Vector< amrex::Real > m_gravity
Definition DensityBuoyancy.H:36
void operator()(const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState fstate, const amrex::Array4< amrex::Real > &vel_forces) const override
Definition DensityBuoyancy.cpp:43
amrex::Real m_rho_0
Definition DensityBuoyancy.H:38
FieldState
Definition FieldDescTypes.H:14
Definition ABLForcing.cpp:11