2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
_Options Struct Reference

Holds global options for specific cmf behaviour, accessbile via cmf.options. More...

Detailed Description

Holds global options for specific cmf behaviour, accessbile via cmf.options.

Public Attributes

double diffusive_slope_singularity_protection =1e-4
 Protects diffusive Saint-Venant equation from numerical problems for slope ≃ 0.
 
bool richards_lateral_base_flow =false
 Allows the cmf::upslope::connections::Richards_lateral connection for faster flow in lower regions.
 

Member Data Documentation

◆ diffusive_slope_singularity_protection

double diffusive_slope_singularity_protection =1e-4

Protects diffusive Saint-Venant equation from numerical problems for slope ≃ 0.

For diffusive St. Venant equations, near to zero, the driving force is sqrt(|h1-h2|). For h1 ≃ h2, the sensitivity of the flow has a singularity. To avoid this near to the slope zero the driver is overrriden by |h1-h2|. "Near" is defined by this constant.