Class Thornton_p
Defined in File Thornton_p.hpp
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public module_base
(Class module_base)
Class Documentation
-
class Thornton_p : public module_base
Spatially distributes liquid water precipitation using Thornton, et al. 1997 via monthly lapse rates.
Depends from met:
Precipitation “p” [ \(mm \cdot dt^{-1}\)]
Provides:
Lapsed precipitation “p” [ \(mm \cdot dt^{-1}\)]
Precipitation corrected for triangle slope. If
"apply_cosine_correction": false
, then no change. “p_no_slope” [ \(mm \cdot dt^{-1}\)]
Configuration:
{ "apply_cosine_correction": false }
- apply_cosine_correction
Correct precipitation input using triangle slope when input preciptation are given for the horizontally projected area.
References:
Thornton, P. E., Running, S. W., & White, M. A. (1997). Generating surfaces of daily meteorological variables over large regions of complex terrain. Journal of Hydrology, 190(3-4), 214–251. http://doi.org/10.1016/S0022-1694(96)03128-9
- Type:
boolean
- Default:
false
Public Functions
-
Thornton_p(config_file cfg)
-
~Thornton_p()
-
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
-
virtual void init(mesh &domain)
Public Members
-
bool apply_cosine_correction