/home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/ABLAnelastic.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/ABLAnelastic.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ABLAnelastic.H
Go to the documentation of this file.
1#ifndef ABLANELASTIC_H
2#define ABLANELASTIC_H
3#include "amr-wind/CFDSim.H"
5#include "AMReX_ParmParse.H"
6
7namespace amr_wind {
8
16{
17 static_assert(AMREX_SPACEDIM == 3, "ABL requires 3 dimensional mesh");
18
19public:
20 explicit ABLAnelastic(CFDSim& /*sim*/);
21
22 void post_init_actions();
24 void initialize_data();
25 bool is_anelastic() const { return m_is_anelastic; }
26
27private:
28 const CFDSim& m_sim;
29
30 bool m_is_anelastic{false};
31
32 amrex::Vector<amrex::Real> m_gravity{0.0, 0.0, -9.81};
33
34 amrex::Real m_rho0_const{1.0};
35
36 amrex::Real m_bottom_reference_pressure{1.01325e5};
37
38 const int m_axis{2};
39
42};
43} // namespace amr_wind
44#endif
Definition ABLAnelastic.H:16
MultiLevelVector m_density
Definition ABLAnelastic.H:40
MultiLevelVector m_pressure
Definition ABLAnelastic.H:41
amrex::Real m_rho0_const
Definition ABLAnelastic.H:34
const int m_axis
Definition ABLAnelastic.H:38
void post_regrid_actions()
Definition ABLAnelastic.cpp:49
amrex::Vector< amrex::Real > m_gravity
Definition ABLAnelastic.H:32
ABLAnelastic(CFDSim &)
Definition ABLAnelastic.cpp:5
void post_init_actions()
Definition ABLAnelastic.cpp:41
void initialize_data()
Definition ABLAnelastic.cpp:57
bool m_is_anelastic
Definition ABLAnelastic.H:30
bool is_anelastic() const
Definition ABLAnelastic.H:25
const CFDSim & m_sim
Definition ABLAnelastic.H:28
amrex::Real m_bottom_reference_pressure
Definition ABLAnelastic.H:36
Definition CFDSim.H:47
Definition MultiLevelVector.H:23
@ NODE
Node-centered (e.g., for pressure)
@ CELL
Cell-centered (default)
Definition BCInterface.cpp:7