Class Marsh_shading_iswr

Inheritance Relationships

Base Type

Class Documentation

class Marsh_shading_iswr : public module_base

Computes the horizon-shadows using the parallel point plane projection from Marsh, et al (2011). The :ref:fast_shadow routine provides almost as good of a result with less computational overhead.

Depends:

  • Solar azimuth “solar_az” [degrees]

  • Solar elevation “solar_el” [degrees]

Provides:

  • Value that provides a metric for triangle ‘nearness’ to the sun “z_prime” [-]

  • Binary shadow value “shadowed” [1 (true) / 0 (false)]

Configuration:

{
   "x_AABB":10,
   "y_AABB":10
}


The domain is split into an x/y grid in projection space.
Triangles are only compared to triangles in their bin to compute shadows. Thus, the smaller the value the
more chance of missing a triangle intersection. It also decreases the number of comparisons and can dramatically
decrease the computational time.
x_AABB

This is the size number of bins in the x direction.

y_AABB

This is the size number of bins in the y direction.

Reference:
  • Marsh, C.B., J.W. Pomeroy, and R.J. Spiteri. “Implications of Mountain Shading on Calculating Energy for Snowmelt Using Unstructured Triangular Meshes.” Hydrological Processes 26, no. 12 (June 15, 2012): 1767–78. doi:10.1002/hyp.9329.

Type:

int

Default:

10

Type:

int

Default:

10

Public Functions

Marsh_shading_iswr(config_file cfg)
~Marsh_shading_iswr()
virtual void run(mesh &domain)

Public Members

int x_AABB
int y_AABB