ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ForestDrag Class Reference

#include <ERF_ForestDrag.H>

Collaboration diagram for ForestDrag:

Public Member Functions

 ForestDrag (std::string forestfile)
 
 ForestDrag (std::string lai_file, std::string height_file, std::string cd_file, int tree_type=1, amrex::Real laimax=0.8)
 
 ForestDrag (std::string lai_file, std::string height_file, amrex::Real cd_const, int tree_type=1, amrex::Real laimax=0.8)
 
 ~ForestDrag ()=default
 
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)
 
amrex::MultiFab * get_drag_field ()
 
amrex::MultiFab * get_frontal_area ()
 

Private Member Functions

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)
 

Private Attributes

bool m_use_gridded_data {false}
 
bool m_need_frontal_area {true}
 
bool m_use_const_cd {false}
 
amrex::Real m_cd_const {0.0}
 
amrex::Vector< amrex::Real > m_type_forest
 
amrex::Vector< amrex::Real > m_x_forest
 
amrex::Vector< amrex::Real > m_y_forest
 
amrex::Vector< amrex::Real > m_height_forest
 
amrex::Vector< amrex::Real > m_diameter_forest
 
amrex::Vector< amrex::Real > m_cd_forest
 
amrex::Vector< amrex::Real > m_lai_forest
 
amrex::Vector< amrex::Real > m_laimax_forest
 
amrex::Vector< amrex::Real > m_gridded_lai
 
amrex::Vector< amrex::Real > m_gridded_height
 
amrex::Vector< amrex::Real > m_gridded_cd
 
int m_grid_nx {0}
 
int m_grid_ny {0}
 
amrex::Real m_grid_dx {0.0}
 
amrex::Real m_grid_dy {0.0}
 
amrex::Real m_grid_xmin {0.0}
 
amrex::Real m_grid_ymin {0.0}
 
int m_tree_type {1}
 
amrex::Real m_laimax {0.8}
 
amrex::Real m_lad_normalization {1.0}
 
std::unique_ptr< amrex::MultiFab > m_forest_drag
 
std::unique_ptr< amrex::MultiFab > m_frontal_area
 

Detailed Description

Build canopy leaf-area-density and momentum-drag fields.

The vertical leaf-area-density profiles follow Lalic and Mihailovic (2004), https://doi.org/10.1175/1520-0450(2004)043%3C0641:AERDLD%3E2.0.CO;2. Canopies may be supplied as discrete patches in a text file or as gridded LAI, height, and drag-coefficient NetCDF fields.

Constructor & Destructor Documentation

◆ ForestDrag() [1/3]

ForestDrag::ForestDrag ( std::string  forestfile)
explicit

Construct a discrete-patch canopy from a text file.

119 {
120  std::ifstream file(forestfile, std::ios::in);
121  if (!file.good()) {
122  Abort("Cannot find forest file: " + forestfile);
123  }
124  // TreeType xc yc height diameter cd lai laimax
125  Real value1, value2, value3, value4, value5, value6, value7, value8;
126  int row_number = 0;
127  while (file >> value1 >> value2 >> value3 >> value4 >> value5 >> value6 >>
128  value7 >> value8) {
129  ++row_number;
130  if (value1 == Real(2.0)) {
131  const std::string error = erf_forest_utils::validate_laimax(
132  value8, "Forest file '" + forestfile + "' row " +
133  std::to_string(row_number) + " column 8 (laimax)");
134  if (!error.empty()) {
135  Abort(error);
136  }
137  }
138  m_type_forest.push_back(value1);
139  m_x_forest.push_back(value2);
140  m_y_forest.push_back(value3);
141  m_height_forest.push_back(value4);
142  m_diameter_forest.push_back(value5);
143  m_cd_forest.push_back(value6);
144  m_lai_forest.push_back(value7);
145  m_laimax_forest.push_back(value8);
146  }
147  file.close();
148 }
amrex::Vector< amrex::Real > m_diameter_forest
Definition: ERF_ForestDrag.H:96
amrex::Vector< amrex::Real > m_laimax_forest
Definition: ERF_ForestDrag.H:99
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::Vector< amrex::Real > m_cd_forest
Definition: ERF_ForestDrag.H:97
amrex::Vector< amrex::Real > m_type_forest
Definition: ERF_ForestDrag.H:92
amrex::Vector< amrex::Real > m_y_forest
Definition: ERF_ForestDrag.H:94
std::string validate_laimax(const amrex::Real laimax, const std::string &source)
Definition: ERF_ForestUtils.H:36
Here is the call graph for this function:

◆ ForestDrag() [2/3]

