Class threshold_p_phase
Defined in File threshold_p_phase.hpp
Inheritance Relationships
Base Type
public module_base
(Class module_base)
Class Documentation
-
class threshold_p_phase : public module_base
Calculates phase from air temperature. Defaults to 2 \( {}^\circ C \), looks for the config parameter “threshold_temperature”. Binary snow/rain at 2 \( {}^\circ C \) threshold.
Depends:
Air temperature “t” [ \( {}^\circ C \) ]
Precipitation “p” [ \( mm \cdot dt^{-1} \) ]
Provides:
Fractional precipitation that is rain “frac_precip_rain” [0-1]
Fractional precipitation that is snow “frac_precip_snow” [0-1]
Precipitation, rain “p_rain” [ \( mm \cdot dt^{-1} \)]
Precipitation, snow “p_snow” [ \( mm \cdot dt^{-1} \)]
Configuration:
{ "threshold_temperature": 2.0 }
- threshold_temperature
Threshold air temperature for rain/snow delineation
- Default:
2.0 \({}^\circ C\)
Public Functions
-
threshold_p_phase(config_file cfg)
-
~threshold_p_phase()
-
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