Class fetchr#

Inheritance Relationships#

Base Type#

Class Documentation#

class fetchr : public module_base#

Calculates upwind fetch distances. The fetch is broken if a triangle at distance d * I > current triangle’s elevation.

Depends:

  • Wind direction “vw_dir” [degrees]

Provides:

  • Fetch distance “fetch” [m]

Configuration:

{
   "steps": 10,
   "max_distance": 1000
}
steps#

Number of steps along the search vector to check for a higher point

max_distance#

Maximum search distance to look for a higher point

I#

Rise/run threshold to multiply against the distance of a test triangle.

References:

  • Lapen, D. R., and L. W. Martz (1993), The measurement of two simple topographic indices of wind sheltering-exposure from raster digital elevation models, Comput. Geosci., 19(6), 769–779, doi:10.1016/0098-3004(93)90049-B.

Type:

int

Default:

10

Type:

double

Default:

1000 m

Type:

double

Default:

0.06

Public Functions

fetchr(config_file cfg)#
~fetchr()#
virtual void run(mesh_elem &face)#

Needs to be implemented by each data parallel module. This will be called and executed for each timestep

Parameters:
  • face – The terrain element (triangle) to be worked upon for an element parallel domain

  • global_param – A pointer to the shared global paramter space with domain-wide paramters

Public Members

int steps#
double max_distance#
double h_IBL#
double size_of_step#
bool incl_veg#
double I#