ForestDrag::ForestDrag ( std::string  lai_file,
std::string  height_file,
std::string  cd_file,
int  tree_type = 1,
amrex::Real  laimax = 0.8 
)

Construct a gridded canopy with drag coefficient read from NetCDF.

Parameters
lai_fileNetCDF file containing the horizontal LAI field.
height_fileNetCDF file containing canopy height.
cd_fileNetCDF file containing the cd field.
tree_typeLAD profile selector (1 uniform, 2 Lalic–Mihailovic).
laimaxFractional height of maximum LAD for profile type 2.

◆ ForestDrag() [3/3]

ForestDrag::ForestDrag ( std::string  lai_file,
std::string  height_file,
amrex::Real  cd_const,
int  tree_type = 1,
amrex::Real  laimax = 0.8 
)

Construct a gridded canopy with a spatially constant drag coefficient.

Parameters
lai_fileNetCDF file containing the horizontal LAI field.
height_fileNetCDF file containing canopy height.
cd_constSpatially constant drag coefficient.
tree_typeLAD profile selector (1 uniform, 2 Lalic–Mihailovic).
laimaxFractional height of maximum LAD for profile type 2.

◆ ~ForestDrag()

ForestDrag::~ForestDrag ( )
default

Member Function Documentation

◆ define_drag_field()

void ForestDrag::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 
)

Allocate and fill drag and, optionally, frontal-area-density fields.

Parameters
need_frontal_areaAllocate the frontal-area-density field, which is only consumed by the fixed-leaf-temperature path.
levelLevel index, used only in diagnostic messages.

Neither argument is defaulted on purpose: every caller must state whether the frontal-area field is needed, so that a new call site cannot silently allocate and fill it when forest biophysics is off, nor report a placeholder level in the coverage warning.

