1 #ifndef ERF_FORESTDRAG_H_
2 #define ERF_FORESTDRAG_H_
5 #include <AMReX_MultiFab.H>
31 std::string height_file,
34 amrex::Real laimax = 0.8);
45 std::string height_file,
48 amrex::Real laimax = 0.8);
65 const amrex::DistributionMapping& dm,
66 amrex::Geometry& geom,
67 amrex::MultiFab* z_phys_cc,
68 amrex::MultiFab* z_phys_nd,
69 bool need_frontal_area,
129 const std::string& varname,
130 amrex::Vector<amrex::Real>& data,
132 amrex::Real&
dx, amrex::Real&
dy,
133 amrex::Real& xmin, amrex::Real& ymin);
GpuArray< Real, AMREX_SPACEDIM > dx
Definition: ERF_ActuatorSpreading.cpp:131
const int nx
Definition: ERF_InitCustomPertVels_CloudChamber.H:14
const int ny
Definition: ERF_InitCustomPertVels_CloudChamber.H:15
const Real dy
Definition: ERF_InitCustomPert_ABL.H:101
Definition: ERF_ForestDrag.H:16
ForestDrag(std::string forestfile)
Definition: ERF_ForestDrag.cpp:118
amrex::Real m_lad_normalization
Definition: ERF_ForestDrag.H:119
amrex::Vector< amrex::Real > m_diameter_forest
Definition: ERF_ForestDrag.H:96
bool m_need_frontal_area
Definition: ERF_ForestDrag.H:85
amrex::Real m_grid_xmin
Definition: ERF_ForestDrag.H:110
amrex::Real m_grid_dy
Definition: ERF_ForestDrag.H:109
amrex::Vector< amrex::Real > m_laimax_forest
Definition: ERF_ForestDrag.H:99
void define_drag_field(const amrex::BoxArray &ba, const amrex::DistributionMapping &dm, amrex::Geometry &geom, amrex::MultiFab *z_phys_cc, amrex::MultiFab *z_phys_nd, bool need_frontal_area, int level)
Definition: ERF_ForestDrag.cpp:285
int m_grid_nx
Definition: ERF_ForestDrag.H:106
ForestDrag(std::string lai_file, std::string height_file, amrex::Real cd_const, int tree_type=1, amrex::Real laimax=0.8)
void read_netcdf_file(const std::string &filename, const std::string &varname, amrex::Vector< amrex::Real > &data, int &nx, int &ny, amrex::Real &dx, amrex::Real &dy, amrex::Real &xmin, amrex::Real &ymin)
amrex::Vector< amrex::Real > m_gridded_lai
Definition: ERF_ForestDrag.H:102
int m_tree_type
Definition: ERF_ForestDrag.H:114
amrex::Vector< amrex::Real > m_gridded_height
Definition: ERF_ForestDrag.H:103
amrex::Vector< amrex::Real > m_lai_forest
Definition: ERF_ForestDrag.H:98
amrex::Vector< amrex::Real > m_x_forest
Definition: ERF_ForestDrag.H:93
amrex::Vector< amrex::Real > m_height_forest
Definition: ERF_ForestDrag.H:95
amrex::Real m_grid_dx
Definition: ERF_ForestDrag.H:108
amrex::Real m_laimax
Definition: ERF_ForestDrag.H:115
std::unique_ptr< amrex::MultiFab > m_frontal_area
Definition: ERF_ForestDrag.H:125
amrex::Vector< amrex::Real > m_gridded_cd
Definition: ERF_ForestDrag.H:104
amrex::Vector< amrex::Real > m_cd_forest
Definition: ERF_ForestDrag.H:97
amrex::MultiFab * get_drag_field()
Definition: ERF_ForestDrag.H:74
amrex::Real m_cd_const
Definition: ERF_ForestDrag.H:89
ForestDrag(std::string lai_file, std::string height_file, std::string cd_file, int tree_type=1, amrex::Real laimax=0.8)
bool m_use_gridded_data
Definition: ERF_ForestDrag.H:82
std::unique_ptr< amrex::MultiFab > m_forest_drag
Definition: ERF_ForestDrag.H:122
amrex::Vector< amrex::Real > m_type_forest
Definition: ERF_ForestDrag.H:92
int m_grid_ny
Definition: ERF_ForestDrag.H:107
bool m_use_const_cd
Definition: ERF_ForestDrag.H:88
amrex::Real m_grid_ymin
Definition: ERF_ForestDrag.H:111
amrex::MultiFab * get_frontal_area()
Definition: ERF_ForestDrag.H:78
amrex::Vector< amrex::Real > m_y_forest
Definition: ERF_ForestDrag.H:94