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

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