environmentaltools.processes.hydraulic_radius
- environmentaltools.processes.hydraulic_radius(channel_info, type_='rectangular')[source]
Calculate hydraulic properties of open channel cross-sections.
Computes wetted area, wetted perimeter, hydraulic radius, and water surface width for various channel geometries used in open channel flow calculations.
- Parameters:
channel_info (dict) –
Dictionary with channel geometry parameters:
- bfloat
Channel bottom width (m)
Additional parameters depending on channel type
type (str, optional) – Channel cross-section type. Options: ‘rectangular’, ‘trapezoidal’, ‘triangular’, ‘circular’, ‘parabolic’. Default: ‘rectangular’
- Returns:
DataFrame with computed hydraulic properties: - wet_area : Wetted cross-sectional area (m²) - wet_perimeter : Wetted perimeter (m) - rh : Hydraulic radius (m) - water_mirror : Water surface width (m)
- Return type:
pd.DataFrame
- Raises:
ValueError – If channel type is not implemented
Notes
Hydraulic radius is defined as: Rh = A / P where A is the wetted area and P is the wetted perimeter. This parameter is fundamental for Manning’s equation and other open channel flow formulas.
Warning
This function has a bug: variable ‘y’ (water depth) is not defined as parameter