292 {
293  m_need_frontal_area = need_frontal_area;
294  // Geometry params
295  const auto& dx = geom.CellSizeArray();
296  const auto& prob_lo = geom.ProbLoArray();
297 
298  bool all_boxes_touch_bottom = true;
299  for (int i = 0; i < ba.size(); i++) {
300  if (ba[i].smallEnd(2) != geom.Domain().smallEnd(2)) {
301  all_boxes_touch_bottom = false;
302  }
303  }
304  // The drag field reads each column's ground nodes at k = 0 from its own box
305  AMREX_ALWAYS_ASSERT_WITH_MESSAGE(all_boxes_touch_bottom,
306  "Forest drag needs every box of the level to reach the ground: do not split the grids "
307  "in z (amr.max_grid_size in z at least the number of cells in z), and refine forested "
308  "levels from the ground up");
309 
310  // Allocate the forest drag MF and frontal area MF
311  // NOTE: 1 ghost cell for averaging to faces
312  m_forest_drag.reset();
313  m_forest_drag = std::make_unique<MultiFab>(ba,dm,1,1);
314  m_forest_drag->setVal(zero);
315 
316  m_frontal_area.reset();
317  if (m_need_frontal_area) {
318  m_frontal_area = std::make_unique<MultiFab>(ba,dm,1,1);
319  m_frontal_area->setVal(zero);
320  }
321 
322  // Copy namespace-scope constants into automatic-storage values before
323  // entering GPU lambdas. NVCC does not make these host-side constexpr
324  // variables available as device symbols automatically.
325  const Real zero_d = zero;
326  const Real one_d = one;
327  const Real myhalf_d = myhalf;
328  const Real fourth_d = fourth;
329  const bool store_frontal_area = m_need_frontal_area;
330 
331  if (m_use_gridded_data) {
332  // =====================================================================
333  // Gridded NetCDF mode: interpolate from gridded LAI/height/cd data
334  // =====================================================================
335 
336  const Real* lai_data_h = m_gridded_lai.data();
337  const Real* height_data_h = m_gridded_height.data();
338  const Real* cd_data_h = m_use_const_cd ? nullptr : m_gridded_cd.data();
339 
340  const int grid_nx = m_grid_nx;
341  const int grid_ny = m_grid_ny;
342  const Real grid_dx = m_grid_dx;
343  const Real grid_dy = m_grid_dy;
344  const Real grid_xmin = m_grid_xmin;
345  const Real grid_ymin = m_grid_ymin;
346 
348  *m_forest_drag, geom, grid_xmin, grid_ymin, grid_dx, grid_dy,
349  grid_nx, grid_ny, level);
350 
351  const int grid_size = m_grid_nx * m_grid_ny;
352  Gpu::DeviceVector<Real> lai_data_d(grid_size);
353  Gpu::DeviceVector<Real> height_data_d(grid_size);
354  Gpu::DeviceVector<Real> cd_data_d;
355  if (!m_use_const_cd) {
356  cd_data_d.resize(grid_size);
357  }
358 
359  Gpu::copy(Gpu::hostToDevice, lai_data_h, lai_data_h + grid_size,
360  lai_data_d.begin());
361  Gpu::copy(Gpu::hostToDevice, height_data_h, height_data_h + grid_size,
362  height_data_d.begin());
363  if (!m_use_const_cd) {
364  Gpu::copy(Gpu::hostToDevice, cd_data_h, cd_data_h + grid_size,
365  cd_data_d.begin());
366  }
367 
368  const Real* lai_data = lai_data_d.data();
369  const Real* height_data = height_data_d.data();
370  const Real* cd_data = m_use_const_cd ? nullptr : cd_data_d.data();
371  const Real cd_const = m_cd_const;
372  const bool use_const_cd = m_use_const_cd;
373 
374  const int tree_type = m_tree_type;
375  const Real laimax = m_laimax;
376  const Real lad_normalization = m_lad_normalization;
377 
378  for (MFIter mfi(*m_forest_drag); mfi.isValid(); ++mfi) {
379  Box gtbx = mfi.growntilebox();
380  const Array4<Real>& levelDrag = m_forest_drag->array(mfi);
381  const Array4<Real> frontalArea = store_frontal_area
382  ? m_frontal_area->array(mfi) : Array4<Real>{};
383  const Array4<const Real>& z_cc = z_phys_cc->const_array(mfi);
384  const Array4<const Real>& z_nd = z_phys_nd->const_array(mfi);
385 
386  ParallelFor(gtbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
387  {
388  const Real x = prob_lo[0] + (i + myhalf_d) * dx[0];
389  const Real y = prob_lo[1] + (j + myhalf_d) * dx[1];
390 
391  const Real z_sfc = fourth_d * (z_nd(i, j, 0) + z_nd(i + 1, j, 0) +
392  z_nd(i, j + 1, 0) + z_nd(i + 1, j + 1, 0));
393  const Real z = amrex::max((z_cc(i, j, k) - z_sfc), zero_d);
394 
395  const auto x_stencil = erf_grid_utils::uniform_interpolation_stencil(
396  x, grid_xmin, grid_dx, grid_nx);
397  const auto y_stencil = erf_grid_utils::uniform_interpolation_stencil(
398  y, grid_ymin, grid_dy, grid_ny);
399 
400  if (x_stencil.inside && y_stencil.inside) {
401  const int ii_c = x_stencil.lower;
402  const int jj_c = y_stencil.lower;
403  const Real wx = x_stencil.weight;
404  const Real wy = y_stencil.weight;
405 
406  // Bilinear interpolation of LAI
407  Real lai00 = lai_data[jj_c * grid_nx + ii_c];
408  Real lai10 = lai_data[jj_c * grid_nx + (ii_c + 1)];
409  Real lai01 = lai_data[(jj_c + 1) * grid_nx + ii_c];
410  Real lai11 = lai_data[(jj_c + 1) * grid_nx + (ii_c + 1)];
411  Real lai_interp = (lai00 * (one_d - wx) + lai10 * wx) * (one_d - wy) +
412  (lai01 * (one_d - wx) + lai11 * wx) * wy;
413 
414  // Bilinear interpolation of height
415  Real h00 = height_data[jj_c * grid_nx + ii_c];
416  Real h10 = height_data[jj_c * grid_nx + (ii_c + 1)];
417  Real h01 = height_data[(jj_c + 1) * grid_nx + ii_c];
418  Real h11 = height_data[(jj_c + 1) * grid_nx + (ii_c + 1)];
419  Real height_interp = (h00 * (one_d - wx) + h10 * wx) * (one_d - wy) +
420  (h01 * (one_d - wx) + h11 * wx) * wy;
421 
422  Real cd_interp = cd_const;
423  if (!use_const_cd) {
424  // Bilinear interpolation of Cd from file.
425  Real cd00 = cd_data[jj_c * grid_nx + ii_c];
426  Real cd10 = cd_data[jj_c * grid_nx + (ii_c + 1)];
427  Real cd01 = cd_data[(jj_c + 1) * grid_nx + ii_c];
428  Real cd11 = cd_data[(jj_c + 1) * grid_nx + (ii_c + 1)];
429  cd_interp = (cd00 * (one_d - wx) + cd10 * wx) * (one_d - wy) +
430  (cd01 * (one_d - wx) + cd11 * wx) * wy;
431  }
432 
433  // Compute drag if within canopy
434  if (z < height_interp && height_interp > zero_d && lai_interp > zero_d) {
435  Real af;
436  Real factor = one_d;
437 
438  if (tree_type == 1) {
439  af = lai_interp / height_interp;
440  } else {
441  const Real treeZm = laimax * height_interp;
442  af = lai_interp / (height_interp * lad_normalization);
443 
444  Real ratio = (height_interp - treeZm) / (height_interp - z);
445  if (z < treeZm) {
446  factor = amrex::Math::powi<6>(ratio) *
447  std::exp(Real(6.0) * (one_d - ratio));
448  } else {
449  factor = std::sqrt(ratio) *
450  std::exp(myhalf_d * (one_d - ratio));
451  }
452  }
453 
454  levelDrag(i, j, k) = cd_interp * af * factor;
455  if (store_frontal_area) {
456  frontalArea(i, j, k) = af * factor;
457  }
458  }
459  }
460  });
461  } // mfi
462 
463  // Synchronize before DeviceVectors go out of scope
464  Gpu::synchronize();
465 
466  } else {
467  // =====================================================================
468  // Discrete patch mode: original implementation
469  // =====================================================================
470 
471  for (unsigned ii = 0; ii < m_x_forest.size(); ++ii) {
472  Real af;
473  Real treeZm = zero_d;
474  int tf = int(m_type_forest[ii]);
475  Real hf = m_height_forest[ii];
476  Real xf = m_x_forest[ii];
477  Real yf = m_y_forest[ii];
478  Real df = m_diameter_forest[ii];
479  Real cdf = m_cd_forest[ii];
480  Real laif = m_lai_forest[ii];
481  Real laimaxf = m_laimax_forest[ii];
482 
483  if (tf == 1) {
484  af = laif / hf;
485  } else {
486  treeZm = laimaxf * hf;
487  af = laif / (hf * compute_lad_normalization(laimaxf));
488  }
489 
490  for (MFIter mfi(*m_forest_drag); mfi.isValid(); ++mfi) {
491  Box gtbx = mfi.growntilebox();
492  const Array4<Real>& levelDrag = m_forest_drag->array(mfi);
493  const Array4<Real> frontalArea = store_frontal_area
494  ? m_frontal_area->array(mfi) : Array4<Real>{};
495  const Array4<const Real>& z_cc = z_phys_cc->const_array(mfi);
496  const Array4<const Real>& z_nd = z_phys_nd->const_array(mfi);
497 
498  ParallelFor(gtbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
499  {
500  const Real x = prob_lo[0] + (i + myhalf_d) * dx[0];
501  const Real y = prob_lo[1] + (j + myhalf_d) * dx[1];
502 
503  const Real z_sfc = fourth_d * (z_nd(i,j ,0) + z_nd(i+1,j ,0)
504  + z_nd(i,j+1,0) + z_nd(i+1,j+1,0));
505  const Real z = std::max((z_cc(i,j,k)-z_sfc), amrex::Real(0));
506 
507  const Real radius = std::sqrt((x - xf) * (x - xf) +
508  (y - yf) * (y - yf));
509 
510  // Strictly below the tree top, as in the gridded mode: the
511  // type-2 profile tends to zero at z = hf, where its ratio
512  // would divide by zero. Overlapping patches add their drag.
513  Real factor = one_d;
514  if ((z < hf) && (radius <= (myhalf_d * df))) {
515  if (tf == 2) {
516  Real ratio = (hf - treeZm) / (hf - z);
517  if (z < treeZm) {
518  factor = amrex::Math::powi<6>(ratio) *
519  std::exp(Real(6.0) * (one_d - ratio));
520  } else {
521  factor = std::sqrt(ratio) *
522  std::exp(myhalf_d * (one_d - ratio));
523  }
524  }
525  levelDrag(i, j, k) += cdf * af * factor;
526  if (store_frontal_area) {
527  frontalArea(i, j, k) += af * factor;
528  }
529  }
530  });
531  } // mfi
532  } // ii (forest patch)
533 
534  } // end else (discrete patch mode)
535 
536  // Fillboundary for periodic ghost cell copy
537  m_forest_drag->FillBoundary(geom.periodicity());
538  if (m_frontal_area != nullptr) {
539  m_frontal_area->FillBoundary(geom.periodicity());
540  }
541 
542 } // define_drag_field
GpuArray< Real, AMREX_SPACEDIM > dx
Definition: ERF_ActuatorSpreading.cpp:131
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(axis >=0 &&axis< AMREX_SPACEDIM, "prob.axis must be 0, 1 or 2")
const GpuArray< Real, AMREX_SPACEDIM > prob_lo
Definition: ERF_InitCustomPert_CloudChamber.H:34
ParallelFor(fab_box, [=] AMREX_GPU_DEVICE(int i, int j, int k) { qrcuten_arr(i, j, k)=Real(0);qscuten_arr(i, j, k)=Real(0);qicuten_arr(i, j, k)=Real(0);})
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:37
constexpr amrex::Real fourth
Definition: ERF_NumericalConstants.H:42
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41
amrex::Real m_lad_normalization
Definition: ERF_ForestDrag.H:119
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
int m_grid_nx
Definition: ERF_ForestDrag.H:106
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::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::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
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
Real compute_lad_normalization(const Real laimax)
Definition: ERF_ForestDrag.cpp:18
void warn_if_forest_grid_does_not_cover_targets(const MultiFab &target_field, const Geometry &geom, Real grid_xmin, Real grid_ymin, Real grid_dx, Real grid_dy, int grid_nx, int grid_ny, int level)
Definition: ERF_ForestDrag.cpp:46
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE InterpolationStencil uniform_interpolation_stencil(amrex::Real coordinate, amrex::Real origin, amrex::Real spacing, int point_count) noexcept
Definition: ERF_GridUtils.H:305
Here is the call graph for this function:

