1 #ifndef ERF_FORESTDRAG_H_
2 #define ERF_FORESTDRAG_H_
5 #include <AMReX_MultiFab.H>
31 std::string height_file,
45 std::string height_file,
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,
const Real dy
Definition: ERF_InitCustomPert_ABL.H:45
const Real dx
Definition: ERF_InitCustomPert_ABL.H:44
amrex::Real Real
Definition: ERF_ShocInterface.H:19
Definition: ERF_ForestDrag.H:16
ForestDrag(std::string forestfile)
Definition: ERF_ForestDrag.cpp:116
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:283
int m_grid_nx
Definition: ERF_ForestDrag.H:106
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
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