HydroAj: Water Resources Engineering Reference Manual
HydroAj is an open-source, high-performance computational framework designed specifically for civil engineers, hydrologists, and environmental researchers. It combines a memory-safe, SIMD-accelerated Rust computational engine with an ergonomic, fully-vectorized Python API.
This manual provides the complete, unabridged reference for all 415 functions and mathematical equations in the library. Every routine is typeset in classical textbook format featuring vertical fractions, radicals, parameter definitions, and standardized SI units.
Installation & Quickstart
Install HydroAj directly using pip:
pip install hydroaj
Running HydroAj in Google Colab (Linux)
Google Colab executes in an Ubuntu Linux x86_64 container. Windows .whl binaries cannot be installed on Linux.
When installing from source on Linux, Colab requires the Rust compiler (cargo) to compile the native SIMD acceleration kernel.
To run HydroAj smoothly in Google Colab, execute this single code cell in your Colab notebook:
# 1. Install Cargo and compile directly in Google Colab (takes ~30s once)
!apt-get install -y cargo
!pip install maturin
!pip install git+https://github.com/ajaybhattarai-123/hydroaj.git
# 2. Test HydroAj in Google Colab
import hydroaj as hy
import hydroaj.hydraulics as hyd
import hydroaj.hydrology as hydro
print("HydroAj successfully running in Google Colab! Version:", hy.__version__)
Strict SI Metric Standards Guarantee
HydroAj enforces strict, unambiguous SI metric units by default: meters ($m$), seconds ($s$), cubic meters per second ($m^3/s$), hours for storm duration, millimeters per hour ($mm/hr$) for rainfall intensity, and Pascals ($Pa$) for pressure. In your IDE (VS Code, PyCharm, or Jupyter), typing any function immediately displays the expected parameter units in the tooltip.
SIMD Computational Performance Benchmarks
A computational stress-test was conducted on an x86_64 system evaluating Manning's open-channel equation across 1,000,000 channel configurations:
| Engine | Time (1M rows) | Throughput | Speedup |
|---|---|---|---|
| Pure Python (for-loop) | 1.842 s | 542,800 rows/s | 1.0x (Baseline) |
| NumPy (Vectorized C) | 0.082 s | 12,195,000 rows/s | 22.5x |
| HydroAj Rust SIMD Engine | 0.019 s | 52,631,000 rows/s | 97.0x Speedup |
1. Open Channel Hydraulics & Pressurized Pipe Flow
Steady and unsteady open-channel conveyance, boundary resistance, conduit friction loss, hydraulic jumps, and transient surge waves. Total verified routines: 183 functions.
import hydroaj.hydraulics as hyd
# 1. Manning Open Channel Flow Velocity & Discharge
V = hyd.manning_velocity(hydraulic_radius=2.1, slope=0.0015, roughness=0.025)
Q = hyd.manning_discharge(area=12.5, hydraulic_radius=2.1, slope=0.0015, roughness=0.025)
print(f"Manning Velocity V: {V:.3f} m/s | Discharge Q: {Q:.3f} m³/s")
# 2. Darcy-Weisbach Pipe Flow Friction Loss (L = 500 m, D = 0.30 m, V = 1.8 m/s, f = 0.018)
h_f = hyd.darcy_weisbach(friction_factor=0.018, length=500.0, diameter=0.30, velocity=1.8)
print(f"Darcy-Weisbach Friction Head Loss h_f: {h_f:.3f} m")
# 3. Bélanger Sequent Jump Depth (y1 = 0.45 m, Fr1 = 4.8)
y2 = hyd.hydraulic_jump_sequent_depth(y1=0.45, froude1=4.8)
el = hyd.hydraulic_jump_energy_loss(y1=0.45, y2=y2)
print(f"Sequent Depth y2: {y2:.3f} m | Energy Dissipation: {el:.3f} m")
Bazin Chézy C
Computes the empirical Chézy resistance coefficient C using Bazin's formulation based on wall roughness parameter gamma and hydraulic radius R_h.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| γ | = | Input parameter | (SI units) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydraulics.bazin_chezy_c(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], gamma: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Bélanger Sequent Conjugate Depth Formulation
Solves Bélanger's momentum conservation equation to find the subcritical sequent depth y_2 following a hydraulic jump in a rectangular horizontal channel.
| y1 | = | Supercritical initial depth y_1 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.belanger_conjugate_depth(initial_depth: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Blasius Friction Factor (Smooth Pipes)
Calculates Darcy friction factor for smooth pipes in turbulent flow (Re < 10^5) using Blasius' formula:.
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.blasius_friction_factor(reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Cavitation Index
Calculates Thoma cavitation index sigma = (P_abs - P_v) / (0.5 * rho * V^2).
| Pabs | = | Absolute static fluid pressure P_abs | Pa (N/m²) |
| Pv | = | Water vapor pressure P_v | Pa (N/m²) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.cavitation_index(pressure_abs: Union[float, int, Sequence[float], numpy.ndarray], vapor_pressure: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Cavitation Velocity
Inversion: Solves for maximum permissible velocity before cavitation occurs.
| Pabs | = | Absolute static fluid pressure P_abs | Pa (N/m²) |
| Pv | = | Water vapor pressure P_v | Pa (N/m²) |
| σc | = | Critical Thoma cavitation index sigma_c | (-) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.cavitation_velocity(pressure_abs: Union[float, int, Sequence[float], numpy.ndarray], vapor_pressure: Union[float, int, Sequence[float], numpy.ndarray], sigma_critical: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Channel Contraction Loss
Calculates open channel contraction transition energy head loss h_L = K_c * |V_2^2 - V_1^2| / (2g).
| V | = | Upstream flow velocity V_1 | (m/s) |
| V | = | Downstream flow velocity V_2 | (m/s) |
| kc | = | Channel contraction loss coefficient K_c | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.channel_contraction_loss(velocity_1: Union[float, int, Sequence[float], numpy.ndarray], velocity_2: Union[float, int, Sequence[float], numpy.ndarray], kc: Union[float, int, Sequence[float], numpy.ndarray] = 0.1, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Channel Expansion Loss
Calculates open channel expansion transition energy head loss h_L = K_e * (V_1 - V_2)^2 / (2g).
| V | = | Upstream flow velocity V_1 | (m/s) |
| V | = | Downstream flow velocity V_2 | (m/s) |
| ke | = | Channel expansion loss coefficient K_e | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.channel_expansion_loss(velocity_1: Union[float, int, Sequence[float], numpy.ndarray], velocity_2: Union[float, int, Sequence[float], numpy.ndarray], ke: Union[float, int, Sequence[float], numpy.ndarray] = 0.5, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Chézy C
Inverts Chézy formula to back-calculate conveyance resistance coefficient C from observed velocity V, hydraulic radius R_h, and slope S_0.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydraulics.chezy_c(velocity: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy C
Inverts Chézy formula to back-calculate conveyance resistance coefficient C from observed velocity V, hydraulic radius R_h, and slope S_0.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydraulics.chezy_c(velocity: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy R_h
Inversion: Chézy hydraulic radius R_h = V^2 / (C^2 * S_0).
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| C | = | Chézy resistance coefficient C | (m^(1/2)/s) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.chezy_rh(velocity: Union[float, int, Sequence[float], numpy.ndarray], chezy_c: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy R_h
Inversion: Chézy hydraulic radius R_h = V^2 / (C^2 * S_0).
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| C | = | Chézy resistance coefficient C | (m^(1/2)/s) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.chezy_rh(velocity: Union[float, int, Sequence[float], numpy.ndarray], chezy_c: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy S₀
Calculates required channel gradient S_0 under Chézy flow resistance.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| C | = | Chézy resistance coefficient C | (m^(1/2)/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.chezy_s0(velocity: Union[float, int, Sequence[float], numpy.ndarray], chezy_c: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy S₀
Calculates required channel gradient S_0 under Chézy flow resistance.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| C | = | Chézy resistance coefficient C | (m^(1/2)/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.chezy_s0(velocity: Union[float, int, Sequence[float], numpy.ndarray], chezy_c: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy Velocity
Calculates mean flow velocity V using the classical Chézy resistance formulation based on hydraulic radius and longitudinal bed slope.
| C | = | Chézy resistance coefficient C | (m^(1/2)/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.chezy_velocity(chezy_c: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Chézy Velocity
Calculates mean flow velocity V using the classical Chézy resistance formulation based on hydraulic radius and longitudinal bed slope.
| C | = | Chézy resistance coefficient C | (m^(1/2)/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.chezy_velocity(chezy_c: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Churchill
Churchill explicit friction factor covering all regimes (laminar, transition, turbulent).
| n | = | Input parameter | (SI units) |
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.churchill(relative_roughness: Union[float, int, Sequence[float], numpy.ndarray], reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Colebrook-White Friction Factor Equation
Implicitly computes turbulent friction factor f for smooth to fully rough conduits.
| n | = | Input parameter | (SI units) |
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.colebrook_white(relative_roughness: Union[float, int, Sequence[float], numpy.ndarray], reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Closure A
Inversion: Wave speed a = (2 * L) / T_c.
| t | = | Time parameter | (hours) |
| L | = | Reach / conduit / flow path length L | (m) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydraulics.critical_closure_a(critical_time: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Closure A
Inversion: Wave speed a = (2 * L) / T_c.
| t | = | Time parameter | (hours) |
| L | = | Reach / conduit / flow path length L | (m) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydraulics.critical_closure_a(critical_time: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Closure L
Inversion: Pipe reach length L = (T_c * a) / 2.
| t | = | Time parameter | (hours) |
| celerity | = | Input parameter | (SI units) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.critical_closure_l(critical_time: Union[float, int, Sequence[float], numpy.ndarray], celerity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Closure L
Inversion: Pipe reach length L = (T_c * a) / 2.
| t | = | Time parameter | (hours) |
| celerity | = | Input parameter | (SI units) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.critical_closure_l(critical_time: Union[float, int, Sequence[float], numpy.ndarray], celerity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Closure Time
Calculates the critical valve closure time T_c representing the two-way wave travel time from valve to reservoir and back.
| L | = | Reach / conduit / flow path length L | (m) |
| celerity | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.critical_closure_time(length: Union[float, int, Sequence[float], numpy.ndarray], celerity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Closure Time
Calculates the critical valve closure time T_c representing the two-way wave travel time from valve to reservoir and back.
| L | = | Reach / conduit / flow path length L | (m) |
| celerity | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.critical_closure_time(length: Union[float, int, Sequence[float], numpy.ndarray], celerity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Depth Rect Q
Inversion: Rectangular critical discharge Q = b * sqrt(g * y_c^3).
| yc | = | Flow depth | (m) |
| b | = | Channel base width b | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.critical_depth_rect_q(critical_depth: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Rect Yc
Critical depth rectangular channel: y_c = ((Q/b)^2 / g)^(1/3).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Channel base width b | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.critical_depth_rect_yc(discharge: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Rectangular
Computes the critical depth y_c in a rectangular channel corresponding to the minimum specific energy state for a given unit discharge q.
| Q | = | Volumetric discharge rate | (m³/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.critical_depth_rectangular(unit_discharge: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Tri Q
Inversion: Triangular critical discharge Q = sqrt(0.5 * g * z^2 * y_c^5).
| yc | = | Flow depth | (m) |
| m | = | Side slope ratio m (1V : mH) | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.critical_depth_tri_q(critical_depth: Union[float, int, Sequence[float], numpy.ndarray], side_slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Triangular
Computes the exact closed-form critical depth y_c for a triangular channel with side slopes m:1 under a specified total discharge Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| m | = | Side slope ratio m (1V : mH) | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.critical_depth_triangular(discharge: Union[float, int, Sequence[float], numpy.ndarray], side_slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Triangular
Computes the exact closed-form critical depth y_c for a triangular channel with side slopes m:1 under a specified total discharge Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| m | = | Side slope ratio m (1V : mH) | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.critical_depth_triangular(discharge: Union[float, int, Sequence[float], numpy.ndarray], side_slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Rect Q
Inversion: Rectangular critical discharge Q = b * sqrt(g * y_c^3).
| yc | = | Flow depth | (m) |
| b | = | Channel base width b | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.critical_depth_rect_q(critical_depth: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Depth Tri Q
Inversion: Triangular critical discharge Q = sqrt(0.5 * g * z^2 * y_c^5).
| yc | = | Flow depth | (m) |
| m | = | Side slope ratio m (1V : mH) | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.critical_depth_tri_q(critical_depth: Union[float, int, Sequence[float], numpy.ndarray], side_slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Velocity Dh
Inversion: Critical hydraulic depth D_h = V_c^2 / g.
| V | = | Flow velocity | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.critical_velocity_dh(critical_velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Slope
Calculates the critical bed slope S_c that sustains uniform flow at critical depth for a specified discharge and channel boundary roughness.
| n | = | Manning roughness coefficient n | (s/m1/3) |
| criticalr_h | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.critical_slope(roughness: Union[float, int, Sequence[float], numpy.ndarray], critical_r_h: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Slope N
Inversion: Manning n corresponding to critical slope S_c for rectangular channel.
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Channel base width b | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydraulics.critical_slope_n(critical_slope: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Slope N
Inversion: Manning n corresponding to critical slope S_c for rectangular channel.
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Channel base width b | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydraulics.critical_slope_n(critical_slope: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Slope
Calculates the critical bed slope S_c that sustains uniform flow at critical depth for a specified discharge and channel boundary roughness.
| n | = | Manning roughness coefficient n | (s/m1/3) |
| criticalr_h | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.critical_slope(roughness: Union[float, int, Sequence[float], numpy.ndarray], critical_r_h: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Velocity
Computes critical flow velocity V_c at which the Froude number equals unity, representing the threshold between subcritical gravity streaming and supercritical shooting flow.
| Dh | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.critical_velocity(hydraulic_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Velocity Dh
Inversion: Critical hydraulic depth D_h = V_c^2 / g.
| V | = | Flow velocity | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.critical_velocity_dh(critical_velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Critical Velocity
Computes critical flow velocity V_c at which the Froude number equals unity, representing the threshold between subcritical gravity streaming and supercritical shooting flow.
| Dh | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.critical_velocity(hydraulic_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Culvert Entrance Loss
Calculates the localized head loss h_e at the culvert barrel entrance as a function of inlet geometry coefficient K_e (beveled, square-edge, or wingwall).
| entrancecoeff | = | Input parameter | (-) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.culvert_entrance_loss(entrance_coeff: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Culvert Inlet Submerged
Evaluates submerged culvert inlet control headwater ratio HW_i/D under orifice-action submergence following FHWA HDS-5 standards.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| D | = | Internal conduit / pipe diameter D | (m) |
| A | = | Cross-sectional flow area A | (m²) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| ccoeff | = | Well turbulent screen loss coefficient C | (s^2 / m^5) |
| yconst | = | Flow depth | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.culvert_inlet_submerged(discharge: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], c_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.0398, y_const: Union[float, int, Sequence[float], numpy.ndarray] = 0.67) -> Union[float, numpy.ndarray]
Culvert Inlet Unsubmerged
Computes unsubmerged culvert inlet control headwater ratio HW_i/D according to FHWA HDS-5 empirical form 1 / 2 formulations.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| D | = | Internal conduit / pipe diameter D | (m) |
| A | = | Cross-sectional flow area A | (m²) |
| E | = | Input parameter | (SI units) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| kcoeff | = | Input parameter | (-) |
| mexp | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.culvert_inlet_unsubmerged(discharge: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], critical_energy: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], k_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.0098, m_exp: Union[float, int, Sequence[float], numpy.ndarray] = 2.0) -> Union[float, numpy.ndarray]
Culvert Outlet Control Head
Determines the upstream headwater elevation HW_o under culvert outlet control full-barrel pressurized flow accounting for barrel friction and entrance losses.
| tailwaterterm | = | Input parameter | (SI units) |
| totallosses | = | Input parameter | (SI units) |
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.culvert_outlet_control_head(tailwater_term: Union[float, int, Sequence[float], numpy.ndarray], total_losses: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy-Weisbach Equation: Friction Head Loss
Calculates friction head loss along pipe reach due to fluid boundary shear.
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.darcy_weisbach(friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Conduit Diameter Inversion
Direct analytical inversion sizing internal pipe diameter D required to deliver velocity V within maximum allowable friction loss h_f.
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.darcy_weisbach_d(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Conduit Diameter Inversion
Direct analytical inversion sizing internal pipe diameter D required to deliver velocity V within maximum allowable friction loss h_f.
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.darcy_weisbach_d(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Discharge Inversion
Evaluates pipe volumetric discharge Q under available friction head loss h_f in pressurized circular pipes.
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.darcy_weisbach_q(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Friction Factor Inversion
Inverts Darcy-Weisbach equation to back-calculate friction factor f from measured head loss h_f, length L, diameter D, and velocity V.
| hf | = | Energy friction head loss h_f | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.darcy_weisbach_f(head_loss: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Friction Factor Inversion
Inverts Darcy-Weisbach equation to back-calculate friction factor f from measured head loss h_f, length L, diameter D, and velocity V.
| hf | = | Energy friction head loss h_f | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.darcy_weisbach_f(head_loss: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach Equation: Friction Head Loss
Calculates friction head loss along pipe reach due to fluid boundary shear.
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.darcy_weisbach(friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach Equation: Friction Head Loss
Calculates friction head loss along pipe reach due to fluid boundary shear.
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.darcy_weisbach(friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Reach Length Inversion
Inversion: Pipe length L = (2 * g * D * h_f) / (f * V^2).
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.darcy_weisbach_l(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Reach Length Inversion
Inversion: Pipe length L = (2 * g * D * h_f) / (f * V^2).
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.darcy_weisbach_l(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Discharge Inversion
Evaluates pipe volumetric discharge Q under available friction head loss h_f in pressurized circular pipes.
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.darcy_weisbach_q(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Mean Velocity Inversion
Calculates permissible flow velocity V for a specified available friction head loss h_f, pipe length L, diameter D, and friction factor f.
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.darcy_weisbach_v(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Darcy-Weisbach: Mean Velocity Inversion
Calculates permissible flow velocity V for a specified available friction head loss h_f, pipe length L, diameter D, and friction factor f.
| hf | = | Energy friction head loss h_f | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| L | = | Reach / conduit / flow path length L | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.darcy_weisbach_v(head_loss: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Direct Step
Direct Step method reach length between two sections:.
| E | = | Input parameter | (SI units) |
| E | = | Input parameter | (SI units) |
| S0 | = | Longitudinal channel bed slope S_0 | (m/m) |
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.direct_step(energy_1: Union[float, int, Sequence[float], numpy.ndarray], energy_2: Union[float, int, Sequence[float], numpy.ndarray], bed_slope: Union[float, int, Sequence[float], numpy.ndarray], friction_slope_1: Union[float, int, Sequence[float], numpy.ndarray], friction_slope_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Diameter Series
Calculates the uniform equivalent diameter D_e that replaces multiple pipes of varying diameters connected in series while preserving identical total head loss.
| L | = | Length | (m) |
| sumratio | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.equivalent_diameter_series(total_length: Union[float, int, Sequence[float], numpy.ndarray], sum_ratio: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Pipe F
Inversion: Pipe friction factor f = (K_L * D) / L_e.
| L | = | Length | (m) |
| losscoeff | = | Input parameter | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.equivalent_pipe_f(length_equiv: Union[float, int, Sequence[float], numpy.ndarray], loss_coeff: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Pipe F
Inversion: Pipe friction factor f = (K_L * D) / L_e.
| L | = | Length | (m) |
| losscoeff | = | Input parameter | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.equivalent_pipe_f(length_equiv: Union[float, int, Sequence[float], numpy.ndarray], loss_coeff: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Pipe Kl
Inversion: Minor loss coefficient K_L = (f * L_e) / D.
| L | = | Length | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.equivalent_pipe_kl(length_equiv: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Pipe Length
Converts localized minor head loss components (valves, elbows, meters) into an equivalent length L_e of straight pipe with identical diameter and friction factor.
| minorloss_coeff | = | Input parameter | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.equivalent_pipe_length(minor_loss_coeff: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Pipe Length
Converts localized minor head loss components (valves, elbows, meters) into an equivalent length L_e of straight pipe with identical diameter and friction factor.
| minorloss_coeff | = | Input parameter | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.equivalent_pipe_length(minor_loss_coeff: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Equivalent Pipe Kl
Inversion: Minor loss coefficient K_L = (f * L_e) / D.
| L | = | Length | (m) |
| D | = | Internal conduit / pipe diameter D | (m) |
| f | = | Darcy-Weisbach friction factor f | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.equivalent_pipe_kl(length_equiv: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], friction_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Froude Dh
Inversion: Hydraulic depth from Froude number D_h = V^2 / (g * Fr^2).
| fr | = | Input parameter | (SI units) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.froude_dh(fr: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Froude Fr
Evaluates dimensionless Froude number Fr characterizing inertial to gravitational force ratio.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| Dh | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.froude_fr(velocity: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Froude Dh
Inversion: Hydraulic depth from Froude number D_h = V^2 / (g * Fr^2).
| fr | = | Input parameter | (SI units) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.froude_dh(fr: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Froude Number
Calculates the dimensionless Froude number Fr representing the ratio of inertial forces to gravitational forces. Classifies flow as subcritical (Fr < 1), critical (Fr = 1), or supercritical (Fr > 1).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| T | = | Channel free-surface top width T | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.froude_number(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], top_width: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Froude V
Computes flow velocity V required to achieve a specified target Froude number Fr at hydraulic depth D_h.
| fr | = | Input parameter | (SI units) |
| Dh | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.froude_v(fr: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Froude V
Computes flow velocity V required to achieve a specified target Froude number Fr at hydraulic depth D_h.
| fr | = | Input parameter | (SI units) |
| Dh | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.froude_v(fr: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Geom Circular
Evaluates partially full circular pipe and culvert flow geometry using the central angle subtended by the free water surface.
| D | = | Internal conduit / pipe diameter D | (m) |
| y | = | Water flow depth y | (m) |
| Tp | = | Geometric properties tuple (Area | (m) |
hydroaj.hydraulics.geom_circular(diameter: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Geom Parabolic
Computes geometric parameters of a parabolic channel cross-section based on water surface top width T and central depth y.
| T | = | Channel free-surface top width T | (m) |
| y | = | Water flow depth y | (m) |
| Tp | = | Geometric properties tuple (Area | (m) |
hydroaj.hydraulics.geom_parabolic(top_width: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Geom Rectangular
Computes all fundamental geometric properties of a rectangular cross-section: Area A, Wetted Perimeter P, Hydraulic Radius R_h, Top Width T, Hydraulic Depth D_h, and Centroid Depth y_bar.
| b | = | Channel base width b | (m) |
| y | = | Water flow depth y | (m) |
| Tp | = | Geometric properties tuple (Area | (m) |
hydroaj.hydraulics.geom_rectangular(bottom_width: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Geom Trapezoidal
Evaluates the geometric properties of a symmetric trapezoidal channel with side slopes m:1 (horizontal:vertical), determining A, P, R_h, T, D_h, and centroid depth.
| b | = | Channel base width b | (m) |
| m | = | Side slope ratio m (1V : mH) | (-) |
| y | = | Water flow depth y | (m) |
| Tp | = | Geometric properties tuple (Area | (m) |
hydroaj.hydraulics.geom_trapezoidal(bottom_width: Union[float, int, Sequence[float], numpy.ndarray], side_slope: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Geom Triangular
Calculates geometric properties for a symmetric triangular channel (V-shaped) with side slopes m:1.
| m | = | Side slope ratio m (1V : mH) | (-) |
| y | = | Water flow depth y | (m) |
| Tp | = | Geometric properties tuple (Area | (m) |
hydroaj.hydraulics.geom_triangular(side_slope: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Gravity Wave Celerity
Evaluates shallow-water gravity wave celerity c relative to the flowing fluid in an open channel of hydraulic depth D_h.
| Dh | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.gravity_wave_celerity(hydraulic_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
GVF Gradient
Evaluates the fundamental differential equation dy/dx of Gradually Varied Flow (GVF) relating water surface slope to bed slope, friction slope, and Froude number.
| S0 | = | Longitudinal channel bed slope S_0 | (m/m) |
| Sf | = | Energy grade line friction slope S_f | (m/m) |
| Fr | = | Froude number Fr = V / sqrt(g * D_h) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.gvf_gradient(bed_slope: Union[float, int, Sequence[float], numpy.ndarray], friction_slope: Union[float, int, Sequence[float], numpy.ndarray], froude_number: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Haaland
Haaland explicit friction factor approximation.
| n | = | Input parameter | (SI units) |
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.haaland(relative_roughness: Union[float, int, Sequence[float], numpy.ndarray], reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hardy Cross Correction
Evaluates the flow loop correction delta_Q in closed-loop pipe distribution networks using Hardy Cross successive head-loss balance approximations.
| hf | = | Hydraulic head | (m) |
| sumderivative | = | Input parameter | (SI units) |
| nexp | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hardy_cross_correction(sum_head_loss: Union[float, int, Sequence[float], numpy.ndarray], sum_derivative: Union[float, int, Sequence[float], numpy.ndarray], n_exp: Union[float, int, Sequence[float], numpy.ndarray] = 2.0) -> Union[float, numpy.ndarray]
Hazen Williams
Hazen-Williams head loss:.
| L | = | Reach / conduit / flow path length L | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| ccoefficient | = | Input parameter | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hazen_williams(length: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], c_coefficient: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams C
Inversion: Hazen-Williams C = ((k_L * L * Q^1.852) / (h_f * D^4.8704))^(1 / 1.852).
| hf | = | Energy friction head loss h_f | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| D | = | Internal conduit / pipe diameter D | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydraulics.hazen_williams_c(head_loss: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams D
Solves for required conduit diameter D under Hazen-Williams friction loss constraints.
| hf | = | Energy friction head loss h_f | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.hazen_williams_d(head_loss: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams D
Solves for required conduit diameter D under Hazen-Williams friction loss constraints.
| hf | = | Energy friction head loss h_f | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.hazen_williams_d(head_loss: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams Q
Inverts Hazen-Williams formula to solve for volumetric discharge Q under specified allowable head loss h_f.
| hf | = | Energy friction head loss h_f | (m) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| D | = | Internal conduit / pipe diameter D | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.hazen_williams_q(head_loss: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams h_f
Evaluates friction head loss h_f using Hazen-Williams formulation with exact D^4.87 exponent alignment.
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| D | = | Internal conduit / pipe diameter D | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.hazen_williams_hf(roughness_c: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams h_f
Evaluates friction head loss h_f using Hazen-Williams formulation with exact D^4.87 exponent alignment.
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| D | = | Internal conduit / pipe diameter D | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.hazen_williams_hf(roughness_c: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams L
Inversion: Pipe length L = (h_f * C^1.852 * D^4.8704) / (k_L * Q^1.852).
| hf | = | Energy friction head loss h_f | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.hazen_williams_l(head_loss: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams L
Inversion: Pipe length L = (h_f * C^1.852 * D^4.8704) / (k_L * Q^1.852).
| hf | = | Energy friction head loss h_f | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| D | = | Internal conduit / pipe diameter D | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.hazen_williams_l(head_loss: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams Q
Inverts Hazen-Williams formula to solve for volumetric discharge Q under specified allowable head loss h_f.
| hf | = | Energy friction head loss h_f | (m) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| D | = | Internal conduit / pipe diameter D | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.hazen_williams_q(head_loss: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams C
Inversion: Hazen-Williams C = ((k_L * L * Q^1.852) / (h_f * D^4.8704))^(1 / 1.852).
| hf | = | Energy friction head loss h_f | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| D | = | Internal conduit / pipe diameter D | (m) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydraulics.hazen_williams_c(head_loss: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams S
Inversion: Hydraulic slope S = (V / (k_v * C * R_h^0.63))^(1 / 0.54).
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.hazen_williams_s(velocity: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams S
Inversion: Hydraulic slope S = (V / (k_v * C * R_h^0.63))^(1 / 0.54).
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| n | = | Hazen-Williams roughness coefficient C | dimensionless (typically 80 - 150) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.hazen_williams_s(velocity: Union[float, int, Sequence[float], numpy.ndarray], roughness_c: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams Velocity
Computes mean velocity V in pipes flowing full or open conduits using Hazen-Williams empirical coefficient C.
| ccoefficient | = | Input parameter | (-) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.hazen_williams_velocity(c_coefficient: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hazen Williams Velocity
Computes mean velocity V in pipes flowing full or open conduits using Hazen-Williams empirical coefficient C.
| ccoefficient | = | Input parameter | (-) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.hazen_williams_velocity(c_coefficient: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Horton Einstein Composite N
Derives the equivalent composite Manning roughness coefficient across composite channel perimeters using the Horton-Einstein equal-velocity weighting hypothesis.
| perimeters | = | Input parameter | (SI units) |
| n | = | Input parameter | (SI units) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydraulics.horton_einstein_composite_n(perimeters: Union[float, int, Sequence[float], numpy.ndarray], roughnesses: Union[float, int, Sequence[float], numpy.ndarray]) -> float
Hydraulic Jump Y1
Inverts Bélanger's momentum conservation equation to find initial supercritical inflow depth y_1 from downstream sequent depth y_2 and downstream Froude number Fr_2.
| y | = | Subcritical sequent flow depth y_2 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_y1(depth_2: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Efficiency
Computes the hydraulic jump efficiency (ratio of post-jump to pre-jump specific energy E_2/E_1) as a direct function of initial inflow Froude number Fr_1.
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_efficiency(froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Fr1
Calculates upstream supercritical inflow Froude number Fr_1 from the ratio of conjugate depths y_2 / y_1.
| y | = | Supercritical initial flow depth y_1 | (m) |
| y | = | Subcritical sequent flow depth y_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_fr1(depth_1: Union[float, int, Sequence[float], numpy.ndarray], depth_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Fr1
Calculates upstream supercritical inflow Froude number Fr_1 from the ratio of conjugate depths y_2 / y_1.
| y | = | Supercritical initial flow depth y_1 | (m) |
| y | = | Subcritical sequent flow depth y_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_fr1(depth_1: Union[float, int, Sequence[float], numpy.ndarray], depth_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Head Loss
Determines the total energy head dissipation Delta_E across a classical hydraulic jump in a rectangular channel as a function of initial and sequent depths.
| y1 | = | Supercritical initial depth y_1 | (m) |
| y2 | = | Subcritical conjugate depth y_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_head_loss(initial_depth: Union[float, int, Sequence[float], numpy.ndarray], sequent_depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Height
Calculates the physical vertical height h_j of a hydraulic jump roller from the supercritical initial depth y_1 to subcritical sequent depth y_2.
| y1 | = | Flow depth | (m) |
| y2 | = | Flow depth | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_height(y_1: Union[float, int, Sequence[float], numpy.ndarray], y_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Length
Estimates the longitudinal length L_j of a classical hydraulic jump based on USBR and Silvester empirical formulations.
| y1 | = | Supercritical initial depth y_1 | (m) |
| y2 | = | Subcritical conjugate depth y_2 | (m) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydraulics.hydraulic_jump_length(initial_depth: Union[float, int, Sequence[float], numpy.ndarray], sequent_depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hydraulic Jump Y1
Inverts Bélanger's momentum conservation equation to find initial supercritical inflow depth y_1 from downstream sequent depth y_2 and downstream Froude number Fr_2.
| y | = | Subcritical sequent flow depth y_2 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.hydraulic_jump_y1(depth_2: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Bélanger Sequent Conjugate Depth Formulation
Solves Bélanger's momentum conservation equation to find the subcritical sequent depth y_2 following a hydraulic jump in a rectangular horizontal channel.
| y1 | = | Supercritical initial depth y_1 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.belanger_conjugate_depth(initial_depth: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Joukowsky
Joukowsky pressure head rise: Delta_H = (a * Delta_V) / g.
| celerity | = | Input parameter | (SI units) |
| deltav | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.joukowsky(celerity: Union[float, int, Sequence[float], numpy.ndarray], delta_v: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Joukowsky A
Inversion: Acoustic wave speed a = delta_P / (rho * delta_V).
| P | = | Input parameter | (SI units) |
| V | = | Flow velocity | (m/s) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydraulics.joukowsky_a(delta_pressure: Union[float, int, Sequence[float], numpy.ndarray], delta_velocity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Joukowsky A
Inversion: Acoustic wave speed a = delta_P / (rho * delta_V).
| P | = | Input parameter | (SI units) |
| V | = | Flow velocity | (m/s) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydraulics.joukowsky_a(delta_pressure: Union[float, int, Sequence[float], numpy.ndarray], delta_velocity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Joukowsky Dv
Inversion: Velocity change delta_V = delta_P / (rho * a).
| P | = | Input parameter | (SI units) |
| celerity | = | Input parameter | (SI units) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.joukowsky_dv(delta_pressure: Union[float, int, Sequence[float], numpy.ndarray], celerity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Joukowsky Dp
Joukowsky water hammer pressure rise: Delta_P = rho * a * Delta_V.
| celerity | = | Input parameter | (SI units) |
| V | = | Flow velocity | (m/s) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.joukowsky_dp(celerity: Union[float, int, Sequence[float], numpy.ndarray], delta_velocity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Joukowsky Dv
Inversion: Velocity change delta_V = delta_P / (rho * a).
| P | = | Input parameter | (SI units) |
| celerity | = | Input parameter | (SI units) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.joukowsky_dv(delta_pressure: Union[float, int, Sequence[float], numpy.ndarray], celerity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Joukowsky Dp
Joukowsky water hammer pressure rise: Delta_P = rho * a * Delta_V.
| celerity | = | Input parameter | (SI units) |
| V | = | Flow velocity | (m/s) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.joukowsky_dp(celerity: Union[float, int, Sequence[float], numpy.ndarray], delta_velocity: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Kennedy Critical Depth
Inversion: Solves for flow depth y = (V_0 / (k * m))^(1 / 0.64).
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| cvrm | = | Kennedy Critical Velocity Ratio m | dimensionless (0.7 - 1.3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.kennedy_critical_depth(velocity: Union[float, int, Sequence[float], numpy.ndarray], cvr_m: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kennedy Critical Velocity
Calculates non-silting critical velocity V_0 using Kennedy's formula.
| y | = | Water flow depth y | (m) |
| cvrm | = | Kennedy Critical Velocity Ratio m | dimensionless (0.7 - 1.3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.kennedy_critical_velocity(depth: Union[float, int, Sequence[float], numpy.ndarray], cvr_m: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kutter Chézy C
Derives the empirical Chézy resistance coefficient C using the Ganguillet-Kutter formulation as a function of roughness n, slope S_0, and hydraulic radius R_h.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydraulics.kutter_chezy_c(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey D50
Inversion: Solves for sediment grain size d_50 = (f / 1.76)^2 [mm].
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.lacey_d50(silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Hydraulic Radius
Calculates Lacey's regime hydraulic radius R = 0.48 * (Q / f)^(1/3) [m].
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.lacey_hydraulic_radius(discharge: Union[float, int, Sequence[float], numpy.ndarray], silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Perimeter Discharge
Inversion: Solves for regime discharge Q = (P / 4.75)^2.
| wettedperimeter | = | Wetted perimeter P | (m) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.lacey_perimeter_discharge(wetted_perimeter: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Regime Scour Depth
Calculates Lacey's normal regime scour depth R_scour = 0.473 * (Q / f)^(1/3) [m].
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.lacey_regime_scour_depth(discharge: Union[float, int, Sequence[float], numpy.ndarray], silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Regime Slope
Calculates Lacey's regime channel bed slope S.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.lacey_regime_slope(discharge: Union[float, int, Sequence[float], numpy.ndarray], silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Regime Velocity
Calculates Lacey's regime non-silting, non-scouring velocity V.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.lacey_regime_velocity(discharge: Union[float, int, Sequence[float], numpy.ndarray], silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Silt Factor
Calculates Lacey's silt factor f from median alluvial sediment grain size.
| d50mm | = | Median sediment grain size d_50 | (mm) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.lacey_silt_factor(d50_mm: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Slope Discharge
Inversion: Solves for regime discharge Q = (f^(5/3) / (3340 * S))^6.
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.lacey_slope_discharge(slope: Union[float, int, Sequence[float], numpy.ndarray], silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Velocity Discharge
Inversion: Solves for regime discharge Q = (140 * V^6) / f^2.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| siltfactor | = | Lacey's silt factor f | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.lacey_velocity_discharge(velocity: Union[float, int, Sequence[float], numpy.ndarray], silt_factor: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lacey Wetted Perimeter
Calculates Lacey's regime wetted perimeter P = 4.75 * sqrt(Q) [m].
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.lacey_wetted_perimeter(discharge: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Laminar Friction
Laminar friction factor: f = 64 / Re.
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.laminar_friction(reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Manning A
Solves for required cross-sectional flow area A under uniform Manning flow conditions.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydraulics.manning_a(discharge: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning A
Solves for required cross-sectional flow area A under uniform Manning flow conditions.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydraulics.manning_a(discharge: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Equation: Open Channel Discharge
Used for estimating uniform steady flow rate in open channels.
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.manning_discharge(area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning Friction Slope
Calculates the energy gradient (friction slope S_f) for non-uniform flow by inverting Manning's conveyance equation.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.manning_friction_slope(discharge: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Formula: Hydraulic Radius Inversion
Analytically isolates required hydraulic radius R_h from known discharge Q, flow area A, roughness n, and longitudinal slope S_0.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.manning_rh(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Formula: Roughness Inversion
Calculates boundary roughness coefficient inverted from uniform channel flow.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydraulics.manning_n(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Equation: Open Channel Discharge
Used for estimating uniform steady flow rate in open channels.
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.manning_discharge(area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Formula: Hydraulic Radius Inversion
Analytically isolates required hydraulic radius R_h from known discharge Q, flow area A, roughness n, and longitudinal slope S_0.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.manning_rh(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Formula: Roughness Inversion
Calculates boundary roughness coefficient inverted from uniform channel flow.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydraulics.manning_n(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Formula: Channel Bed Slope Inversion
Calculates required channel bed slope inverted from target flow rate.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.manning_s0(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Formula: Channel Bed Slope Inversion
Calculates required channel bed slope inverted from target flow rate.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.manning_s0(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Equation: Flow Velocity
Used for estimating uniform flow velocity in open channels.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.manning_velocity(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Manning's Equation: Flow Velocity
Used for estimating uniform flow velocity in open channels.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.manning_velocity(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss
Calculates local minor head loss h_m caused by valves, bends, expansions, contractions, and fittings via resistance coefficient K_L.
| losscoefficient | = | Input parameter | (-) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.minor_loss(loss_coefficient: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss Kl
Back-calculates fitting loss coefficient K_L from measured head loss h_m and conduit velocity V.
| hf | = | Energy friction head loss h_f | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.minor_loss_kl(head_loss: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss
Calculates local minor head loss h_m caused by valves, bends, expansions, contractions, and fittings via resistance coefficient K_L.
| losscoefficient | = | Input parameter | (-) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.minor_loss(loss_coefficient: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss
Calculates local minor head loss h_m caused by valves, bends, expansions, contractions, and fittings via resistance coefficient K_L.
| losscoefficient | = | Input parameter | (-) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.minor_loss(loss_coefficient: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss Kl
Back-calculates fitting loss coefficient K_L from measured head loss h_m and conduit velocity V.
| hf | = | Energy friction head loss h_f | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.minor_loss_kl(head_loss: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss V
Inversion: Flow velocity V = sqrt((2 * g * h_m) / K_L).
| hf | = | Energy friction head loss h_f | (m) |
| losscoeff | = | Input parameter | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.minor_loss_v(head_loss: Union[float, int, Sequence[float], numpy.ndarray], loss_coeff: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Minor Loss V
Inversion: Flow velocity V = sqrt((2 * g * h_m) / K_L).
| hf | = | Energy friction head loss h_f | (m) |
| losscoeff | = | Input parameter | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.minor_loss_v(head_loss: Union[float, int, Sequence[float], numpy.ndarray], loss_coeff: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Normal Depth Trapezoidal
Solves normal depth y_n in trapezoidal channel via parallel Newton-Raphson.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Channel base width b | (m) |
| m | = | Side slope ratio m (1V : mH) | (-) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Manning roughness coefficient n | (s/m1/3) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.normal_depth_trapezoidal(discharge: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], side_slope: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Optimal Rectangular Section
Computes the dimensions and hydraulic parameters of the hydraulically most efficient rectangular open channel section minimizing wetted perimeter for a specified depth.
| y | = | Water flow depth y | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.optimal_rectangular_section(depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Optimal Trapezoidal Section
Evaluates the best hydraulic trapezoidal section (half of a regular hexagon) which delivers maximum discharge for a given cross-sectional excavation area.
| y | = | Water flow depth y | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.optimal_trapezoidal_section(depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Optimal Triangular Section
Calculates the most efficient triangular open channel section having a 90-degree central apex angle (side slope 1:1) and maximum hydraulic radius.
| y | = | Water flow depth y | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.optimal_triangular_section(depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Parallel Pipes Distribution
Distributes total network inflow across parallel pipe branches in proportion to hydraulic conductance k_i under equal head loss constraints.
| Q | = | Volumetric discharge rate | (m³/s) |
| branchconductance | = | Input parameter | (SI units) |
| sumconductance | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.parallel_pipes_distribution(total_discharge: Union[float, int, Sequence[float], numpy.ndarray], branch_conductance: Union[float, int, Sequence[float], numpy.ndarray], sum_conductance: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Pavlovskii Composite N
Calculates composite Manning roughness using Pavlovskii's total resisting shear force formulation across heterogeneous channel boundary subsections.
| perimeters | = | Input parameter | (SI units) |
| n | = | Input parameter | (SI units) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydraulics.pavlovskii_composite_n(perimeters: Union[float, int, Sequence[float], numpy.ndarray], roughnesses: Union[float, int, Sequence[float], numpy.ndarray]) -> float
Pump Brake Power
Computes mechanical brake power P_b required to drive a pump given theoretical water power P_w and pump mechanical/hydraulic efficiency eta.
| waterpower | = | Input parameter | (SI units) |
| efficiency | = | Overall wire-to-water pump efficiency eta | dimensionless decimal (0 - 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.pump_brake_power(water_power: Union[float, int, Sequence[float], numpy.ndarray], efficiency: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Pump Power Eta
Inversion: Pump mechanical efficiency eta = P_w / P_b.
| waterpower | = | Input parameter | (SI units) |
| brakepower | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.pump_power_eta(water_power: Union[float, int, Sequence[float], numpy.ndarray], brake_power: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Pump Power Eta
Inversion: Pump mechanical efficiency eta = P_w / P_b.
| waterpower | = | Input parameter | (SI units) |
| brakepower | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.pump_power_eta(water_power: Union[float, int, Sequence[float], numpy.ndarray], brake_power: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Pump Brake Power
Computes mechanical brake power P_b required to drive a pump given theoretical water power P_w and pump mechanical/hydraulic efficiency eta.
| waterpower | = | Input parameter | (SI units) |
| efficiency | = | Overall wire-to-water pump efficiency eta | dimensionless decimal (0 - 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.pump_brake_power(water_power: Union[float, int, Sequence[float], numpy.ndarray], efficiency: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Pump Power Pw
Inversion: Water power delivered P_w = P_b * eta.
| brakepower | = | Input parameter | (SI units) |
| efficiency | = | Overall wire-to-water pump efficiency eta | dimensionless decimal (0 - 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.pump_power_pw(brake_power: Union[float, int, Sequence[float], numpy.ndarray], efficiency: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Pump Power Pw
Inversion: Water power delivered P_w = P_b * eta.
| brakepower | = | Input parameter | (SI units) |
| efficiency | = | Overall wire-to-water pump efficiency eta | dimensionless decimal (0 - 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.pump_power_pw(brake_power: Union[float, int, Sequence[float], numpy.ndarray], efficiency: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Reynolds D
Inversion: Diameter D = (Re * nu) / V.
| Re | = | Reynolds number Re = V * D / nu | (-) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| ν | = | Input parameter | (SI units) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.reynolds_d(reynolds: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Reynolds D
Inversion: Diameter D = (Re * nu) / V.
| Re | = | Reynolds number Re = V * D / nu | (-) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| ν | = | Input parameter | (SI units) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.hydraulics.reynolds_d(reynolds: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Reynolds Number
Computes the dimensionless Reynolds number Re characterizing laminar vs. turbulent flow regimes in pressurized circular conduits.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| D | = | Internal conduit / pipe diameter D | (m) |
| ν | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.reynolds_number(velocity: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Reynolds Number
Computes the dimensionless Reynolds number Re characterizing laminar vs. turbulent flow regimes in pressurized circular conduits.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| D | = | Internal conduit / pipe diameter D | (m) |
| ν | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.reynolds_number(velocity: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Reynolds V
Inverts Reynolds relationship to find flow velocity V corresponding to a target Reynolds number Re.
| Re | = | Reynolds number Re = V * D / nu | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| ν | = | Input parameter | (SI units) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.reynolds_v(reynolds: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Reynolds V
Inverts Reynolds relationship to find flow velocity V corresponding to a target Reynolds number Re.
| Re | = | Reynolds number Re = V * D / nu | (-) |
| D | = | Internal conduit / pipe diameter D | (m) |
| ν | = | Input parameter | (SI units) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.reynolds_v(reynolds: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Specific Energy
Computes specific energy E (energy head measured relative to channel bottom) as the sum of flow depth and velocity head.
| y | = | Water flow depth y | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.specific_energy(depth: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Specific Energy E
Computes specific energy head E relative to channel bottom for given depth and flow conditions.
| y | = | Water flow depth y | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.specific_energy_e(depth: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Specific Energy V
Solves for flow velocity V corresponding to a specified specific energy head E and flow depth y.
| E | = | Input parameter | (SI units) |
| y | = | Water flow depth y | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.specific_energy_v(specific_energy: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Specific Energy V
Solves for flow velocity V corresponding to a specified specific energy head E and flow depth y.
| E | = | Input parameter | (SI units) |
| y | = | Water flow depth y | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.specific_energy_v(specific_energy: Union[float, int, Sequence[float], numpy.ndarray], depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Specific Force
Calculates specific force (momentum function) M composed of flow momentum flux and hydrostatic pressure force, conserved across rapidly varied transitions.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| y | = | Flow depth | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.specific_force(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], centroid_depth: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Strickler Kst
Inverts Strickler formula to back-calculate roughness parameter k_st from measured velocity, hydraulic radius, and energy slope.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.strickler_kst(velocity: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Strickler Kst
Inverts Strickler formula to back-calculate roughness parameter k_st from measured velocity, hydraulic radius, and energy slope.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.strickler_kst(velocity: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Strickler S₀
Solves for required bed slope S_0 sustaining velocity V under Strickler formulation.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| kst | = | Strickler roughness coefficient k_st = 1 / n | (m^(1/3)/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.strickler_s0(velocity: Union[float, int, Sequence[float], numpy.ndarray], k_st: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Strickler S₀
Solves for required bed slope S_0 sustaining velocity V under Strickler formulation.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| kst | = | Strickler roughness coefficient k_st = 1 / n | (m^(1/3)/s) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydraulics.strickler_s0(velocity: Union[float, int, Sequence[float], numpy.ndarray], k_st: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Strickler Velocity
Computes mean flow velocity V using Strickler's roughness coefficient k_st = 1/n, commonly adopted in European river engineering and alpine torrent hydraulics.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| kst | = | Strickler roughness coefficient k_st = 1 / n | (m^(1/3)/s) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.strickler_velocity(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], k_st: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Strickler Velocity
Computes mean flow velocity V using Strickler's roughness coefficient k_st = 1/n, commonly adopted in European river engineering and alpine torrent hydraulics.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| kst | = | Strickler roughness coefficient k_st = 1 / n | (m^(1/3)/s) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydraulics.strickler_velocity(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], k_st: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Swamee-Jain Explicit Friction Factor Formulation
Explicit approximation of Colebrook-White friction factor across transition regime.
| n | = | Input parameter | (SI units) |
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.swamee_jain(relative_roughness: Union[float, int, Sequence[float], numpy.ndarray], reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Water Horsepower
Calculates theoretical water power (net hydraulic energy imparted to or extracted from flowing water) across pumps or turbines.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| specificweight | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.water_horsepower(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], specific_weight: Union[float, int, Sequence[float], numpy.ndarray] = None, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Water Power Q
Inverts water power formula to calculate deliverable discharge Q for available hydraulic power P_w and total dynamic head H.
| powerw | = | Input parameter | (SI units) |
| H | = | Upstream / operating hydraulic head H | (m) |
| specificweight | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.water_power_q(power_w: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], specific_weight: Union[float, int, Sequence[float], numpy.ndarray] = None, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Water Power H
Inversion: Hydraulic head H = (P_w * divisor) / (gamma * Q).
| powerw | = | Input parameter | (SI units) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| specificweight | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.water_power_h(power_w: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], specific_weight: Union[float, int, Sequence[float], numpy.ndarray] = None, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Water Power H
Inversion: Hydraulic head H = (P_w * divisor) / (gamma * Q).
| powerw | = | Input parameter | (SI units) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| specificweight | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydraulics.water_power_h(power_w: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], specific_weight: Union[float, int, Sequence[float], numpy.ndarray] = None, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Water Horsepower
Calculates theoretical water power (net hydraulic energy imparted to or extracted from flowing water) across pumps or turbines.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| specificweight | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.water_horsepower(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], specific_weight: Union[float, int, Sequence[float], numpy.ndarray] = None, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Water Power Q
Inverts water power formula to calculate deliverable discharge Q for available hydraulic power P_w and total dynamic head H.
| powerw | = | Input parameter | (SI units) |
| H | = | Upstream / operating hydraulic head H | (m) |
| specificweight | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydraulics.water_power_q(power_w: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], specific_weight: Union[float, int, Sequence[float], numpy.ndarray] = None, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Wave Celerity
Water hammer wave celerity: a = sqrt((K / rho) / (1 + (K / E) * (D / e))).
| bulkmodulus | = | Input parameter | (SI units) |
| ρ | = | Fluid mass density rho | kg/m^3 (~1000.0) |
| elasticmodulus | = | Input parameter | (SI units) |
| D | = | Internal conduit / pipe diameter D | (m) |
| wallthickness | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.wave_celerity(bulk_modulus: Union[float, int, Sequence[float], numpy.ndarray], density: Union[float, int, Sequence[float], numpy.ndarray], elastic_modulus: Union[float, int, Sequence[float], numpy.ndarray], diameter: Union[float, int, Sequence[float], numpy.ndarray], wall_thickness: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Wood
Wood explicit friction factor approximation.
| n | = | Input parameter | (SI units) |
| Re | = | Reynolds number Re = V * D / nu | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydraulics.wood(relative_roughness: Union[float, int, Sequence[float], numpy.ndarray], reynolds: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
2. Surface Water Hydrology & Runoff Dynamics
Rainfall-runoff transformation, hydrograph convolution, catchment time of concentration, infiltration mechanics, and reservoir flood routing. Total verified routines: 119 functions.
import hydroaj.hydrology as hydro
# 1. Rational Method Peak Discharge (C = 0.65, I = 45 mm/hr, Area = 250,000 m²)
Q_peak = hydro.rational_peak_flow(runoff_coefficient=0.65, intensity=45.0, area=250000.0)
print(f"Rational Peak Storm Discharge Q_p: {Q_peak:.3f} m³/s")
# 2. SCS Runoff Curve Number (P = 85 mm, CN = 78)
S = hydro.scs_maximum_retention(curve_number=78.0)
Q_d = hydro.scs_runoff_depth(precipitation=85.0, curve_number=78.0)
print(f"Potential Retention S: {S:.2f} mm | Direct Runoff Depth Q_d: {Q_d:.2f} mm")
# 3. Kirpich Time of Concentration (L = 1200 m, S = 0.025 m/m)
t_c = hydro.kirpich_tc(length=1200.0, slope=0.025)
print(f"Kirpich Time of Concentration T_c: {t_c:.3f} hours")
Baseflow Lyne Hollick
Separates total streamflow into quickflow (direct runoff) and baseflow using the Lyne-Hollick digital filter.
| Q | = | Input parameter | (SI units) |
| alpha | = | Priestley-Taylor radiation coefficient alpha | dimensionless (~1.26) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.baseflow_lyne_hollick(streamflow: Sequence[float], alpha: float = 0.925) -> Tuple[numpy.ndarray, numpy.ndarray]
Blaney Criddle Et
Calculates monthly reference evapotranspiration ET_0 using the FAO Blaney-Criddle formula.
| tempc | = | Mean daily air temperature at 2 m height T | (deg C) |
| sunshinep_percent | = | Percentage of annual daytime hours p | (dimensionless %) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.blaney_criddle_et(temp_c: Union[float, int, Sequence[float], numpy.ndarray], sunshine_p_percent: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Blaney Criddle Temp
Inversion: Solves for mean temperature T = (ET_0 / p - 8.13) / 0.46.
| et0 | = | Reference evapotranspiration ET_0 | (mm/day) |
| sunshinep_percent | = | Percentage of annual daytime hours p | (dimensionless %) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.blaney_criddle_temp(et0: Union[float, int, Sequence[float], numpy.ndarray], sunshine_p_percent: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Bransby Williams A
Inversion: Solves for catchment area A from known Bransby-Williams time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| L | = | Main channel path length L | (km) |
| S0 | = | Main channel gradient S | (m/km) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.bransby_williams_a(tc: Union[float, int, Sequence[float], numpy.ndarray], length_km: Union[float, int, Sequence[float], numpy.ndarray], slope_m_per_km: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Bransby Williams L
Inversion: Solves for channel length L from known Bransby-Williams time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| A | = | Catchment watershed drainage area A | (km²) |
| S0 | = | Main channel gradient S | (m/km) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydrology.bransby_williams_l(tc: Union[float, int, Sequence[float], numpy.ndarray], area_km2: Union[float, int, Sequence[float], numpy.ndarray], slope_m_per_km: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Bransby Williams S
Inversion: Solves for slope S from known Bransby-Williams time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| L | = | Main channel path length L | (km) |
| A | = | Catchment watershed drainage area A | (km²) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.bransby_williams_s(tc: Union[float, int, Sequence[float], numpy.ndarray], length_km: Union[float, int, Sequence[float], numpy.ndarray], area_km2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Bransby Williams Tc
Calculates time of concentration Tc using the Bransby-Williams equation (Australian / Commonwealth standard).
| L | = | Main channel path length L | (km) |
| A | = | Catchment watershed drainage area A | (km²) |
| S0 | = | Main channel gradient S | (m/km) |
| Tp | = | Time parameter | (minutes) |
hydroaj.hydrology.bransby_williams_tc(length_km: Union[float, int, Sequence[float], numpy.ndarray], area_km2: Union[float, int, Sequence[float], numpy.ndarray], slope_m_per_km: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Cunnane Plotting Position
Calculates empirical plotting position using Cunnane formula: P = (m - 0.4) / (N + 0.2).
| rank | = | Statistical order rank m (1 for largest flood) | (integer) |
| totalsamples | = | Total record length / sample size N | (integer count) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.cunnane_plotting_position(rank: Union[float, int, Sequence[float], numpy.ndarray], total_samples: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]]
Dickens Area
Inversion: Solves for drainage area A = (Q / C_D)^(4/3).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| cd | = | Dicken's flood coefficient C_D | dimensionless (11.4 - 28.0) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.dickens_area(discharge: Union[float, int, Sequence[float], numpy.ndarray], c_d: Union[float, int, Sequence[float], numpy.ndarray] = 14.0) -> Union[float, numpy.ndarray]
Dickens Cd
Inversion: Solves for Dicken's coefficient C_D = Q / A^(3/4).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Catchment watershed drainage area A | (km²) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.dickens_cd(discharge: Union[float, int, Sequence[float], numpy.ndarray], area_km2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Dickens Q
Calculates maximum flood peak discharge Q using Dicken's formula.
| A | = | Catchment watershed drainage area A | (km²) |
| cd | = | Dicken's flood coefficient C_D | dimensionless (11.4 - 28.0) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.dickens_q(area_km2: Union[float, int, Sequence[float], numpy.ndarray], c_d: Union[float, int, Sequence[float], numpy.ndarray] = 14.0) -> Union[float, numpy.ndarray]
FAA C
Inversion: Solves for runoff coefficient C from known FAA time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.faa_c(tc: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
FAA L
Inversion: Solves for flow length L from known FAA time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydrology.faa_l(tc: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
FAA S
Inversion: Solves for slope S from known FAA time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| L | = | Reach / conduit / flow path length L | (m) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.faa_s(tc: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
FAA Tc
Calculates overland time of concentration Tc using the Federal Aviation Administration (FAA) equation.
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.hydrology.faa_tc(length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Fao56 Net Radiation
Inversion: Solves for required net radiation R_n from known FAO-56 ET_0.
| et0 | = | Reference evapotranspiration ET_0 | (mm/day) |
| tempc | = | Mean daily air temperature at 2 m height T | (deg C) |
| windspeed_2m | = | Mean daily wind speed at 2 m height u_2 | (m/s) |
| es | = | Mean saturation vapor pressure e_s | (kPa) |
| ea | = | Actual atmospheric vapor pressure e_a | (kPa) |
| S0 | = | Slope of saturation vapor pressure curve Delta | (kPa / deg C) |
| γ | = | Psychrometric constant gamma | (kPa / deg C) |
| soilheat_flux | = | Soil heat flux density G | (MJ / m² / day) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.fao56_net_radiation(et0: Union[float, int, Sequence[float], numpy.ndarray], temp_c: Union[float, int, Sequence[float], numpy.ndarray], wind_speed_2m: Union[float, int, Sequence[float], numpy.ndarray], es: Union[float, int, Sequence[float], numpy.ndarray], ea: Union[float, int, Sequence[float], numpy.ndarray], delta_slope: Union[float, int, Sequence[float], numpy.ndarray], psychrometric_gamma: Union[float, int, Sequence[float], numpy.ndarray], soil_heat_flux: Union[float, int, Sequence[float], numpy.ndarray] = 0.0) -> Union[float, numpy.ndarray]
Fao56 Penman Monteith
Calculates daily reference evapotranspiration ET_0 using the international FAO-56 Penman-Monteith equation.
| netradiation | = | Net radiation at the crop surface R_n | (MJ / m² / day) |
| tempc | = | Mean daily air temperature at 2 m height T | (deg C) |
| windspeed_2m | = | Mean daily wind speed at 2 m height u_2 | (m/s) |
| es | = | Mean saturation vapor pressure e_s | (kPa) |
| ea | = | Actual atmospheric vapor pressure e_a | (kPa) |
| S0 | = | Slope of saturation vapor pressure curve Delta | (kPa / deg C) |
| γ | = | Psychrometric constant gamma | (kPa / deg C) |
| soilheat_flux | = | Soil heat flux density G | (MJ / m² / day) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.fao56_penman_monteith(net_radiation: Union[float, int, Sequence[float], numpy.ndarray], temp_c: Union[float, int, Sequence[float], numpy.ndarray], wind_speed_2m: Union[float, int, Sequence[float], numpy.ndarray], es: Union[float, int, Sequence[float], numpy.ndarray], ea: Union[float, int, Sequence[float], numpy.ndarray], delta_slope: Union[float, int, Sequence[float], numpy.ndarray], psychrometric_gamma: Union[float, int, Sequence[float], numpy.ndarray], soil_heat_flux: Union[float, int, Sequence[float], numpy.ndarray] = 0.0) -> Union[float, numpy.ndarray]
Fuller Flood Q
Calculates design flood peak discharge using Fuller's empirical frequency relationship.
| A | = | Catchment drainage area A | (sq. mi) |
| returnperiod | = | Design recurrence interval / return period T | (years) |
| cf | = | Fuller's flood coefficient C_F | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.fuller_flood_q(area_sq_mi: Union[float, int, Sequence[float], numpy.ndarray], return_period: Union[float, int, Sequence[float], numpy.ndarray], c_f: Union[float, int, Sequence[float], numpy.ndarray] = 1.5) -> Union[float, numpy.ndarray]
Fuller Return Period
Inversion: Solves for return period T from known Fuller flood discharge.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Catchment drainage area A | (sq. mi) |
| cf | = | Fuller's flood coefficient C_F | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.fuller_return_period(discharge: Union[float, int, Sequence[float], numpy.ndarray], area_sq_mi: Union[float, int, Sequence[float], numpy.ndarray], c_f: Union[float, int, Sequence[float], numpy.ndarray] = 1.5) -> Union[float, numpy.ndarray]
Green Ampt Ponding Time
Calculates time to surface ponding tp under constant rainfall intensity using Green-Ampt theory.
| I | = | Design rainfall intensity I | (mm/hr) |
| conductivityk | = | Saturated hydraulic conductivity K | (mm/hr) |
| suctionpsi | = | Wetting front soil suction head psi | (mm) |
| moisturedeficit | = | Initial available soil moisture deficit Delta_theta | (dimensionless fraction) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.green_ampt_ponding_time(intensity: Union[float, int, Sequence[float], numpy.ndarray], conductivity_k: Union[float, int, Sequence[float], numpy.ndarray], suction_psi: Union[float, int, Sequence[float], numpy.ndarray], moisture_deficit: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Green Ampt Rate
Evaluates Green-Ampt physically-based infiltration rate based on wetting front matric suction head, moisture deficit, and saturated hydraulic conductivity.
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| H | = | Hydraulic head | (m) |
| moisturedeficit | = | Initial available soil moisture deficit Delta_theta | (dimensionless fraction) |
| y | = | Flow depth | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.green_ampt_rate(hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], suction_head: Union[float, int, Sequence[float], numpy.ndarray], moisture_deficit: Union[float, int, Sequence[float], numpy.ndarray], cumulative_depth: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Gringorten Plotting Position
Calculates empirical plotting position using Gringorten formula: P = (m - 0.44) / (N + 0.12).
| rank | = | Statistical order rank m (1 for largest flood) | (integer) |
| totalsamples | = | Total record length / sample size N | (integer count) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gringorten_plotting_position(rank: Union[float, int, Sequence[float], numpy.ndarray], total_samples: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]]
Gumbel Design Flood
Calculates design flood peak magnitude x_T = mean + K_T * std_dev.
| mean | = | Sample arithmetic mean of flood series | (m³/s) |
| stddev | = | Sample standard deviation of flood series | (m³/s) |
| returnperiod | = | Design recurrence interval / return period T | (years) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gumbel_design_flood(mean: Union[float, int, Sequence[float], numpy.ndarray], std_dev: Union[float, int, Sequence[float], numpy.ndarray], return_period: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Gumbel Flood Frequency
Computes design flood peak quantile X_T for return period T years using Gumbel's Extreme Value Type 1 (EV-1) probability distribution.
| samplemean | = | Input parameter | (SI units) |
| samplestd | = | Input parameter | (SI units) |
| returnperiod | = | Design recurrence interval / return period T | (years) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gumbel_flood_frequency(sample_mean: Union[float, int, Sequence[float], numpy.ndarray], sample_std: Union[float, int, Sequence[float], numpy.ndarray], return_period: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Gumbel Frequency Factor
Calculates Chow frequency factor K_T for Gumbel distribution.
| returnperiod | = | Design recurrence interval / return period T | (years) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gumbel_frequency_factor(return_period: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Gumbel Reduced Variate
Calculates Gumbel EV1 reduced variate y_T = -ln(-ln(1 - 1/T)).
| returnperiod | = | Design recurrence interval / return period T | (years) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gumbel_reduced_variate(return_period: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Gumbel Return Period
Inversion: Solves for return period T = 1 / (1 - exp(-exp(-y_T))).
| reducedvariate | = | Gumbel EV1 reduced variate y_T | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gumbel_return_period(reduced_variate: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Gumbel Return Period From Flood
Inversion: Back-calculates return period T from observed flood discharge magnitude.
| observedflood | = | Observed flood discharge magnitude x | (m³/s) |
| mean | = | Sample arithmetic mean of flood series | (m³/s) |
| stddev | = | Sample standard deviation of flood series | (m³/s) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.gumbel_return_period_from_flood(observed_flood: Union[float, int, Sequence[float], numpy.ndarray], mean: Union[float, int, Sequence[float], numpy.ndarray], std_dev: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hargreaves Et0
Hargreaves reference ET: ET_0 = 0.0023 * R_a * (T_mean + 17.8) * sqrt(T_max - T_min).
| tempmean_c | = | Mean air temperature T_mean | (deg C) |
| tempmax_c | = | Daily maximum air temperature T_max | (deg C) |
| tempmin_c | = | Daily minimum air temperature T_min | (deg C) |
| extraterrestrialradiation | = | Input parameter | (SI units) |
| Tp | = | Reference evapotranspiration | (mm/day) |
hydroaj.hydrology.hargreaves_et0(temp_mean_c: Union[float, int, Sequence[float], numpy.ndarray], temp_max_c: Union[float, int, Sequence[float], numpy.ndarray], temp_min_c: Union[float, int, Sequence[float], numpy.ndarray], extraterrestrial_radiation: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hargreaves Ra
Inversion: Extraterrestrial radiation R_a = ET_0 / (0.0023 * (T_mean + 17.8) * sqrt(T_max - T_min)).
| et0 | = | Reference evapotranspiration ET_0 | (mm/day) |
| tempmean_c | = | Mean air temperature T_mean | (deg C) |
| tempmax_c | = | Daily maximum air temperature T_max | (deg C) |
| tempmin_c | = | Daily minimum air temperature T_min | (deg C) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.hargreaves_ra(et0: Union[float, int, Sequence[float], numpy.ndarray], temp_mean_c: Union[float, int, Sequence[float], numpy.ndarray], temp_max_c: Union[float, int, Sequence[float], numpy.ndarray], temp_min_c: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hargreaves Ra
Inversion: Extraterrestrial radiation R_a = ET_0 / (0.0023 * (T_mean + 17.8) * sqrt(T_max - T_min)).
| et0 | = | Reference evapotranspiration ET_0 | (mm/day) |
| tempmean_c | = | Mean air temperature T_mean | (deg C) |
| tempmax_c | = | Daily maximum air temperature T_max | (deg C) |
| tempmin_c | = | Daily minimum air temperature T_min | (deg C) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.hargreaves_ra(et0: Union[float, int, Sequence[float], numpy.ndarray], temp_mean_c: Union[float, int, Sequence[float], numpy.ndarray], temp_max_c: Union[float, int, Sequence[float], numpy.ndarray], temp_min_c: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Hargreaves Samani Et0
Calculates reference crop evapotranspiration ET_0 (mm/day) using the temperature-based Hargreaves-Samani model suitable for data-sparse regions.
| extraterrestrialradiation | = | Input parameter | (SI units) |
| meantemp | = | Input parameter | (SI units) |
| maxtemp | = | Input parameter | (SI units) |
| mintemp | = | Input parameter | (SI units) |
| Tp | = | Reference evapotranspiration | (mm/day) |
hydroaj.hydrology.hargreaves_samani_et0(extraterrestrial_radiation: Union[float, int, Sequence[float], numpy.ndarray], mean_temp: Union[float, int, Sequence[float], numpy.ndarray], max_temp: Union[float, int, Sequence[float], numpy.ndarray], min_temp: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate Fc
Inversion: Steady infiltration capacity f_c = (f_p - f_0 * exp(-k*t)) / (1 - exp(-k*t)).
| ratefp | = | Input parameter | (SI units) |
| ratef0 | = | Input parameter | (SI units) |
| decayk | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_fc(rate_fp: Union[float, int, Sequence[float], numpy.ndarray], rate_f0: Union[float, int, Sequence[float], numpy.ndarray], decay_k: Union[float, int, Sequence[float], numpy.ndarray], time_t: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Cumulative
Horton cumulative infiltration: F = f_c * t + ((f_0 - f_c) / k) * (1 - exp(-k * t)).
| t | = | Elapsed infiltration or pumping time t | (hours) |
| initialcapacity | = | Initial Horton infiltration capacity f_0 | (mm/hr) |
| steadycapacity | = | Ultimate steady infiltration capacity f_c | (mm/hr) |
| decayconstant | = | Horton recession decay constant k | (1/hr) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_cumulative(time: Union[float, int, Sequence[float], numpy.ndarray], initial_capacity: Union[float, int, Sequence[float], numpy.ndarray], steady_capacity: Union[float, int, Sequence[float], numpy.ndarray], decay_constant: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate K
Analytically isolates Horton's decay constant k from observed infiltration capacity f_p at time t.
| ratefp | = | Input parameter | (SI units) |
| ratef0 | = | Input parameter | (SI units) |
| ratefc | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_k(rate_fp: Union[float, int, Sequence[float], numpy.ndarray], rate_f0: Union[float, int, Sequence[float], numpy.ndarray], rate_fc: Union[float, int, Sequence[float], numpy.ndarray], time_t: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate F0
Inversion: Initial infiltration rate f_0 = f_c + (f_p - f_c) * exp(k * t).
| ratefp | = | Input parameter | (SI units) |
| ratefc | = | Input parameter | (SI units) |
| decayk | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_f0(rate_fp: Union[float, int, Sequence[float], numpy.ndarray], rate_fc: Union[float, int, Sequence[float], numpy.ndarray], decay_k: Union[float, int, Sequence[float], numpy.ndarray], time_t: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate
Horton infiltration rate: f_p = f_c + (f_0 - f_c) * exp(-k * t).
| t | = | Elapsed infiltration or pumping time t | (hours) |
| initialcapacity | = | Initial Horton infiltration capacity f_0 | (mm/hr) |
| steadycapacity | = | Ultimate steady infiltration capacity f_c | (mm/hr) |
| decayconstant | = | Horton recession decay constant k | (1/hr) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate(time: Union[float, int, Sequence[float], numpy.ndarray], initial_capacity: Union[float, int, Sequence[float], numpy.ndarray], steady_capacity: Union[float, int, Sequence[float], numpy.ndarray], decay_constant: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate F0
Inversion: Initial infiltration rate f_0 = f_c + (f_p - f_c) * exp(k * t).
| ratefp | = | Input parameter | (SI units) |
| ratefc | = | Input parameter | (SI units) |
| decayk | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_f0(rate_fp: Union[float, int, Sequence[float], numpy.ndarray], rate_fc: Union[float, int, Sequence[float], numpy.ndarray], decay_k: Union[float, int, Sequence[float], numpy.ndarray], time_t: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate Fc
Inversion: Steady infiltration capacity f_c = (f_p - f_0 * exp(-k*t)) / (1 - exp(-k*t)).
| ratefp | = | Input parameter | (SI units) |
| ratef0 | = | Input parameter | (SI units) |
| decayk | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_fc(rate_fp: Union[float, int, Sequence[float], numpy.ndarray], rate_f0: Union[float, int, Sequence[float], numpy.ndarray], decay_k: Union[float, int, Sequence[float], numpy.ndarray], time_t: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate Fp
Evaluates Horton's infiltration capacity rate f_p at time t.
| initialcapacity | = | Initial Horton infiltration capacity f_0 | (mm/hr) |
| steadycapacity | = | Ultimate steady infiltration capacity f_c | (mm/hr) |
| decayconstant | = | Horton recession decay constant k | (1/hr) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_fp(initial_capacity: Union[float, int, Sequence[float], numpy.ndarray], steady_capacity: Union[float, int, Sequence[float], numpy.ndarray], decay_constant: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Horton Rate K
Analytically isolates Horton's decay constant k from observed infiltration capacity f_p at time t.
| ratefp | = | Input parameter | (SI units) |
| ratef0 | = | Input parameter | (SI units) |
| ratefc | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.horton_rate_k(rate_fp: Union[float, int, Sequence[float], numpy.ndarray], rate_f0: Union[float, int, Sequence[float], numpy.ndarray], rate_fc: Union[float, int, Sequence[float], numpy.ndarray], time_t: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Idf Sherman
Sherman intensity-duration-frequency (IDF) empirical relation estimating design storm rainfall intensity i as a function of storm duration t_d.
| duration | = | Rainfall storm duration t_d | (hours) |
| a | = | Input parameter | (SI units) |
| b | = | Input parameter | (SI units) |
| c | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.idf_sherman(duration: Union[float, int, Sequence[float], numpy.ndarray], a: Union[float, int, Sequence[float], numpy.ndarray], b: Union[float, int, Sequence[float], numpy.ndarray], c: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Inglis Area
Inversion: Solves for catchment area A algebraically from known Inglis discharge.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.inglis_area(discharge: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Inglis Q
Calculates maximum flood discharge Q using Inglis' formula for fan-shaped catchments.
| A | = | Catchment watershed drainage area A | (km²) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.inglis_q(area_km2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Kerby L
Inversion: Solves for length L from known Kerby time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Roughness coefficient n | s/m1/3 (or Kerby retardance) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydrology.kerby_l(tc: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness_n: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kerby N
Inversion: Solves for Kerby retardance roughness n from known time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Roughness coefficient | (s/m1/3 or dimensionless) |
hydroaj.hydrology.kerby_n(tc: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kerby S
Inversion: Solves for slope S from known Kerby time of concentration.
| Tc | = | Time of concentration T_c | (minutes) |
| L | = | Reach / conduit / flow path length L | (m) |
| n | = | Roughness coefficient n | s/m1/3 (or Kerby retardance) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.kerby_s(tc: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], roughness_n: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kerby Tc
Calculates overland sheet flow time of concentration Tc using the Kerby-Hathaway equation.
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| n | = | Roughness coefficient n | s/m1/3 (or Kerby retardance) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.hydrology.kerby_tc(length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], roughness_n: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kirpich L
Inversion: Flow path length L = (t_c * S^0.385 / k)^(1 / 0.77).
| Tc | = | Time parameter | (hours) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydrology.kirpich_l(time_of_concentration_min: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kirpich L
Inversion: Flow path length L = (t_c * S^0.385 / k)^(1 / 0.77).
| Tc | = | Time parameter | (hours) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.hydrology.kirpich_l(time_of_concentration_min: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kirpich S
Inversion: Watershed slope S = (k * L^0.77 / t_c)^(1 / 0.385).
| Tc | = | Time parameter | (hours) |
| Q | = | Length | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.kirpich_s(time_of_concentration_min: Union[float, int, Sequence[float], numpy.ndarray], flow_length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kirpich S
Inversion: Watershed slope S = (k * L^0.77 / t_c)^(1 / 0.385).
| Tc | = | Time parameter | (hours) |
| Q | = | Length | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.kirpich_s(time_of_concentration_min: Union[float, int, Sequence[float], numpy.ndarray], flow_length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kirpich Time of Concentration Formulation
Kirpich time of concentration t_c (in minutes):.
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.hydrology.kirpich_tc(length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Kostiakov Cumulative
Calculates cumulative infiltration depth using Kostiakov's power equation.
| t | = | Elapsed infiltration or pumping time t | (hours) |
| acoeff | = | Kostiakov empirical infiltration coefficient a | (dimensionless or mm/hr^b) |
| bexponent | = | Kostiakov infiltration exponent b | dimensionless (0 < b < 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.kostiakov_cumulative(time: Union[float, int, Sequence[float], numpy.ndarray], a_coeff: Union[float, int, Sequence[float], numpy.ndarray], b_exponent: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Kostiakov Rate
Calculates infiltration capacity rate using Kostiakov's empirical equation (Kostiakov, 1932).
| t | = | Elapsed infiltration or pumping time t | (hours) |
| acoeff | = | Kostiakov empirical infiltration coefficient a | (dimensionless or mm/hr^b) |
| bexponent | = | Kostiakov infiltration exponent b | dimensionless (0 < b < 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.kostiakov_rate(time: Union[float, int, Sequence[float], numpy.ndarray], a_coeff: Union[float, int, Sequence[float], numpy.ndarray], b_exponent: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Kostiakov Time
Inversion: Solves for elapsed time t = (F / a)^(1 / b).
| cumulativef | = | Cumulative infiltrated water volume F | (mm) |
| acoeff | = | Kostiakov empirical infiltration coefficient a | (dimensionless or mm/hr^b) |
| bexponent | = | Kostiakov infiltration exponent b | dimensionless (0 < b < 1) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.kostiakov_time(cumulative_f: Union[float, int, Sequence[float], numpy.ndarray], a_coeff: Union[float, int, Sequence[float], numpy.ndarray], b_exponent: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Log Pearson 3 Flood
Calculates design flood using Log-Pearson Type III distribution (USGS Bulletin 17C standard).
| logmean | = | Mean of base-10 logarithms of flood peaks | log10(m³/s) |
| logstd_dev | = | Standard deviation of base-10 logarithms | log10(m³/s) |
| skewness | = | Station skewness coefficient G | (-) |
| returnperiod | = | Design recurrence interval / return period T | (years) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.log_pearson_3_flood(log_mean: Union[float, int, Sequence[float], numpy.ndarray], log_std_dev: Union[float, int, Sequence[float], numpy.ndarray], skewness: Union[float, int, Sequence[float], numpy.ndarray], return_period: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Muskingum Coefficients
Derives Muskingum linear flood routing coefficients C_0, C_1, C_2 based on reach travel time K, attenuation factor X, and routing interval dt.
| t | = | Time parameter | (hours) |
| weightingfactor_x | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.muskingum_coefficients(travel_time_k: Union[float, int, Sequence[float], numpy.ndarray], weighting_factor_x: Union[float, int, Sequence[float], numpy.ndarray], time_step_dt: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], ...]
Muskingum Cunge Parameters
Calculates physically-based Muskingum-Cunge routing parameters: wave celerity c, travel time K, and weighting factor X.
| L | = | Reach / conduit / flow path length L | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| b | = | Channel base width b | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| n | = | Roughness coefficient n | s/m1/3 (or Kerby retardance) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.muskingum_cunge_parameters(length: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], bottom_width: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], roughness_n: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Tuple[Union[float, numpy.ndarray], ...]
Muskingum Route
Routes an inflow hydrograph series through a reach using Muskingum equation:.
| Q | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| weightingfactor_x | = | Input parameter | (SI units) |
| t | = | Time parameter | (hours) |
| Q | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.muskingum_route(inflow: Union[float, int, Sequence[float], numpy.ndarray], travel_time_k: Union[float, int, Sequence[float], numpy.ndarray], weighting_factor_x: Union[float, int, Sequence[float], numpy.ndarray], time_step_dt: Union[float, int, Sequence[float], numpy.ndarray], initial_outflow: Union[float, int, Sequence[float], numpy.ndarray] = None) -> numpy.ndarray
Nash Cascade Iuh
Generates Instantaneous Unit Hydrograph (IUH) ordinates u(t) modeling catchment routing through a cascade of n linear reservoirs each with storage delay K.
| t | = | Elapsed infiltration or pumping time t | (hours) |
| numberreservoirs | = | Input parameter | (SI units) |
| storageconstant | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.nash_cascade_iuh(time: Union[float, int, Sequence[float], numpy.ndarray], number_reservoirs: Union[float, int, Sequence[float], numpy.ndarray], storage_constant: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Nawab Jung Area
Inversion: Solves for drainage area A = (Q / C_N)^(6/5).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| cn | = | Nawab Jung coefficient C_N | dimensionless (48.0 - 60.0) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.nawab_jung_area(discharge: Union[float, int, Sequence[float], numpy.ndarray], c_n: Union[float, int, Sequence[float], numpy.ndarray] = 48.0) -> Union[float, numpy.ndarray]
Nawab Jung Cn
Inversion: Solves for Nawab Jung coefficient C_N = Q / A^(5/6).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Catchment watershed drainage area A | (km²) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.nawab_jung_cn(discharge: Union[float, int, Sequence[float], numpy.ndarray], area_km2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Nawab Jung Q
Calculates maximum flood discharge Q using Nawab Jung Bahadur formula (Deccan plateau).
| A | = | Catchment watershed drainage area A | (km²) |
| cn | = | Nawab Jung coefficient C_N | dimensionless (48.0 - 60.0) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.nawab_jung_q(area_km2: Union[float, int, Sequence[float], numpy.ndarray], c_n: Union[float, int, Sequence[float], numpy.ndarray] = 48.0) -> Union[float, numpy.ndarray]
Net Radiation Equivalent Evap
Converts net solar and terrestrial radiation R_n (MJ/m^2/day) into equivalent depth of water evaporated (mm/day) using latent heat of vaporization.
| netradiation_mj | = | Input parameter | (SI units) |
| latentheat_vaporization | = | Input parameter | (SI units) |
| ρ | = | Input parameter | (SI units) |
| Tp | = | Reference evapotranspiration | (mm/day) |
hydroaj.hydrology.net_radiation_equivalent_evap(net_radiation_mj: Union[float, int, Sequence[float], numpy.ndarray], latent_heat_vaporization: Union[float, int, Sequence[float], numpy.ndarray] = 2450000.0, water_density: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0) -> Union[float, numpy.ndarray]
Philip Cumulative
Calculates cumulative infiltration depth F(t) using Philip's Two-Term equation.
| t | = | Elapsed infiltration or pumping time t | (hours) |
| sorptivity | = | Philip's soil sorptivity parameter S | (mm / hr^0.5) |
| T | = | Philip's transmissivity factor A | (mm/hr) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.philip_cumulative(time: Union[float, int, Sequence[float], numpy.ndarray], sorptivity: Union[float, int, Sequence[float], numpy.ndarray], transmissivity_a: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Philip Rate
Calculates infiltration capacity fp(t) using Philip's Two-Term infiltration model (Philip, 1957).
| t | = | Elapsed infiltration or pumping time t | (hours) |
| sorptivity | = | Philip's soil sorptivity parameter S | (mm / hr^0.5) |
| T | = | Philip's transmissivity factor A | (mm/hr) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.philip_rate(time: Union[float, int, Sequence[float], numpy.ndarray], sorptivity: Union[float, int, Sequence[float], numpy.ndarray], transmissivity_a: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Philip Sorptivity
Inversion: Solves for soil sorptivity S = (F - A * t) / sqrt(t).
| cumulativef | = | Cumulative infiltrated water volume F | (mm) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| T | = | Philip's transmissivity factor A | (mm/hr) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.philip_sorptivity(cumulative_f: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray], transmissivity_a: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Priestley Taylor Et
Calculates radiation-driven potential evapotranspiration using the Priestley-Taylor equation (1972).
| netradiation | = | Net radiation at the crop surface R_n | (MJ / m² / day) |
| tempc | = | Mean daily air temperature at 2 m height T | (deg C) |
| S0 | = | Slope of saturation vapor pressure curve Delta | (kPa / deg C) |
| γ | = | Psychrometric constant gamma | (kPa / deg C) |
| alpha | = | Priestley-Taylor radiation coefficient alpha | dimensionless (~1.26) |
| soilheat_flux | = | Soil heat flux density G | (MJ / m² / day) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.priestley_taylor_et(net_radiation: Union[float, int, Sequence[float], numpy.ndarray], temp_c: Union[float, int, Sequence[float], numpy.ndarray], delta_slope: Union[float, int, Sequence[float], numpy.ndarray], psychrometric_gamma: Union[float, int, Sequence[float], numpy.ndarray], alpha: Union[float, int, Sequence[float], numpy.ndarray] = 1.26, soil_heat_flux: Union[float, int, Sequence[float], numpy.ndarray] = 0.0) -> Union[float, numpy.ndarray]
Rational Method: Catchment Area Inversion
Calculates required catchment drainage area A for a specified design discharge Q, intensity I, and runoff coefficient C.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| I | = | Design rainfall intensity I | (mm/hr) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.rational_a(discharge: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], intensity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Runoff Coefficient Inversion
Inverts Rational formula to calculate effective watershed runoff coefficient C from observed peak flow rate Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| I | = | Design rainfall intensity I | (mm/hr) |
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.rational_c(discharge: Union[float, int, Sequence[float], numpy.ndarray], intensity: Union[float, int, Sequence[float], numpy.ndarray], drainage_area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Catchment Area Inversion
Calculates required catchment drainage area A for a specified design discharge Q, intensity I, and runoff coefficient C.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| I | = | Design rainfall intensity I | (mm/hr) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.rational_a(discharge: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], intensity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Rainfall Intensity Inversion
Inversion: Rainfall intensity i = Q / (k * C * A).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.rational_i(discharge: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], drainage_area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Rainfall Intensity Inversion
Inversion: Rainfall intensity i = Q / (k * C * A).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| runoffcoeff | = | Rational runoff coefficient C | dimensionless (0.05 - 0.95) |
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.rational_i(discharge: Union[float, int, Sequence[float], numpy.ndarray], runoff_coeff: Union[float, int, Sequence[float], numpy.ndarray], drainage_area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Peak Runoff Discharge
Estimates peak stormwater runoff rate from urban and small catchments.
| C | = | Input parameter | (-) |
| I | = | Design rainfall intensity I | (mm/hr) |
| A | = | Cross-sectional flow area A | (m²) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.rational_peak_flow(runoff_coefficient: Union[float, int, Sequence[float], numpy.ndarray], intensity: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Peak Runoff Discharge
Estimates peak stormwater runoff rate from urban and small catchments.
| C | = | Input parameter | (-) |
| I | = | Design rainfall intensity I | (mm/hr) |
| A | = | Cross-sectional flow area A | (m²) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.rational_peak_flow(runoff_coefficient: Union[float, int, Sequence[float], numpy.ndarray], intensity: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Rational Method: Runoff Coefficient Inversion
Inverts Rational formula to calculate effective watershed runoff coefficient C from observed peak flow rate Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| I | = | Design rainfall intensity I | (mm/hr) |
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.rational_c(discharge: Union[float, int, Sequence[float], numpy.ndarray], intensity: Union[float, int, Sequence[float], numpy.ndarray], drainage_area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Ryves Area
Inversion: Solves for drainage area A = (Q / C_R)^(3/2).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| cr | = | Ryves' flood coefficient C_R | dimensionless (6.8 - 10.2) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.ryves_area(discharge: Union[float, int, Sequence[float], numpy.ndarray], c_r: Union[float, int, Sequence[float], numpy.ndarray] = 8.5) -> Union[float, numpy.ndarray]
Ryves Cr
Inversion: Solves for Ryves' coefficient C_R = Q / A^(2/3).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Catchment watershed drainage area A | (km²) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.ryves_cr(discharge: Union[float, int, Sequence[float], numpy.ndarray], area_km2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Ryves Q
Calculates maximum flood peak discharge Q using Ryves' formula (South India / flat plateau standard).
| A | = | Catchment watershed drainage area A | (km²) |
| cr | = | Ryves' flood coefficient C_R | dimensionless (6.8 - 10.2) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.ryves_q(area_km2: Union[float, int, Sequence[float], numpy.ndarray], c_r: Union[float, int, Sequence[float], numpy.ndarray] = 8.5) -> Union[float, numpy.ndarray]
Saturation Vapor Pressure
Calculates saturation vapor pressure e_s(T) using the standard FAO-56 Tetens equation.
| tempc | = | Mean daily air temperature at 2 m height T | (deg C) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.saturation_vapor_pressure(temp_c: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Cn Amc I
Adjusts Curve Number from average antecedent moisture condition (AMC II) to dry condition (AMC I, 5-day prior rainfall < 13 mm).
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_cn_amc_i(curve_number_amc2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Amc Cnii From I
Inversion: Normal condition CN_II from dry condition CN_I.
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_amc_cnii_from_i(cn_i: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Amc Cnii From Iii
Inversion: Normal condition CN_II from wet condition CN_III.
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_amc_cnii_from_iii(cn_iii: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Cn Amc Iii
Adjusts Curve Number from average antecedent moisture condition (AMC II) to saturated wet condition (AMC III, 5-day prior rainfall > 28 mm).
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_cn_amc_iii(curve_number_amc2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Cn Amc I
Adjusts Curve Number from average antecedent moisture condition (AMC II) to dry condition (AMC I, 5-day prior rainfall < 13 mm).
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_cn_amc_i(curve_number_amc2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Cn Amc Iii
Adjusts Curve Number from average antecedent moisture condition (AMC II) to saturated wet condition (AMC III, 5-day prior rainfall > 28 mm).
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_cn_amc_iii(curve_number_amc2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Cn Cn
Inverts retention formula to back-calculate NRCS Curve Number CN from calibrated retention parameter S.
| S | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.scs_cn_cn(potential_retention: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Amc Cnii From I
Inversion: Normal condition CN_II from dry condition CN_I.
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_amc_cnii_from_i(cn_i: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Amc Cnii From Iii
Inversion: Normal condition CN_II from wet condition CN_III.
| CN | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_amc_cnii_from_iii(cn_iii: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Cn P
Exact analytical quadratic inversion of the NRCS Curve Number equation solving for required rainfall depth P that produces runoff depth Q.
| y | = | Flow depth | (m) |
| S | = | Input parameter | (SI units) |
| Ia | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_cn_p(runoff_depth: Union[float, int, Sequence[float], numpy.ndarray], potential_retention: Union[float, int, Sequence[float], numpy.ndarray], initial_abstraction_ratio: Union[float, int, Sequence[float], numpy.ndarray] = 0.2) -> Union[float, numpy.ndarray]
SCS Runoff Curve Number Formulation
Calculates cumulative storm runoff volume depth from rainfall and curve number.
| precip | = | Input parameter | (SI units) |
| S | = | Potential maximum soil retention S | (mm) |
| lambdaratio | = | Input parameter | (SI units) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydrology.scs_runoff_depth(precip: Union[float, int, Sequence[float], numpy.ndarray], retention: Union[float, int, Sequence[float], numpy.ndarray], lambda_ratio: Union[float, int, Sequence[float], numpy.ndarray] = 0.2) -> Union[float, numpy.ndarray]
SCS Retention
SCS Potential Maximum Retention S:.
| CN | = | SCS Runoff Curve Number CN | dimensionless (30 - 100) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_retention(curve_number: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Composite Cn
Calculates area-weighted composite NRCS Runoff Curve Number across heterogeneous land uses, soil complexes, and hydrologic conditions.
| A | = | Area | (m²) |
| CN | = | Input parameter | (SI units) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.scs_composite_cn(subareas: Union[float, int, Sequence[float], numpy.ndarray], curve_numbers: Union[float, int, Sequence[float], numpy.ndarray]) -> float
SCS Cn Cn
Inverts retention formula to back-calculate NRCS Curve Number CN from calibrated retention parameter S.
| S | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.hydrology.scs_cn_cn(potential_retention: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Lag Time
Calculates SCS basin lag time t_L = 0.6 * T_c.
| Tc | = | Time of concentration T_c | (minutes) |
| Tp | = | Time parameter | (hours) |
hydroaj.hydrology.scs_lag_time(tc: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Peak Flow
SCS Dimensionless Unit Hydrograph peak discharge:.
| A | = | Cross-sectional flow area A | (m²) |
| Tp | = | Time to hydrograph peak T_p | (hours) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_peak_flow(area: Union[float, int, Sequence[float], numpy.ndarray], time_to_peak: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Cn P
Exact analytical quadratic inversion of the NRCS Curve Number equation solving for required rainfall depth P that produces runoff depth Q.
| y | = | Flow depth | (m) |
| S | = | Input parameter | (SI units) |
| Ia | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_cn_p(runoff_depth: Union[float, int, Sequence[float], numpy.ndarray], potential_retention: Union[float, int, Sequence[float], numpy.ndarray], initial_abstraction_ratio: Union[float, int, Sequence[float], numpy.ndarray] = 0.2) -> Union[float, numpy.ndarray]
SCS Retention
SCS Potential Maximum Retention S:.
| CN | = | SCS Runoff Curve Number CN | dimensionless (30 - 100) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_retention(curve_number: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Runoff Curve Number Formulation
Calculates cumulative storm runoff volume depth from rainfall and curve number.
| precip | = | Input parameter | (SI units) |
| S | = | Potential maximum soil retention S | (mm) |
| lambdaratio | = | Input parameter | (SI units) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.hydrology.scs_runoff_depth(precip: Union[float, int, Sequence[float], numpy.ndarray], retention: Union[float, int, Sequence[float], numpy.ndarray], lambda_ratio: Union[float, int, Sequence[float], numpy.ndarray] = 0.2) -> Union[float, numpy.ndarray]
SCS Unit Hydrograph Time to Peak
Calculates time to peak T_p = 0.5 * D + t_L.
| tr | = | Excess rainfall storm duration D | (hours) |
| TL | = | Basin lag time t_L | (hours) |
| Tp | = | Time parameter | (hours) |
hydroaj.hydrology.scs_time_to_peak(rainfall_duration: Union[float, int, Sequence[float], numpy.ndarray], lag_time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
SCS Uh Area
Inversion: Solves for drainage area A = (q_p * T_p) / k.
| Q | = | Hydrograph peak discharge Q_p | (m³/s) |
| Tp | = | Time to hydrograph peak T_p | (hours) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.hydrology.scs_uh_area(discharge_peak: Union[float, int, Sequence[float], numpy.ndarray], time_to_peak: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Uh Tp
Inversion: Solves for time to peak T_p = (k * A) / q_p.
| Q | = | Hydrograph peak discharge Q_p | (m³/s) |
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.scs_uh_tp(discharge_peak: Union[float, int, Sequence[float], numpy.ndarray], drainage_area: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
SCS Unit Hydrograph Peak
Calculates peak discharge qp of the SCS / NRCS Dimensionless Unit Hydrograph.
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| Tp | = | Time to hydrograph peak T_p | (hours) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.scs_unit_hydrograph_peak(drainage_area: Union[float, int, Sequence[float], numpy.ndarray], time_to_peak: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Snyder
Snyder's synthetic unit hydrograph parameters:.
| L | = | Length | (m) |
| L | = | Channel length to basin centroid L_c | (km) |
| A | = | Cross-sectional flow area A | (m²) |
| ct | = | Snyder's basin lag coefficient C_t | dimensionless (1.0 - 2.2) |
| cp | = | Snyder's peak coefficient C_p | dimensionless (0.4 - 0.8) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.snyder(basin_length: Union[float, int, Sequence[float], numpy.ndarray], length_to_centroid: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], c_t: Union[float, int, Sequence[float], numpy.ndarray] = 1.5, c_p: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]]
Snyder Hydrograph Widths
Calculates USACE Snyder unit hydrograph widths at 50% and 75% of peak discharge.
| unitpeak_q | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.snyder_hydrograph_widths(unit_peak_q: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]]
Snyder Lag Time
Calculates Snyder's unit hydrograph basin lag time tp.
| L | = | Reach / conduit / flow path length L | (m) |
| L | = | Channel length to basin centroid L_c | (km) |
| ct | = | Snyder's basin lag coefficient C_t | dimensionless (1.0 - 2.2) |
| Tp | = | Time parameter | (hours) |
hydroaj.hydrology.snyder_lag_time(length: Union[float, int, Sequence[float], numpy.ndarray], length_to_centroid: Union[float, int, Sequence[float], numpy.ndarray], c_t: Union[float, int, Sequence[float], numpy.ndarray] = 1.5) -> Union[float, numpy.ndarray]
Snyder Peak Discharge
Calculates Snyder's unit hydrograph peak discharge Qp.
| A | = | Catchment drainage area A | km² (or ha for Rational) |
| TL | = | Basin lag time t_L | (hours) |
| cp | = | Snyder's peak coefficient C_p | dimensionless (0.4 - 0.8) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.hydrology.snyder_peak_discharge(drainage_area: Union[float, int, Sequence[float], numpy.ndarray], lag_time: Union[float, int, Sequence[float], numpy.ndarray], c_p: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Thiessen Areal
Thiessen polygon areal weighted mean rainfall:.
| weights | = | Input parameter | (SI units) |
| precip | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.thiessen_areal(weights: Union[float, int, Sequence[float], numpy.ndarray], precip: Union[float, int, Sequence[float], numpy.ndarray]) -> float
Time Area Runoff Step
Evaluates direct surface runoff discharge Q_j via time-area convolution between hyetograph excess rainfall intensities and watershed travel-time isochrones.
| effectiveexcess_precip | = | Input parameter | (SI units) |
| A | = | Area | (m²) |
| unitconversion | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.time_area_runoff_step(effective_excess_precip: Union[float, int, Sequence[float], numpy.ndarray], isochrone_subarea: Union[float, int, Sequence[float], numpy.ndarray], unit_conversion: Union[float, int, Sequence[float], numpy.ndarray] = 0.278) -> float
TR-55 Channel Tc
Calculates channel flow travel time Tt = L / (60 * V) [Tt in min].
| L | = | Reach / conduit / flow path length L | (m) |
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| Tp | = | Time parameter | (minutes) |
hydroaj.hydrology.tr55_channel_tc(length: Union[float, int, Sequence[float], numpy.ndarray], velocity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
TR-55 Composite Tc
Calculates total catchment time of concentration Tc = T_sheet + T_shallow + T_channel [min].
| tsheet | = | Sheet flow travel time | (minutes) |
| tshallow | = | Shallow concentrated flow travel time | (minutes) |
| tchannel | = | Open channel reach travel time | (minutes) |
| Tp | = | Time parameter | (minutes) |
hydroaj.hydrology.tr55_composite_tc(t_sheet: Union[float, int, Sequence[float], numpy.ndarray], t_shallow: Union[float, int, Sequence[float], numpy.ndarray], t_channel: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
TR-55 Shallow Concentrated Velocity
Estimates average shallow concentrated flow velocity V across unpaved (k=16.13) or paved (k=20.33) rills and gullies according to TR-55.
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| surfacecoeff | = | Input parameter | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydrology.tr55_shallow_concentrated_velocity(land_slope: Union[float, int, Sequence[float], numpy.ndarray], surface_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 16.1345) -> Union[float, numpy.ndarray]
TR-55 Shallow S
Inversion: Ground slope S = (V / k)^2.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| surfacecoeff | = | Input parameter | (-) |
| surfacetype | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.tr55_shallow_s(velocity: Union[float, int, Sequence[float], numpy.ndarray], surface_coeff: Union[float, int, Sequence[float], numpy.ndarray] = None, surface_type: Union[float, int, Sequence[float], numpy.ndarray] = 'unpaved', system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
TR-55 Shallow S
Inversion: Ground slope S = (V / k)^2.
| V | = | Mean cross-sectional flow velocity V | (m/s) |
| surfacecoeff | = | Input parameter | (-) |
| surfacetype | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.tr55_shallow_s(velocity: Union[float, int, Sequence[float], numpy.ndarray], surface_coeff: Union[float, int, Sequence[float], numpy.ndarray] = None, surface_type: Union[float, int, Sequence[float], numpy.ndarray] = 'unpaved', system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
TR-55 Shallow V
TR-55 shallow concentrated flow velocity: V = k * sqrt(S).
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| surfacecoeff | = | Input parameter | (-) |
| surfacetype | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.hydrology.tr55_shallow_v(slope: Union[float, int, Sequence[float], numpy.ndarray], surface_coeff: Union[float, int, Sequence[float], numpy.ndarray] = None, surface_type: Union[float, int, Sequence[float], numpy.ndarray] = 'unpaved', system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
TR-55 Sheet Flow Time
Computes sheet flow travel time T_t (hours) for overland flow lengths up to 300 ft using the USDA-NRCS TR-55 Manning kinematic equation.
| n | = | Input parameter | (SI units) |
| Q | = | Length | (m) |
| twoyear_24hr_precip | = | Input parameter | (SI units) |
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.tr55_sheet_flow_time(sheet_roughness: Union[float, int, Sequence[float], numpy.ndarray], flow_length: Union[float, int, Sequence[float], numpy.ndarray], two_year_24hr_precip: Union[float, int, Sequence[float], numpy.ndarray], land_slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Vapor Pressure Slope
Calculates the slope of the saturation vapor pressure curve Delta = d(e_s)/dT [kPa / deg C].
| tempc | = | Mean daily air temperature at 2 m height T | (deg C) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.hydrology.vapor_pressure_slope(temp_c: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Weibull Plotting Position
Calculates empirical exceedance probability P and return period T using Weibull plotting position: P = m / (N + 1).
| rank | = | Statistical order rank m (1 for largest flood) | (integer) |
| totalsamples | = | Total record length / sample size N | (integer count) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.hydrology.weibull_plotting_position(rank: Union[float, int, Sequence[float], numpy.ndarray], total_samples: Union[float, int, Sequence[float], numpy.ndarray]) -> Tuple[Union[float, numpy.ndarray], Union[float, numpy.ndarray]]
3. Hydraulic Control Structures & Regulators
Discharge rating for sharp-crested and broad-crested weirs, flow regulation via sluice gates, critical flumes, and stilling basins. Total verified routines: 59 functions.
import hydroaj.structures as st
# 1. Francis Rectangular Sharp-Crested Weir with 2 End Contractions (L = 4.5 m, H = 0.60 m)
Q_weir = st.francis_weir(length=4.5, head=0.60, end_contractions=2)
print(f"Francis Rectangular Weir Discharge: {Q_weir:.3f} m³/s")
# 2. 90-Degree Triangular V-Notch Weir (H = 0.45 m, Cd = 0.585)
Q_vnotch = st.v_notch_weir_90(head=0.45, discharge_coefficient=0.585)
print(f"90° V-Notch Weir Discharge: {Q_vnotch:.4f} m³/s")
# 3. Sluice Gate Free Flow Discharge (b = 3.0 m, a = 0.50 m, H = 2.8 m)
Q_gate = st.sluice_gate_free(gate_opening=0.50, upstream_depth=2.8, channel_width=3.0)
print(f"Sluice Gate Discharge: {Q_gate:.3f} m³/s")
Broad Crested Weir
Calculates discharge across a broad-crested weir operating under critical flow condition over the horizontal weir crest.
| L | = | Reach / conduit / flow path length L | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.broad_crested_weir(length: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.848, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Broad Crested Weir L
Inversion: Weir crest length b = Q / (C_d * sqrt(g) * (2/3)^1.5 * H^1.5).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.broad_crested_weir_l(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.848, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Broad Crested Weir H
Inversion: Upstream head H = (Q / (C_d * b * sqrt(g) * (2/3)^1.5))^(2/3).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| L | = | Reach / conduit / flow path length L | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.broad_crested_weir_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.848, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Broad Crested Weir H
Inversion: Upstream head H = (Q / (C_d * b * sqrt(g) * (2/3)^1.5))^(2/3).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| L | = | Reach / conduit / flow path length L | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.broad_crested_weir_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.848, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Broad Crested Weir L
Inversion: Weir crest length b = Q / (C_d * sqrt(g) * (2/3)^1.5 * H^1.5).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.broad_crested_weir_l(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.848, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Broad Crested Weir
Calculates discharge across a broad-crested weir operating under critical flow condition over the horizontal weir crest.
| L | = | Reach / conduit / flow path length L | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.broad_crested_weir(length: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.848, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Chute Velocity Z
Inversion: Bed elevation Z = Z_0 - (V^2 - V_0^2) / (2 * g).
| V | = | Flow velocity | (m/s) |
| V1 | = | Flow velocity | (m/s) |
| initialelevation | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.structures.chute_velocity_z(terminal_velocity: Union[float, int, Sequence[float], numpy.ndarray], initial_velocity: Union[float, int, Sequence[float], numpy.ndarray], initial_elevation: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Chute Terminal Velocity
Calculates flow velocity V at the toe of a spillway chute from gross elevation drop Z_drop accounting for boundary friction and aeration head loss.
| totalfall | = | Input parameter | (SI units) |
| hf | = | Energy friction head loss h_f | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.structures.chute_terminal_velocity(total_fall: Union[float, int, Sequence[float], numpy.ndarray], head_loss: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Chute Terminal Velocity
Calculates flow velocity V at the toe of a spillway chute from gross elevation drop Z_drop accounting for boundary friction and aeration head loss.
| totalfall | = | Input parameter | (SI units) |
| hf | = | Energy friction head loss h_f | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.structures.chute_terminal_velocity(total_fall: Union[float, int, Sequence[float], numpy.ndarray], head_loss: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Chute Velocity Z
Inversion: Bed elevation Z = Z_0 - (V^2 - V_0^2) / (2 * g).
| V | = | Flow velocity | (m/s) |
| V1 | = | Flow velocity | (m/s) |
| initialelevation | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.structures.chute_velocity_z(terminal_velocity: Union[float, int, Sequence[float], numpy.ndarray], initial_velocity: Union[float, int, Sequence[float], numpy.ndarray], initial_elevation: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Cipoletti Weir H
Inversion: Solves for head H = (Q / (k * L))^(2/3).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| L | = | Reach / conduit / flow path length L | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.cipoletti_weir_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], length: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Cipoletti Weir L
Inversion: Solves for required Cipoletti crest length L = Q / (k * H^1.5).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.cipoletti_weir_l(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Cipoletti Weir Q
Calculates discharge Q over a Cipoletti (trapezoidal 4V:1H) weir.
| L | = | Reach / conduit / flow path length L | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.structures.cipoletti_weir_q(length: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Drop Structure Depth
Calculates supercritical flow depth y_1 at the toe of a vertical drop spillway based on Rand's empirical drop number formulation.
| dropheight | = | Input parameter | (SI units) |
| Q | = | Volumetric discharge rate | (m³/s) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.drop_structure_depth(drop_height: Union[float, int, Sequence[float], numpy.ndarray], unit_discharge: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Francis Sharp-Crested Rectangular Weir
Determines discharge over rectangular sharp-crested weir with end contractions.
| L | = | Reach / conduit / flow path length L | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| contractions | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.francis_weir(length: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], contractions: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Francis Weir L
Inversion: Crest length L = Q / (k * H^1.5) + 0.1 * n_e * H.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| contractions | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.francis_weir_l(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], contractions: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Francis Weir L
Inversion: Crest length L = Q / (k * H^1.5) + 0.1 * n_e * H.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| contractions | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.francis_weir_l(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], contractions: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Francis Sharp-Crested Rectangular Weir
Determines discharge over rectangular sharp-crested weir with end contractions.
| L | = | Reach / conduit / flow path length L | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| contractions | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.francis_weir(length: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], contractions: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hec18 Pier Scour
Calculates bridge pier scour depth ys using the FHWA HEC-18 (Richardson & Davis CSU) formula.
| b | = | Bridge pier frontal width a | (m) |
| y | = | Upstream approach flow depth y_1 | (m) |
| V | = | Upstream approach flow velocity V_1 | (m/s) |
| k1 | = | HEC-18 pier nose shape correction K_1 | (-) |
| k2 | = | HEC-18 flow angle of attack correction K_2 | (-) |
| k3 | = | HEC-18 bed condition correction K_3 | (-) |
| k4 | = | HEC-18 armoring bed sediment correction K_4 | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.hec18_pier_scour(pier_width: Union[float, int, Sequence[float], numpy.ndarray], flow_depth: Union[float, int, Sequence[float], numpy.ndarray], flow_velocity: Union[float, int, Sequence[float], numpy.ndarray], k1: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, k2: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, k3: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, k4: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Hec18 Pier Width
Inversion: Solves for maximum permissible pier width 'a' for a given allowable scour depth.
| y | = | Maximum local scour depth y_s | (m) |
| y | = | Upstream approach flow depth y_1 | (m) |
| V | = | Upstream approach flow velocity V_1 | (m/s) |
| k1 | = | HEC-18 pier nose shape correction K_1 | (-) |
| k2 | = | HEC-18 flow angle of attack correction K_2 | (-) |
| k3 | = | HEC-18 bed condition correction K_3 | (-) |
| k4 | = | HEC-18 armoring bed sediment correction K_4 | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.hec18_pier_width(scour_depth: Union[float, int, Sequence[float], numpy.ndarray], flow_depth: Union[float, int, Sequence[float], numpy.ndarray], flow_velocity: Union[float, int, Sequence[float], numpy.ndarray], k1: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, k2: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, k3: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, k4: Union[float, int, Sequence[float], numpy.ndarray] = 1.0, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Morning Glory Weir Flow
Evaluates discharge Q over a circular shaft spillway (morning glory / bellmouth drop inlet) operating under free-surface weir control.
| r | = | Input parameter | (SI units) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.morning_glory_weir_flow(crest_radius: Union[float, int, Sequence[float], numpy.ndarray], head_on_crest: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 2.0) -> Union[float, numpy.ndarray]
Ogee Discharge Coefficient
Corrects the ogee spillway discharge coefficient C when operating at heads H_e differing from the design head H_o using the standard USBR power relation.
| designcoeff | = | Input parameter | (-) |
| H | = | Hydraulic head | (m) |
| H | = | Hydraulic head | (m) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.structures.ogee_discharge_coefficient(design_coeff: Union[float, int, Sequence[float], numpy.ndarray], actual_head: Union[float, int, Sequence[float], numpy.ndarray], design_head: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Ogee Spillway Discharge
Computes discharge Q over an ogee-crested overflow spillway based on USBR standard profile geometry, effective crest length L_e, and total design head H_e.
| Q | = | Discharge coefficient C_d | (-) |
| L | = | Length | (m) |
| H | = | Total operating head H | (m) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.structures.ogee_spillway_discharge(discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray], effective_length: Union[float, int, Sequence[float], numpy.ndarray], total_head: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Ogee Spillway He
Inverts Ogee spillway equation to calculate head on crest H_e corresponding to discharge Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| L | = | Length | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.ogee_spillway_he(discharge: Union[float, int, Sequence[float], numpy.ndarray], effective_length: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 2.2) -> Union[float, numpy.ndarray]
Ogee Spillway He
Inverts Ogee spillway equation to calculate head on crest H_e corresponding to discharge Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| L | = | Length | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.ogee_spillway_he(discharge: Union[float, int, Sequence[float], numpy.ndarray], effective_length: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 2.2) -> Union[float, numpy.ndarray]
Ogee Spillway Le
Calculates required effective spillway crest length L_e to pass design flood discharge Q at total head H_e.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.ogee_spillway_le(discharge: Union[float, int, Sequence[float], numpy.ndarray], design_head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 2.2) -> Union[float, numpy.ndarray]
Ogee Spillway Le
Calculates required effective spillway crest length L_e to pass design flood discharge Q at total head H_e.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.ogee_spillway_le(discharge: Union[float, int, Sequence[float], numpy.ndarray], design_head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 2.2) -> Union[float, numpy.ndarray]
Ogee Spillway Discharge
Computes discharge Q over an ogee-crested overflow spillway based on USBR standard profile geometry, effective crest length L_e, and total design head H_e.
| Q | = | Discharge coefficient C_d | (-) |
| L | = | Length | (m) |
| H | = | Total operating head H | (m) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.structures.ogee_spillway_discharge(discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray], effective_length: Union[float, int, Sequence[float], numpy.ndarray], total_head: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Orifice Free
Free orifice discharge: Q = C_d * A_o * sqrt(2 * g * H).
| A | = | Cross-sectional flow area A | (m²) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.orifice_free(area: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Orifice Free Ao
Inversion: Orifice opening area A_o = Q / (C_d * sqrt(2 * g * H)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.orifice_free_ao(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Orifice Free Ao
Inversion: Orifice opening area A_o = Q / (C_d * sqrt(2 * g * H)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.orifice_free_ao(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Orifice Free H
Inversion: Head above orifice H = (1 / (2 * g)) * (Q / (C_d * A_o))^2.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.orifice_free_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Orifice Free H
Inversion: Head above orifice H = (1 / (2 * g)) * (Q / (C_d * A_o))^2.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.orifice_free_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Orifice Free
Free orifice discharge: Q = C_d * A_o * sqrt(2 * g * H).
| A | = | Cross-sectional flow area A | (m²) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.orifice_free(area: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Orifice Submerged
Submerged orifice discharge: Q = C_d * A_o * sqrt(2 * g * (H_1 - H_2)).
| A | = | Cross-sectional flow area A | (m²) |
| H | = | Hydraulic head | (m) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.orifice_submerged(area: Union[float, int, Sequence[float], numpy.ndarray], upstream_head: Union[float, int, Sequence[float], numpy.ndarray], downstream_head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Parshall Flume
Parshall flume discharge: Q = C * W * H^n.
| b | = | Venturi / flume constricted throat width b_2 | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| coeffc | = | Input parameter | (-) |
| expn | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.parshall_flume(throat_width: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], coeff_c: Union[float, int, Sequence[float], numpy.ndarray] = 2.32, exp_n: Union[float, int, Sequence[float], numpy.ndarray] = 1.522) -> Union[float, numpy.ndarray]
Siphon Spillway Discharge
Computes high-capacity discharge Q through a closed siphon spillway operating under full pipe vacuum priming across operating head difference H.
| A | = | Area | (m²) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.structures.siphon_spillway_discharge(throat_area: Union[float, int, Sequence[float], numpy.ndarray], operating_head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.8, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Sluice Gate Free
Sluice gate free discharge: Q = C_d * b * a * sqrt(2 * g * y_1).
| b | = | Input parameter | (SI units) |
| a | = | Input parameter | (SI units) |
| y | = | Upstream approach flow depth y_1 | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.sluice_gate_free(gate_width: Union[float, int, Sequence[float], numpy.ndarray], gate_opening: Union[float, int, Sequence[float], numpy.ndarray], upstream_depth: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Sluice Gate Free A
Inversion: Gate vertical opening height a = Q / (C_d * b * sqrt(2 * g * y_1)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Flume / gate clear opening width b | (m) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.structures.sluice_gate_free_a(discharge: Union[float, int, Sequence[float], numpy.ndarray], width: Union[float, int, Sequence[float], numpy.ndarray], head_upstream: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Sluice Gate Free A
Inversion: Gate vertical opening height a = Q / (C_d * b * sqrt(2 * g * y_1)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Flume / gate clear opening width b | (m) |
| H | = | Hydraulic head | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Area | (km² if 'km' in fn else 'm²') |
hydroaj.structures.sluice_gate_free_a(discharge: Union[float, int, Sequence[float], numpy.ndarray], width: Union[float, int, Sequence[float], numpy.ndarray], head_upstream: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Sluice Gate Free
Sluice gate free discharge: Q = C_d * b * a * sqrt(2 * g * y_1).
| b | = | Input parameter | (SI units) |
| a | = | Input parameter | (SI units) |
| y | = | Upstream approach flow depth y_1 | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.sluice_gate_free(gate_width: Union[float, int, Sequence[float], numpy.ndarray], gate_opening: Union[float, int, Sequence[float], numpy.ndarray], upstream_depth: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Sluice Gate Submerged
Sluice gate submerged discharge: Q = C_s * b * a * sqrt(2 * g * (y_1 - y_2)).
| b | = | Input parameter | (SI units) |
| a | = | Input parameter | (SI units) |
| y | = | Upstream approach flow depth y_1 | (m) |
| y | = | Flow depth | (m) |
| submergedcoeff | = | Input parameter | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.sluice_gate_submerged(gate_width: Union[float, int, Sequence[float], numpy.ndarray], gate_opening: Union[float, int, Sequence[float], numpy.ndarray], upstream_depth: Union[float, int, Sequence[float], numpy.ndarray], tailwater_depth: Union[float, int, Sequence[float], numpy.ndarray], submerged_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.6, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Spillway Effective Length
Determines effective overflow spillway crest length L_e by applying pier and abutment end contraction coefficients to clear crest span L.
| L | = | Length | (m) |
| npiers | = | Input parameter | (SI units) |
| kpier | = | Input parameter | (SI units) |
| kabutment | = | Input parameter | (SI units) |
| H | = | Total operating head H | (m) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.spillway_effective_length(clear_length: Union[float, int, Sequence[float], numpy.ndarray], n_piers: Union[float, int, Sequence[float], numpy.ndarray] = 0.0, k_pier: Union[float, int, Sequence[float], numpy.ndarray] = 0.02, k_abutment: Union[float, int, Sequence[float], numpy.ndarray] = 0.1, total_head: Union[float, int, Sequence[float], numpy.ndarray] = 0.0) -> Union[float, numpy.ndarray]
Stilling Basin Y1
Inversion: Stilling basin initial depth y_1 = y_2 / (0.5 * (sqrt(1 + 8 * Fr_1^2) - 1)).
| y2 | = | Subcritical conjugate depth y_2 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.stilling_basin_y1(sequent_depth: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Stilling Basin Y2
Inverts stilling basin design relation to determine allowable sequent depth y_2 for a fixed basin length L_sb.
| y1 | = | Supercritical initial depth y_1 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.stilling_basin_y2(initial_depth: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Stilling Basin Length
Computes required length L_sb of a hydraulic jump stilling basin (USBR Type II, III, or IV) as a function of subcritical sequent depth y_2.
| y2 | = | Subcritical conjugate depth y_2 | (m) |
| basincoeff | = | Input parameter | (-) |
| Tp | = | Length | (km if 'km' in fn else 'm') |
hydroaj.structures.stilling_basin_length(sequent_depth: Union[float, int, Sequence[float], numpy.ndarray], basin_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 4.3) -> Union[float, numpy.ndarray]
Stilling Basin Y1
Inversion: Stilling basin initial depth y_1 = y_2 / (0.5 * (sqrt(1 + 8 * Fr_1^2) - 1)).
| y2 | = | Subcritical conjugate depth y_2 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.stilling_basin_y1(sequent_depth: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Stilling Basin Y2
Inverts stilling basin design relation to determine allowable sequent depth y_2 for a fixed basin length L_sb.
| y1 | = | Supercritical initial depth y_1 | (m) |
| Fr | = | Supercritical inflow Froude number Fr_1 | (-) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.structures.stilling_basin_y2(initial_depth: Union[float, int, Sequence[float], numpy.ndarray], froude_1: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Sutro Weir H
Inversion: Solves for required head H on Sutro weir.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| b | = | Sutro weir rectangular base width b | (m) |
| baseheight | = | Sutro weir base vertical crest height a | (m) |
| Cd | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.sutro_weir_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], base_width: Union[float, int, Sequence[float], numpy.ndarray], base_height: Union[float, int, Sequence[float], numpy.ndarray], cd: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Sutro Weir Q
Calculates discharge Q for a Sutro (proportional linear) weir.
| b | = | Sutro weir rectangular base width b | (m) |
| baseheight | = | Sutro weir base vertical crest height a | (m) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Cd | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.structures.sutro_weir_q(base_width: Union[float, int, Sequence[float], numpy.ndarray], base_height: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], cd: Union[float, int, Sequence[float], numpy.ndarray] = 0.62, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Tailwater Depth
Evaluates river tailwater stage y_tw downstream of hydraulic structures using the standard power-law stage-discharge rating equation.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| ratinga | = | Input parameter | (SI units) |
| ratingb | = | Input parameter | (SI units) |
| baseelevation | = | Input parameter | (SI units) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.structures.tailwater_depth(discharge: Union[float, int, Sequence[float], numpy.ndarray], rating_a: Union[float, int, Sequence[float], numpy.ndarray], rating_b: Union[float, int, Sequence[float], numpy.ndarray], base_elevation: Union[float, int, Sequence[float], numpy.ndarray] = 0.0) -> Union[float, numpy.ndarray]
Thomson Triangular V-Notch Weir (90°)
Determines discharge through triangular sharp-crested weir for low to moderate flows.
| Tc | = | Time parameter | (minutes) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir(notch_angle_deg: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.585, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
V Notch Weir Theta
Inversion: Notch angle theta (degrees) = 2 * arctan(Q / ((8/15) * C_d * sqrt(2*g) * H^(5/2))).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir_theta(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.585, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
V Notch Weir Cd
Inversion: Discharge coefficient C_d = Q / ((8/15) * sqrt(2*g) * tan(theta/2) * H^(5/2)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Tc | = | Time parameter | (minutes) |
| H | = | Upstream / operating hydraulic head H | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir_cd(discharge: Union[float, int, Sequence[float], numpy.ndarray], notch_angle_deg: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
V Notch Weir Cd
Inversion: Discharge coefficient C_d = Q / ((8/15) * sqrt(2*g) * tan(theta/2) * H^(5/2)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Tc | = | Time parameter | (minutes) |
| H | = | Upstream / operating hydraulic head H | (m) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir_cd(discharge: Union[float, int, Sequence[float], numpy.ndarray], notch_angle_deg: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
V Notch Weir H
Inverts V-notch weir equation to solve for operating head H required to pass discharge Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Tc | = | Time parameter | (minutes) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], notch_angle_deg: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.585, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
V Notch Weir H
Inverts V-notch weir equation to solve for operating head H required to pass discharge Q.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| Tc | = | Time parameter | (minutes) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir_h(discharge: Union[float, int, Sequence[float], numpy.ndarray], notch_angle_deg: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.585, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Thomson Triangular V-Notch Weir (90°)
Determines discharge through triangular sharp-crested weir for low to moderate flows.
| Tc | = | Time parameter | (minutes) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir(notch_angle_deg: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.585, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
V Notch Weir Theta
Inversion: Notch angle theta (degrees) = 2 * arctan(Q / ((8/15) * C_d * sqrt(2*g) * H^(5/2))).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Upstream / operating hydraulic head H | (m) |
| Q | = | Discharge coefficient C_d | (-) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Time parameter | (minutes) |
hydroaj.structures.v_notch_weir_theta(discharge: Union[float, int, Sequence[float], numpy.ndarray], head: Union[float, int, Sequence[float], numpy.ndarray], discharge_coeff: Union[float, int, Sequence[float], numpy.ndarray] = 0.585, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
4. Groundwater Hydraulics & Well Mechanics
Subsurface porous media flow, Darcy law fluxes, steady-state equilibrium, and unsteady aquifer drawdown response. Total verified routines: 30 functions.
import hydroaj.groundwater as gw
# 1. Theis Non-Equilibrium Well Drawdown (Q = 0.045 m³/s, T = 0.0022 m²/s, S = 0.0004, r = 50 m, t = 86400 s)
s = gw.theis_drawdown(pumping_rate=0.045, transmissivity=0.0022, storativity=0.0004, radius=50.0, time=86400.0)
print(f"Theis Unsteady Well Drawdown s: {s:.3f} m")
# 2. Cooper-Jacob Logarithmic Approximation
s_cj = gw.cooper_jacob_drawdown(pumping_rate=0.045, transmissivity=0.0022, storativity=0.0004, radius=50.0, time=86400.0)
print(f"Cooper-Jacob Drawdown s: {s_cj:.3f} m")
# 3. 1D Darcy Saturated Flow Rate (K = 0.00015 m/s, A = 12.0 m², dh = 1.8 m, L = 25.0 m)
q_darcy = gw.darcy_flow_1d(hydraulic_conductivity=0.00015, area=12.0, head_difference=1.8, length=25.0)
print(f"1D Darcy Saturated Discharge Q: {q_darcy:.6f} m³/s")
Cooper-Jacob Logarithmic Well Drawdown
Evaluates transient drawdown s using Cooper-Jacob logarithmic series truncation valid for small u (long pumping times or close observation radii).
| Q | = | Input parameter | (SI units) |
| T | = | Aquifer transmissivity T | (m²/s) |
| S | = | Aquifer storativity / storage coefficient S | (-) |
| r | = | Input parameter | (SI units) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.cooper_jacob_drawdown(pumping_rate: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], storativity: Union[float, int, Sequence[float], numpy.ndarray], radius: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Cooper Jacob Q
Inversion: Equilibrium pumping rate Q = (4 * pi * T * s) / (2.302585 * log10((2.25 * T * t) / (r^2 * S))).
| s | = | Pumping well water level drawdown s_w | (m) |
| T | = | Aquifer transmissivity T | (m²/s) |
| S | = | Aquifer storativity / storage coefficient S | (-) |
| r | = | Input parameter | (SI units) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.groundwater.cooper_jacob_q(drawdown: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], storativity: Union[float, int, Sequence[float], numpy.ndarray], radius: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Cooper Jacob Q
Inversion: Equilibrium pumping rate Q = (4 * pi * T * s) / (2.302585 * log10((2.25 * T * t) / (r^2 * S))).
| s | = | Pumping well water level drawdown s_w | (m) |
| T | = | Aquifer transmissivity T | (m²/s) |
| S | = | Aquifer storativity / storage coefficient S | (-) |
| r | = | Input parameter | (SI units) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| Tp | = | Volumetric flow discharge | (m³/s) |
hydroaj.groundwater.cooper_jacob_q(drawdown: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], storativity: Union[float, int, Sequence[float], numpy.ndarray], radius: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Cooper-Jacob Logarithmic Well Drawdown
Evaluates transient drawdown s using Cooper-Jacob logarithmic series truncation valid for small u (long pumping times or close observation radii).
| Q | = | Input parameter | (SI units) |
| T | = | Aquifer transmissivity T | (m²/s) |
| S | = | Aquifer storativity / storage coefficient S | (-) |
| r | = | Input parameter | (SI units) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.cooper_jacob_drawdown(pumping_rate: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], storativity: Union[float, int, Sequence[float], numpy.ndarray], radius: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flow 1D
Evaluates steady 1D groundwater flow discharge Q through porous media according to Darcy's linear law.
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| A | = | Cross-sectional flow area A | (m²) |
| hydraulicgradient | = | Piezometric gradient i = dh / dl | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flow_1d(hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_gradient: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flow Dh Dl
Inversion: Hydraulic gradient dh_dl = -Q / (K * A).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flow_dh_dl(discharge: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flow K
Inverts Darcy flow equation to calculate saturated hydraulic conductivity K from measured permeameter discharge Q and hydraulic gradient dh/dl.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| hydraulicgradient | = | Piezometric gradient i = dh / dl | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flow_k(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_gradient: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flow 1D
Evaluates steady 1D groundwater flow discharge Q through porous media according to Darcy's linear law.
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| A | = | Cross-sectional flow area A | (m²) |
| hydraulicgradient | = | Piezometric gradient i = dh / dl | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flow_1d(hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_gradient: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flux
Calculates Darcy flux (specific discharge) q = Q/A as the product of hydraulic conductivity K and hydraulic head gradient dh/dl.
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| hydraulicgradient | = | Piezometric gradient i = dh / dl | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flux(hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_gradient: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flow K
Inverts Darcy flow equation to calculate saturated hydraulic conductivity K from measured permeameter discharge Q and hydraulic gradient dh/dl.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| A | = | Cross-sectional flow area A | (m²) |
| hydraulicgradient | = | Piezometric gradient i = dh / dl | (m/m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flow_k(discharge: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_gradient: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Darcy Flow Dh Dl
Inversion: Hydraulic gradient dh_dl = -Q / (K * A).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| A | = | Cross-sectional flow area A | (m²) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.darcy_flow_dh_dl(discharge: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], area: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Ghyben Herzberg Depth
Calculates depth z to freshwater-saltwater interface below sea level via the Ghyben-Herzberg relation.
| H | = | Freshwater water table elevation above sea level h_f | (m) |
| Rh | = | Density of freshwater rho_f | kg/m^3 (~1000.0) |
| Rh | = | Density of saltwater rho_s | kg/m^3 (~1025.0) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.groundwater.ghyben_herzberg_depth(freshwater_head: Union[float, int, Sequence[float], numpy.ndarray], rho_f: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0, rho_s: Union[float, int, Sequence[float], numpy.ndarray] = 1025.0) -> Union[float, numpy.ndarray]
Ghyben Herzberg Head
Inversion: Solves for freshwater water table elevation h_f = ((rho_s - rho_f) / rho_f) * z.
| y | = | Depth to freshwater-saltwater interface below sea level z | (m) |
| Rh | = | Density of freshwater rho_f | kg/m^3 (~1000.0) |
| Rh | = | Density of saltwater rho_s | kg/m^3 (~1025.0) |
| Tp | = | Hydraulic head / depth | (m) |
hydroaj.groundwater.ghyben_herzberg_head(interface_depth: Union[float, int, Sequence[float], numpy.ndarray], rho_f: Union[float, int, Sequence[float], numpy.ndarray] = 1000.0, rho_s: Union[float, int, Sequence[float], numpy.ndarray] = 1025.0) -> Union[float, numpy.ndarray]
Hantush Leakage Factor
Calculates Hantush-Jacob leakage factor B = sqrt(T * b' / K') [m] for a leaky confined aquifer.
| T | = | Aquifer transmissivity T | (m²/s) |
| aquitardthickness | = | Leaky confining aquitard thickness b' | (m) |
| aquitardconductivity | = | Aquitard vertical hydraulic conductivity K' | (m/s) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.hantush_leakage_factor(transmissivity: Union[float, int, Sequence[float], numpy.ndarray], aquitard_thickness: Union[float, int, Sequence[float], numpy.ndarray], aquitard_conductivity: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Jacob Well B
Inversion: Solves for aquifer laminar loss coefficient B = (s_w - C * Q^2) / Q.
| s | = | Pumping well water level drawdown s_w | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| ccoeff | = | Well turbulent screen loss coefficient C | (s^2 / m^5) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.jacob_well_b(drawdown: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], c_coeff: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Jacob Well C
Inversion: Solves for well turbulence loss coefficient C = (s_w - B * Q) / Q^2.
| s | = | Pumping well water level drawdown s_w | (m) |
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| bcoeff | = | Aquifer laminar formation loss coefficient B | (s / m²) |
| Tp | = | Runoff / discharge coefficient | (-) |
hydroaj.groundwater.jacob_well_c(drawdown: Union[float, int, Sequence[float], numpy.ndarray], discharge: Union[float, int, Sequence[float], numpy.ndarray], b_coeff: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Jacob Well Drawdown
Calculates total well pumping drawdown sw using Jacob's well loss equation:.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| bcoeff | = | Aquifer laminar formation loss coefficient B | (s / m²) |
| ccoeff | = | Well turbulent screen loss coefficient C | (s^2 / m^5) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.jacob_well_drawdown(discharge: Union[float, int, Sequence[float], numpy.ndarray], b_coeff: Union[float, int, Sequence[float], numpy.ndarray], c_coeff: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Jacob Well Efficiency
Calculates pumping well efficiency Ew = (B * Q / (B * Q + C * Q^2)) * 100%.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| bcoeff | = | Aquifer laminar formation loss coefficient B | (s / m²) |
| ccoeff | = | Well turbulent screen loss coefficient C | (s^2 / m^5) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.jacob_well_efficiency(discharge: Union[float, int, Sequence[float], numpy.ndarray], b_coeff: Union[float, int, Sequence[float], numpy.ndarray], c_coeff: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Specific Capacity To Transmissivity
Estimates aquifer transmissivity T from well specific capacity (Q / sw) using Thomasson / Driscoll empirical relations:.
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| s | = | Pumping well water level drawdown s_w | (m) |
| aquifertype | = | Input parameter | (SI units) |
| Tp | = | Aquifer transmissivity | m²/s (or m²/day) |
hydroaj.groundwater.specific_capacity_to_transmissivity(discharge: Union[float, int, Sequence[float], numpy.ndarray], drawdown: Union[float, int, Sequence[float], numpy.ndarray], aquifer_type: str = 'confined') -> Union[float, numpy.ndarray]
Theis Non-Equilibrium Well Drawdown
Calculates transient groundwater drawdown near pumping well in confined aquifer.
| Q | = | Input parameter | (SI units) |
| T | = | Aquifer transmissivity T | (m²/s) |
| S | = | Aquifer storativity / storage coefficient S | (-) |
| r | = | Input parameter | (SI units) |
| t | = | Elapsed infiltration or pumping time t | (hours) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.theis_drawdown(pumping_rate: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], storativity: Union[float, int, Sequence[float], numpy.ndarray], radius: Union[float, int, Sequence[float], numpy.ndarray], time: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Confined
Thiem steady-state pumping rate for confined aquifer:.
| T | = | Aquifer transmissivity T | (m²/s) |
| h1 | = | Hydraulic head at well 1 (h_1) | (m) |
| h2 | = | Hydraulic head at well 2 (h_2) | (m) |
| r1 | = | Distance to observation well 1 (r_1) | (m) |
| r2 | = | Distance to observation well 2 (r_2) | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_confined(transmissivity: Union[float, int, Sequence[float], numpy.ndarray], h1: Union[float, int, Sequence[float], numpy.ndarray], h2: Union[float, int, Sequence[float], numpy.ndarray], r1: Union[float, int, Sequence[float], numpy.ndarray], r2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Confined Dh
Inversion: Head difference (h_2 - h_1) = (Q * ln(r_2 / r_1)) / (2 * pi * T).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| T | = | Aquifer transmissivity T | (m²/s) |
| r | = | Distance to near observation well r_1 | (m) |
| r | = | Distance to far observation well r_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_confined_dh(discharge: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], radius_1: Union[float, int, Sequence[float], numpy.ndarray], radius_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Confined Dh
Inversion: Head difference (h_2 - h_1) = (Q * ln(r_2 / r_1)) / (2 * pi * T).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| T | = | Aquifer transmissivity T | (m²/s) |
| r | = | Distance to near observation well r_1 | (m) |
| r | = | Distance to far observation well r_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_confined_dh(discharge: Union[float, int, Sequence[float], numpy.ndarray], transmissivity: Union[float, int, Sequence[float], numpy.ndarray], radius_1: Union[float, int, Sequence[float], numpy.ndarray], radius_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Confined
Thiem steady-state pumping rate for confined aquifer:.
| T | = | Aquifer transmissivity T | (m²/s) |
| h1 | = | Hydraulic head at well 1 (h_1) | (m) |
| h2 | = | Hydraulic head at well 2 (h_2) | (m) |
| r1 | = | Distance to observation well 1 (r_1) | (m) |
| r2 | = | Distance to observation well 2 (r_2) | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_confined(transmissivity: Union[float, int, Sequence[float], numpy.ndarray], h1: Union[float, int, Sequence[float], numpy.ndarray], h2: Union[float, int, Sequence[float], numpy.ndarray], r1: Union[float, int, Sequence[float], numpy.ndarray], r2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Confined T
Inverts Thiem's equilibrium equation to determine confined aquifer transmissivity T from observation well drawdowns (h_2 - h_1).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Hydraulic head | (m) |
| H | = | Hydraulic head | (m) |
| r | = | Distance to near observation well r_1 | (m) |
| r | = | Distance to far observation well r_2 | (m) |
| Tp | = | Aquifer transmissivity | m²/s (or m²/day) |
hydroaj.groundwater.thiem_confined_t(discharge: Union[float, int, Sequence[float], numpy.ndarray], head_1: Union[float, int, Sequence[float], numpy.ndarray], head_2: Union[float, int, Sequence[float], numpy.ndarray], radius_1: Union[float, int, Sequence[float], numpy.ndarray], radius_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Confined T
Inverts Thiem's equilibrium equation to determine confined aquifer transmissivity T from observation well drawdowns (h_2 - h_1).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Hydraulic head | (m) |
| H | = | Hydraulic head | (m) |
| r | = | Distance to near observation well r_1 | (m) |
| r | = | Distance to far observation well r_2 | (m) |
| Tp | = | Aquifer transmissivity | m²/s (or m²/day) |
hydroaj.groundwater.thiem_confined_t(discharge: Union[float, int, Sequence[float], numpy.ndarray], head_1: Union[float, int, Sequence[float], numpy.ndarray], head_2: Union[float, int, Sequence[float], numpy.ndarray], radius_1: Union[float, int, Sequence[float], numpy.ndarray], radius_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Unconfined
Thiem (Dupuit) steady-state pumping rate for unconfined aquifer:.
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| h1 | = | Hydraulic head at well 1 (h_1) | (m) |
| h2 | = | Hydraulic head at well 2 (h_2) | (m) |
| r1 | = | Distance to observation well 1 (r_1) | (m) |
| r2 | = | Distance to observation well 2 (r_2) | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_unconfined(hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], h1: Union[float, int, Sequence[float], numpy.ndarray], h2: Union[float, int, Sequence[float], numpy.ndarray], r1: Union[float, int, Sequence[float], numpy.ndarray], r2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Unconfined K
Inversion: Hydraulic conductivity K = (Q * ln(r_2 / r_1)) / (pi * (h_2^2 - h_1^2)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Hydraulic head | (m) |
| H | = | Hydraulic head | (m) |
| r | = | Distance to near observation well r_1 | (m) |
| r | = | Distance to far observation well r_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_unconfined_k(discharge: Union[float, int, Sequence[float], numpy.ndarray], head_1: Union[float, int, Sequence[float], numpy.ndarray], head_2: Union[float, int, Sequence[float], numpy.ndarray], radius_1: Union[float, int, Sequence[float], numpy.ndarray], radius_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Unconfined K
Inversion: Hydraulic conductivity K = (Q * ln(r_2 / r_1)) / (pi * (h_2^2 - h_1^2)).
| Q | = | Volumetric flow rate / discharge Q | (m³/s) |
| H | = | Hydraulic head | (m) |
| H | = | Hydraulic head | (m) |
| r | = | Distance to near observation well r_1 | (m) |
| r | = | Distance to far observation well r_2 | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_unconfined_k(discharge: Union[float, int, Sequence[float], numpy.ndarray], head_1: Union[float, int, Sequence[float], numpy.ndarray], head_2: Union[float, int, Sequence[float], numpy.ndarray], radius_1: Union[float, int, Sequence[float], numpy.ndarray], radius_2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Thiem Unconfined
Thiem (Dupuit) steady-state pumping rate for unconfined aquifer:.
| K | = | Darcy saturated hydraulic conductivity K | (m/s) |
| h1 | = | Hydraulic head at well 1 (h_1) | (m) |
| h2 | = | Hydraulic head at well 2 (h_2) | (m) |
| r1 | = | Distance to observation well 1 (r_1) | (m) |
| r2 | = | Distance to observation well 2 (r_2) | (m) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.groundwater.thiem_unconfined(hydraulic_conductivity: Union[float, int, Sequence[float], numpy.ndarray], h1: Union[float, int, Sequence[float], numpy.ndarray], h2: Union[float, int, Sequence[float], numpy.ndarray], r1: Union[float, int, Sequence[float], numpy.ndarray], r2: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
5. Fluvial Sediment Transport Dynamics
Riverbed boundary shear stress, critical incipient motion thresholds, bedload mass transport, and vertical suspended sediment distribution. Total verified routines: 24 functions.
import hydroaj.sediment as sed
# 1. Dimensionless Shields Parameter (tau0 = 21.2 Pa, ds = 0.003 m, rhos = 2650 kg/m³, rho = 1000 kg/m³)
theta = sed.shields_parameter(shear_stress=21.2, grain_diameter=0.003, sediment_density=2650.0, fluid_density=1000.0)
print(f"Dimensionless Shields Parameter θ: {theta:.4f}")
# 2. Bed Shear Stress from Uniform Flow (rho = 1000 kg/m³, Rh = 1.8 m, S0 = 0.0012)
tau_0 = sed.boundary_shear_stress(hydraulic_radius=1.8, slope=0.0012, fluid_density=1000.0)
print(f"Boundary Bed Shear Stress τ₀: {tau_0:.2f} Pa")
# 3. Meyer-Peter & Müller Bedload Transport Rate (ds = 0.005 m, tau0 = 35.0 Pa, rhos = 2650 kg/m³)
q_b = sed.meyer_peter_muller(grain_diameter=0.005, shear_stress=35.0, sediment_density=2650.0, fluid_density=1000.0)
print(f"Meyer-Peter Müller Bedload Transport q_b: {q_b:.5f} m²/s")
Boundary Shear R_h
Inversion: Hydraulic radius R_h = tau_0 / (gamma * S_0).
| τ0 | = | Input parameter | (SI units) |
| unitweight | = | Input parameter | (SI units) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.boundary_shear_rh(shear_stress: Union[float, int, Sequence[float], numpy.ndarray], unit_weight: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Boundary Shear R_h
Inversion: Hydraulic radius R_h = tau_0 / (gamma * S_0).
| τ0 | = | Input parameter | (SI units) |
| unitweight | = | Input parameter | (SI units) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.boundary_shear_rh(shear_stress: Union[float, int, Sequence[float], numpy.ndarray], unit_weight: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Boundary Shear S₀
Inversion: Energy slope S_0 = tau_0 / (gamma * R_h).
| τ0 | = | Input parameter | (SI units) |
| unitweight | = | Input parameter | (SI units) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.sediment.boundary_shear_s0(shear_stress: Union[float, int, Sequence[float], numpy.ndarray], unit_weight: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Boundary Shear S₀
Inversion: Energy slope S_0 = tau_0 / (gamma * R_h).
| τ0 | = | Input parameter | (SI units) |
| unitweight | = | Input parameter | (SI units) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.sediment.boundary_shear_s0(shear_stress: Union[float, int, Sequence[float], numpy.ndarray], unit_weight: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Boundary Shear Stress
Calculates mean boundary shear stress tau_0 exerted by flowing water on open channel beds and alluvial riverbanks according to Du Boys.
| unitweight | = | Input parameter | (SI units) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.boundary_shear_stress(unit_weight: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Boundary Shear Stress
Calculates mean boundary shear stress tau_0 exerted by flowing water on open channel beds and alluvial riverbanks according to Du Boys.
| unitweight | = | Input parameter | (SI units) |
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.boundary_shear_stress(unit_weight: Union[float, int, Sequence[float], numpy.ndarray], hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Critical Shear Stress
Determines the critical threshold shear stress tau_c required to initiate sediment grain motion on alluvial riverbeds.
| criticalshields_param | = | Input parameter | (SI units) |
| submergedunit_weight | = | Input parameter | (SI units) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.critical_shear_stress(critical_shields_param: Union[float, int, Sequence[float], numpy.ndarray], submerged_unit_weight: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lane Sediment Balance
Evaluates Lane's stable channel equilibrium balance index relating water discharge Q, channel slope S, and median grain size d_50.
| Q | = | Volumetric discharge rate | (m³/s) |
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.lane_sediment_balance(water_discharge: Union[float, int, Sequence[float], numpy.ndarray], channel_slope: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lane Balance S
Inversion: Equilibrium channel slope S = (Q_s * d_50) / Q_w.
| Q | = | Volumetric discharge rate | (m³/s) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Q | = | Volumetric discharge rate | (m³/s) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.sediment.lane_balance_s(sediment_discharge: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray], water_discharge: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lane Balance S
Inversion: Equilibrium channel slope S = (Q_s * d_50) / Q_w.
| Q | = | Volumetric discharge rate | (m³/s) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Q | = | Volumetric discharge rate | (m³/s) |
| Tp | = | Longitudinal bed slope | (m/m) |
hydroaj.sediment.lane_balance_s(sediment_discharge: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray], water_discharge: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Lane Sediment Balance
Evaluates Lane's stable channel equilibrium balance index relating water discharge Q, channel slope S, and median grain size d_50.
| Q | = | Volumetric discharge rate | (m³/s) |
| S0 | = | Longitudinal bed slope / gradient | (m/m) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.lane_sediment_balance(water_discharge: Union[float, int, Sequence[float], numpy.ndarray], channel_slope: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Meyer Peter Muller Bedload
Calculates dimensionless bedload transport intensity q_b^* using the authoritative Meyer-Peter & Müller formulation for coarse sand and gravel beds.
| θ | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.meyer_peter_muller_bedload(shields_parameter: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Rubey Settling Velocity
Evaluates Rubey's settling velocity w_s for silt, sand, and gravel particles spanning intermediate Reynolds numbers (0.1 < Re_p < 1000).
| ds | = | Pipe internal diameter | (m) |
| g | = | Input parameter | (SI units) |
| ν | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.sediment.rubey_settling_velocity(grain_diameter: Union[float, int, Sequence[float], numpy.ndarray], specific_gravity: Union[float, int, Sequence[float], numpy.ndarray] = 2.65, kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray] = 1e-06, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Shear Velocity
Evaluates bed shear velocity u_* representing turbulent shear velocity scales and boundary layer velocity fluctuations.
| Rh | = | Hydraulic radius R_h = A / P | (m) |
| S0 | = | Longitudinal bed slope / hydraulic gradient S_0 | m/m (decimal) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.sediment.shear_velocity(hydraulic_radius: Union[float, int, Sequence[float], numpy.ndarray], slope: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Shields Param D50
Inversion: Median grain size d_50 = tau_0 / (theta_* * (gamma_s - gamma_w)).
| shieldsparam | = | Input parameter | (SI units) |
| τ0 | = | Input parameter | (SI units) |
| specificweight_sediment | = | Input parameter | (SI units) |
| specificweight_water | = | Input parameter | (SI units) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.sediment.shields_param_d50(shields_param: Union[float, int, Sequence[float], numpy.ndarray], shear_stress: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_sediment: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_water: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Shields Param D50
Inversion: Median grain size d_50 = tau_0 / (theta_* * (gamma_s - gamma_w)).
| shieldsparam | = | Input parameter | (SI units) |
| τ0 | = | Input parameter | (SI units) |
| specificweight_sediment | = | Input parameter | (SI units) |
| specificweight_water | = | Input parameter | (SI units) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.sediment.shields_param_d50(shields_param: Union[float, int, Sequence[float], numpy.ndarray], shear_stress: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_sediment: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_water: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Shields Param Tau0
Inversion: Bed shear stress tau_0 = theta_* * (gamma_s - gamma_w) * d_50.
| shieldsparam | = | Input parameter | (SI units) |
| specificweight_sediment | = | Input parameter | (SI units) |
| specificweight_water | = | Input parameter | (SI units) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.shields_param_tau0(shields_param: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_sediment: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_water: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Dimensionless Shields Entrainment Parameter
Evaluates dimensionless boundary shear stress for incipient bed sediment motion.
| τ0 | = | Input parameter | (SI units) |
| submergedunit_weight | = | Input parameter | (SI units) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.shields_parameter(shear_stress: Union[float, int, Sequence[float], numpy.ndarray], submerged_unit_weight: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Dimensionless Shields Entrainment Parameter
Evaluates dimensionless boundary shear stress for incipient bed sediment motion.
| τ0 | = | Input parameter | (SI units) |
| submergedunit_weight | = | Input parameter | (SI units) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.shields_parameter(shear_stress: Union[float, int, Sequence[float], numpy.ndarray], submerged_unit_weight: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Shields Param Tau0
Inversion: Bed shear stress tau_0 = theta_* * (gamma_s - gamma_w) * d_50.
| shieldsparam | = | Input parameter | (SI units) |
| specificweight_sediment | = | Input parameter | (SI units) |
| specificweight_water | = | Input parameter | (SI units) |
| grainsize_d50 | = | Input parameter | (SI units) |
| Tp | = | Computed numerical result | (standard SI units) |
hydroaj.sediment.shields_param_tau0(shields_param: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_sediment: Union[float, int, Sequence[float], numpy.ndarray], specific_weight_water: Union[float, int, Sequence[float], numpy.ndarray], grain_size_d50: Union[float, int, Sequence[float], numpy.ndarray]) -> Union[float, numpy.ndarray]
Stokes Settling D
Inversion: Particle diameter d = sqrt((18 * nu * w_s) / (g * (S_s - 1))).
| V | = | Flow velocity | (m/s) |
| g | = | Input parameter | (SI units) |
| ν | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.sediment.stokes_settling_d(settling_velocity: Union[float, int, Sequence[float], numpy.ndarray], specific_gravity: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Stokes Settling D
Inversion: Particle diameter d = sqrt((18 * nu * w_s) / (g * (S_s - 1))).
| V | = | Flow velocity | (m/s) |
| g | = | Input parameter | (SI units) |
| ν | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Diameter | (mm if 'd50' in fn else 'm') |
hydroaj.sediment.stokes_settling_d(settling_velocity: Union[float, int, Sequence[float], numpy.ndarray], specific_gravity: Union[float, int, Sequence[float], numpy.ndarray], kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray], system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Stokes Settling Velocity
Calculates Stokes laminar terminal settling velocity w_s for spherical fine particles (clays and silts) under creeping flow conditions (Re_p < 0.1).
| ds | = | Pipe internal diameter | (m) |
| g | = | Input parameter | (SI units) |
| ν | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.sediment.stokes_settling_velocity(grain_diameter: Union[float, int, Sequence[float], numpy.ndarray], specific_gravity: Union[float, int, Sequence[float], numpy.ndarray] = 2.65, kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray] = 1e-06, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Stokes Settling Velocity
Calculates Stokes laminar terminal settling velocity w_s for spherical fine particles (clays and silts) under creeping flow conditions (Re_p < 0.1).
| ds | = | Pipe internal diameter | (m) |
| g | = | Input parameter | (SI units) |
| ν | = | Input parameter | (SI units) |
| system | = | Unit system ('si' for standard metric units, 'us' for US customary units) | (-) |
| Tp | = | Flow velocity | (m/s) |
hydroaj.sediment.stokes_settling_velocity(grain_diameter: Union[float, int, Sequence[float], numpy.ndarray], specific_gravity: Union[float, int, Sequence[float], numpy.ndarray] = 2.65, kinematic_viscosity: Union[float, int, Sequence[float], numpy.ndarray] = 1e-06, system: Literal['si', 'us'] = 'si') -> Union[float, numpy.ndarray]
Community Contributions & Errata Policy
For minor corrections, typographical adjustments, or minor documentation enhancements, users and developers are warmly encouraged to correct or submit pull requests independently via GitHub.
For any major corrections, foundational algorithmic inquiries, theoretical discrepancies, or collaborative engineering reviews, please contact the author directly at: ajaybhattarai986@gmail.com or ajaybhattarai360@gmail.com.
Your direct feedback facilitates rapid verification, continuous refinement, and the maintenance of an error-free, open-source standard for the global civil engineering community.
Academic Citation (BibTeX)
If you utilize HydroAj in research papers, master's/doctoral theses, or engineering design briefs, please cite:
@software{bhattarai2026hydroaj,
author = {Bhattarai, Ajay},
title = {{HydroAj: High-Performance Water Resources Engineering Computational Framework}},
year = {2026},
publisher = {GitHub},
version = {0.1.0},
url = {https://github.com/ajaybhattarai-123/hydroaj},
note = {Open-source hybrid Rust-Python library. Available on PyPI: https://pypi.org/project/hydroaj/}
}