◆ get_drag_field()

amrex::MultiFab* ForestDrag::get_drag_field ( )
inline

Return the cell-centered product of drag coefficient and LAD.

74 { return m_forest_drag.get(); }

◆ get_frontal_area()

amrex::MultiFab* ForestDrag::get_frontal_area ( )
inline

Return cell-centered leaf/frontal area density without drag coefficient.

78 { return m_frontal_area.get(); }

◆ read_netcdf_file()

void ForestDrag::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 
)
private

Member Data Documentation

◆ m_cd_const

amrex::Real ForestDrag::m_cd_const {0.0}
private

◆ m_cd_forest

amrex::Vector<amrex::Real> ForestDrag::m_cd_forest
private

◆ m_diameter_forest

amrex::Vector<amrex::Real> ForestDrag::m_diameter_forest
private

◆ m_forest_drag

std::unique_ptr<amrex::MultiFab> ForestDrag::m_forest_drag
private

Referenced by get_drag_field().

◆ m_frontal_area

std::unique_ptr<amrex::MultiFab> ForestDrag::m_frontal_area
private

Referenced by get_frontal_area().

◆ m_grid_dx

amrex::Real ForestDrag::m_grid_dx {0.0}
private

◆ m_grid_dy

amrex::Real ForestDrag::m_grid_dy {0.0}
private

