Class p_lapse
Defined in File p_lapse.hpp
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public module_base
(Class module_base)
Class Documentation
-
class p_lapse : public module_base
Spatially distributes liquid water precipitation using a precipitation lapse rate derived from stations for the Marmot Creek reserach basin or the Upper Bow River Wathershed. Monthly lapse rates are used as in the CRHM model.
Depends from met:
Precip from met file “p” [ \(mm \cdot dt^{-1}\)]
Provides:
Lapsed precipitation “p” [ \(mm \cdot dt^{-1}\)]
Lapse 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:
Precipitation lapse rate derived from Marmot Creek stations by Logan Fang (used in CRHM for Marmot Creek domain)
- Type:
boolean
- Default:
false
Public Functions
-
p_lapse(config_file cfg)
-
~p_lapse()
-
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