◆ m_grid_nx

int ForestDrag::m_grid_nx {0}
private

◆ m_grid_ny

int ForestDrag::m_grid_ny {0}
private

◆ m_grid_xmin

amrex::Real ForestDrag::m_grid_xmin {0.0}
private

◆ m_grid_ymin

amrex::Real ForestDrag::m_grid_ymin {0.0}
private

◆ m_gridded_cd

amrex::Vector<amrex::Real> ForestDrag::m_gridded_cd
private

◆ m_gridded_height

amrex::Vector<amrex::Real> ForestDrag::m_gridded_height
private

◆ m_gridded_lai

amrex::Vector<amrex::Real> ForestDrag::m_gridded_lai
private

◆ m_height_forest

amrex::Vector<amrex::Real> ForestDrag::m_height_forest
private

◆ m_lad_normalization

amrex::Real ForestDrag::m_lad_normalization {1.0}
private

◆ m_lai_forest

amrex::Vector<amrex::Real> ForestDrag::m_lai_forest
private

◆ m_laimax

amrex::Real ForestDrag::m_laimax {0.8}
private

◆ m_laimax_forest

amrex::Vector<amrex::Real> ForestDrag::m_laimax_forest
private

◆ m_need_frontal_area

bool ForestDrag::m_need_frontal_area {true}
private

◆ m_tree_type

int ForestDrag::m_tree_type {1}
private

◆ m_type_forest

amrex::Vector<amrex::Real> ForestDrag::m_type_forest
private

◆ m_use_const_cd

bool ForestDrag::m_use_const_cd {false}
private

◆ m_use_gridded_data

bool ForestDrag::m_use_gridded_data {false}
private

◆ m_x_forest

amrex::Vector<amrex::Real> ForestDrag::m_x_forest
private

◆ m_y_forest

amrex::Vector<amrex::Real> ForestDrag::m_y_forest
private

The documentation for this class was generated from the following files: