HydroAj Logo

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:

bash
pip install hydroaj

Running HydroAj in Google Colab (Linux)

Pedagogical Note for Google Colab Users

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:

Google Colab Cell
# 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

Physical Dimensional Integrity

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:

EngineTime (1M rows)ThroughputSpeedup
Pure Python (for-loop)1.842 s542,800 rows/s1.0x (Baseline)
NumPy (Vectorized C)0.082 s12,195,000 rows/s22.5x
HydroAj Rust SIMD Engine0.019 s52,631,000 rows/s97.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.

Python Usage Example (hydraulics)
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.

$$C = \frac{87}{1 + \frac{\gamma}{\sqrt{R_h}}}$$
Where,
Rh = Hydraulic radius R_h = A / P (m)
γ = Input parameter (SI units)
Tp = Runoff / discharge coefficient (-)
Python API: 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.

$$y_2 = \frac{y_1}{2} \left(\sqrt{1 + 8\,\text{Fr}_1^2} - 1\right)$$
Where,
y1 = Supercritical initial depth y_1 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Hydraulic head / depth (m)
Python API: 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:.

$$f = \frac{0.3164}{\text{Re}^{0.25}}$$
Where,
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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).

$$\sigma = \frac{P_{\text{abs}} - P_v}{\frac{1}{2} \rho V^2}$$
Where,
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)
Python API: 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.

$$cavitation_velocity(pressure_abs, vapor_pressure, \sigma_critical, density)$$
Where,
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)
Python API: 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).

$$h_L = K_c \cdot |V_2^2 - V_1^2| / (2g).$$
Where,
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)
Python API: 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).

$$h_L = K_e \cdot (V_1 - V_2)^2 / (2g).$$
Where,
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)
Python API: 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.

$$C = \frac{V}{\sqrt{R_h S_0}}$$
Where,
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 (-)
Python API: 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.

$$C = \frac{V}{\sqrt{R_h S_0}}$$
Where,
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 (-)
Python API: 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).

$$R_h = \frac{V^2}{C^2 S_0}$$
Where,
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)
Python API: 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).

$$R_h = \frac{V^2}{C^2 S_0}$$
Where,
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)
Python API: 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.

$$S_0 = \frac{V^2}{C^2 R_h}$$
Where,
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)
Python API: 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.

$$S_0 = \frac{V^2}{C^2 R_h}$$
Where,
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)
Python API: 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.

$$V = C \sqrt{R_h S_0}$$
Where,
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)
Python API: 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.

$$V = C \sqrt{R_h S_0}$$
Where,
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)
Python API: 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).

$$churchill(relative_roughness, reynolds)$$
Where,
n = Input parameter (SI units)
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\frac{1}{\sqrt{f}} = -2.0 \log_{10}\left(\frac{\varepsilon}{3.7 D} + \frac{2.51}{\text{Re}\sqrt{f}}\right)$$
Where,
n = Input parameter (SI units)
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$a = (2 \cdot L) / T_c$$
Where,
t = Time parameter (hours)
L = Reach / conduit / flow path length L (m)
Tp = Area (km² if 'km' in fn else 'm²')
Python API: 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.

$$a = (2 \cdot L) / T_c$$
Where,
t = Time parameter (hours)
L = Reach / conduit / flow path length L (m)
Tp = Area (km² if 'km' in fn else 'm²')
Python API: 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.

$$L = (T_c \cdot a) / 2$$
Where,
t = Time parameter (hours)
celerity = Input parameter (SI units)
Tp = Length (km if 'km' in fn else 'm')
Python API: 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.

$$L = (T_c \cdot a) / 2$$
Where,
t = Time parameter (hours)
celerity = Input parameter (SI units)
Tp = Length (km if 'km' in fn else 'm')
Python API: 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.

$$T_c = \frac{2L}{a}$$
Where,
L = Reach / conduit / flow path length L (m)
celerity = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$T_c = \frac{2L}{a}$$
Where,
L = Reach / conduit / flow path length L (m)
celerity = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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).

$$q = \sqrt{g \cdot y_c^3}$$
Where,
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)
Python API: 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).

$$y_c = \sqrt[3]{\frac{q^2}{g}}$$
Where,
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)
Python API: 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.

$$y_c = \sqrt[3]{\frac{q^2}{g}} = \sqrt[3]{\frac{(Q/b)^2}{g}}$$
Where,
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)
Python API: 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).

$$Q = \sqrt(0.5 \cdot g \cdot z^2 \cdot y_c^5)$$
Where,
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)
Python API: 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.

$$y_c = \left(\frac{2 Q^2}{g m^2}\right)^{1/5}$$
Where,
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)
Python API: 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.

$$y_c = \left(\frac{2 Q^2}{g m^2}\right)^{1/5}$$
Where,
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)
Python API: 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).

$$q = \sqrt{g \cdot y_c^3}$$
Where,
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)
Python API: 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).

$$Q = \sqrt(0.5 \cdot g \cdot z^2 \cdot y_c^5)$$
Where,
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)
Python API: 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.

$$D_h = V_c^2 / g$$
Where,
V = Flow velocity (m/s)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Flow velocity (m/s)
Python API: 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.

$$S_c = \frac{g n^2}{k^2 R_{hc}^{4/3}}$$
Where,
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)
Python API: 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.

$$system : {'si', 'us'}, default='si'$$
Where,
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)
Python API: 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.

$$system : {'si', 'us'}, default='si'$$
Where,
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)
Python API: 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.

$$S_c = \frac{g n^2}{k^2 R_{hc}^{4/3}}$$
Where,
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)
Python API: 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.

$$V_c = \sqrt{g D_h} = \sqrt{g \frac{A}{T}}$$
Where,
Dh = Flow depth (m)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Flow velocity (m/s)
Python API: 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.

$$D_h = V_c^2 / g$$
Where,
V = Flow velocity (m/s)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Flow velocity (m/s)
Python API: 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.

$$V_c = \sqrt{g D_h} = \sqrt{g \frac{A}{T}}$$
Where,
Dh = Flow depth (m)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Flow velocity (m/s)
Python API: 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).

$$h_e = K_e \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$\frac{HW_i}{D} = c \left(\frac{Q}{A \sqrt{D}}\right)^2 + Y - 0.5 S$$
Where,
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)
Python API: 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.

$$\frac{HW_i}{D} = \frac{H_c}{D} + K \left(\frac{Q}{A \sqrt{D}}\right)^M - 0.5 S$$
Where,
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)
Python API: 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.

$$HW_o = h_o + H - L S_0 \quad H = \left( 1 + K_e + \frac{29 n^2 L}{R_h^{4/3}} \right) \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$h_f = f \cdot \left(\frac{L}{D}\right) \cdot \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$D = f \cdot \left(\frac{L}{h_f}\right) \cdot \frac{V^2}{2g}$$
Where,
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')
Python API: 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.

$$D = f \cdot \left(\frac{L}{h_f}\right) \cdot \frac{V^2}{2g}$$
Where,
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')
Python API: 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.

$$Q = \frac{\pi D^2}{4} \sqrt{\frac{2 g h_f D}{f L}}$$
Where,
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)
Python API: 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.

$$f = h_f \cdot \left(\frac{D}{L}\right) \cdot \frac{2g}{V^2}$$
Where,
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)
Python API: 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.

$$f = h_f \cdot \left(\frac{D}{L}\right) \cdot \frac{2g}{V^2}$$
Where,
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)
Python API: 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.

$$h_f = f \cdot \left(\frac{L}{D}\right) \cdot \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$h_f = f \cdot \left(\frac{L}{D}\right) \cdot \frac{V^2}{2g}$$
Where,
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)
Python API: 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).

$$L = \frac{h_f D \cdot 2g}{f V^2}$$
Where,
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')
Python API: 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).

$$L = \frac{h_f D \cdot 2g}{f V^2}$$
Where,
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')
Python API: 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.

$$Q = \frac{\pi D^2}{4} \sqrt{\frac{2 g h_f D}{f L}}$$
Where,
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)
Python API: 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.

$$V = \sqrt{\frac{2 g h_f D}{f L}}$$
Where,
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)
Python API: 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.

$$V = \sqrt{\frac{2 g h_f D}{f L}}$$
Where,
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)
Python API: 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:.

$$Delta_x = (E_2 - E_1) / (S_0 - 0.5 \cdot (S_f1 + S_f2))$$
Where,
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)
Python API: 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.

$$D_e = \left( \frac{L_{total}}{\sum_{i=1}^N \frac{L_i}{D_i^5}} \right)^{1/5}$$
Where,
L = Length (m)
sumratio = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$f = (K_L \cdot D) / L_e$$
Where,
L = Length (m)
losscoeff = Input parameter (-)
D = Internal conduit / pipe diameter D (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$f = (K_L \cdot D) / L_e$$
Where,
L = Length (m)
losscoeff = Input parameter (-)
D = Internal conduit / pipe diameter D (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$K_L = (f \cdot L_e) / D$$
Where,
L = Length (m)
D = Internal conduit / pipe diameter D (m)
f = Darcy-Weisbach friction factor f (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$L_e = \frac{K_L D}{f}$$
Where,
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')
Python API: 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.

$$L_e = \frac{K_L D}{f}$$
Where,
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')
Python API: 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.

$$K_L = (f \cdot L_e) / D$$
Where,
L = Length (m)
D = Internal conduit / pipe diameter D (m)
f = Darcy-Weisbach friction factor f (-)
Tp = Computed numerical result (standard SI units)
Python API: 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).

$$D_h = V^2 / (g \cdot Fr^2)$$
Where,
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)
Python API: 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.

$$Fr = \frac{V}{\sqrt{g D_h}}$$
Where,
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)
Python API: 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).

$$D_h = V^2 / (g \cdot Fr^2)$$
Where,
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)
Python API: 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).

$$\text{Fr} = \frac{V}{\sqrt{g D_h}}$$
Where,
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)
Python API: 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.

$$V = Fr \sqrt{g D_h}$$
Where,
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)
Python API: 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.

$$V = Fr \sqrt{g D_h}$$
Where,
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)
Python API: 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.

$$\theta = 2 \arccos\left(1 - \frac{2y}{D}\right) \quad A = \frac{D^2}{8} (\theta - \sin\theta) \quad P = \frac{D \theta}{2} \quad R_h = \frac{A}{P} \quad T = D \sin\left(\frac{\theta}{2}\right) \quad D_h = \frac{A}{T}$$
Where,
D = Internal conduit / pipe diameter D (m)
y = Water flow depth y (m)
Tp = Geometric properties tuple (Area (m)
Python API: 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.

$$A = \frac{2}{3} T y \quad P \approx T + \frac{8 y^2}{3 T} \quad R_h = \frac{A}{P} \quad D_h = \frac{2}{3} y \quad \bar{y} = \frac{2}{5} y$$
Where,
T = Channel free-surface top width T (m)
y = Water flow depth y (m)
Tp = Geometric properties tuple (Area (m)
Python API: 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.

$$A = b \cdot y \quad P = b + 2y \quad R_h = \frac{A}{P} = \frac{b \cdot y}{b + 2y} \quad T = b \quad D_h = \frac{A}{T} = y \quad \bar{y} = \frac{y}{2}$$
Where,
b = Channel base width b (m)
y = Water flow depth y (m)
Tp = Geometric properties tuple (Area (m)
Python API: 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.

$$A = (b + m y) y \quad P = b + 2 y \sqrt{1 + m^2} \quad R_h = \frac{A}{P} \quad T = b + 2 m y \quad D_h = \frac{A}{T} \quad \bar{y} = \frac{y(2b + m y)}{3(b + m y)}$$
Where,
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)
Python API: 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.

$$A = m y^2 \quad P = 2 y \sqrt{1 + m^2} \quad R_h = \frac{A}{P} \quad T = 2 m y \quad D_h = \frac{y}{2} \quad \bar{y} = \frac{y}{3}$$
Where,
m = Side slope ratio m (1V : mH) (-)
y = Water flow depth y (m)
Tp = Geometric properties tuple (Area (m)
Python API: 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.

$$c = \sqrt{g D_h} = \sqrt{g \frac{A}{T}}$$
Where,
Dh = Flow depth (m)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\frac{dy}{dx} = \frac{S_0 - S_f}{1 - Fr^2}$$
Where,
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)
Python API: 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.

$$haaland(relative_roughness, reynolds)$$
Where,
n = Input parameter (SI units)
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\Delta Q = -\frac{\sum r Q |Q|^{n - 1}}{n \sum r |Q|^{n - 1}}$$
Where,
hf = Hydraulic head (m)
sumderivative = Input parameter (SI units)
nexp = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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:.

$$h_f = (k_hw \cdot L \cdot Q^1.852) / (C^1.852 \cdot D^4.87)$$
Where,
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)
Python API: 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).

$$C = ((k_L \cdot L \cdot Q^1.852) / (h_f \cdot D^4.8704))^{1 / 1.852}$$
Where,
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 (-)
Python API: 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.

$$D = \left( \frac{k_{hw} L Q^{1.852}}{h_f C^{1.852}} \right)^{\frac{1}{4.87}}$$
Where,
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')
Python API: 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.

$$D = \left( \frac{k_{hw} L Q^{1.852}}{h_f C^{1.852}} \right)^{\frac{1}{4.87}}$$
Where,
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')
Python API: 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.

$$Q = \left( \frac{h_f C^{1.852} D^{4.87}}{k_{hw} L} \right)^{\frac{1}{1.852}}$$
Where,
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)
Python API: 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.

$$h_f = \frac{k_{hw} L Q^{1.852}}{C^{1.852} D^{4.87}}$$
Where,
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)
Python API: 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.

$$h_f = \frac{k_{hw} L Q^{1.852}}{C^{1.852} D^{4.87}}$$
Where,
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)
Python API: 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).

$$L = (h_f \cdot C^1.852 \cdot D^4.8704) / (k_L \cdot Q^1.852)$$
Where,
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')
Python API: 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).

$$L = (h_f \cdot C^1.852 \cdot D^4.8704) / (k_L \cdot Q^1.852)$$
Where,
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')
Python API: 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.

$$Q = \left( \frac{h_f C^{1.852} D^{4.87}}{k_{hw} L} \right)^{\frac{1}{1.852}}$$
Where,
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)
Python API: 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).

$$C = ((k_L \cdot L \cdot Q^1.852) / (h_f \cdot D^4.8704))^{1 / 1.852}$$
Where,
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 (-)
Python API: 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).

$$S = (V / (k_v \cdot C \cdot R_h^0.63))^{1 / 0.54}$$
Where,
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)
Python API: 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).

$$S = (V / (k_v \cdot C \cdot R_h^0.63))^{1 / 0.54}$$
Where,
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)
Python API: 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.

$$V = k_v C R_h^{0.63} S^{0.54}$$
Where,
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)
Python API: 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.

$$V = k_v C R_h^{0.63} S^{0.54}$$
Where,
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)
Python API: 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.

$$\bar{n} = \left(\frac{\sum_{i=1}^N P_i n_i^{3/2}}{\sum_{i=1}^N P_i}\right)^{2/3}$$
Where,
perimeters = Input parameter (SI units)
n = Input parameter (SI units)
Tp = Roughness coefficient (s/m1/3 or dimensionless)
Python API: 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_1 = \frac{y_2}{2} \left(\sqrt{1 + 8 Fr_2^2} - 1\right)$$
Where,
y = Subcritical sequent flow depth y_2 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\frac{E_2}{E_1} = \frac{(1 + 8 Fr_1^2)^{3/2} - 4 Fr_1^2 + 1}{8 Fr_1^2 (2 + Fr_1^2)}$$
Where,
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Fr_1 = \sqrt{\frac{1}{8} \left[ \left(\frac{2 y_2}{y_1} + 1\right)^2 - 1 \right]}$$
Where,
y = Supercritical initial flow depth y_1 (m)
y = Subcritical sequent flow depth y_2 (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Fr_1 = \sqrt{\frac{1}{8} \left[ \left(\frac{2 y_2}{y_1} + 1\right)^2 - 1 \right]}$$
Where,
y = Supercritical initial flow depth y_1 (m)
y = Subcritical sequent flow depth y_2 (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\Delta E = E_1 - E_2 = \frac{(y_2 - y_1)^3}{4 y_1 y_2}$$
Where,
y1 = Supercritical initial depth y_1 (m)
y2 = Subcritical conjugate depth y_2 (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$h_j = y_2 - y_1$$
Where,
y1 = Flow depth (m)
y2 = Flow depth (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$L_j \approx 6.0 (y_2 - y_1)$$
Where,
y1 = Supercritical initial depth y_1 (m)
y2 = Subcritical conjugate depth y_2 (m)
Tp = Length (km if 'km' in fn else 'm')
Python API: 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_1 = \frac{y_2}{2} \left(\sqrt{1 + 8 Fr_2^2} - 1\right)$$
Where,
y = Subcritical sequent flow depth y_2 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$y_2 = \frac{y_1}{2} \left(\sqrt{1 + 8\,\text{Fr}_1^2} - 1\right)$$
Where,
y1 = Supercritical initial depth y_1 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Hydraulic head / depth (m)
Python API: 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.

$$Joukowsky pressure head rise: Delta_H = (a \cdot Delta_V) / g$$
Where,
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)
Python API: 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).

$$a = delta_P / (\rho \cdot delta_V)$$
Where,
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²')
Python API: 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).

$$a = delta_P / (\rho \cdot delta_V)$$
Where,
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²')
Python API: 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).

$$delta_V = delta_P / (\rho \cdot a)$$
Where,
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)
Python API: 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.

$$Joukowsky water hammer pressure rise: Delta_P = \rho \cdot a \cdot Delta_V$$
Where,
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)
Python API: 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).

$$delta_V = delta_P / (\rho \cdot a)$$
Where,
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)
Python API: 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.

$$Joukowsky water hammer pressure rise: Delta_P = \rho \cdot a \cdot Delta_V$$
Where,
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)
Python API: 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).

$$y = (V_0 / (k \cdot m))^{1 / 0.64}.$$
Where,
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)
Python API: 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.

$$SI: V_0 = 0.55 \cdot m \cdot y^0.64 [y in m, V_0 in m/s]$$
Where,
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)
Python API: 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.

$$C = \frac{23 + \frac{0.00155}{S_0} + \frac{1}{n}}{1 + \left(23 + \frac{0.00155}{S_0}\right) \frac{n}{\sqrt{R_h}}}$$
Where,
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 (-)
Python API: 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].

$$d_50 = (f / 1.76)^2 [mm].$$
Where,
siltfactor = Lacey's silt factor f (-)
Tp = Diameter (mm if 'd50' in fn else 'm')
Python API: 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].

$$R = 0.48 \cdot (Q / f)^{1/3} [m].$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
siltfactor = Lacey's silt factor f (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Q = (P / 4.75)^2.$$
Where,
wettedperimeter = Wetted perimeter P (m)
Tp = Volumetric flow discharge (m³/s)
Python API: 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].

$$R_scour = 0.473 \cdot (Q / f)^{1/3} [m].$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
siltfactor = Lacey's silt factor f (-)
Tp = Hydraulic head / depth (m)
Python API: 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.

$$S = f^{5/3} / (3340 \cdot Q^{1/6}) [dimensionless m/m]$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
siltfactor = Lacey's silt factor f (-)
Tp = Longitudinal bed slope (m/m)
Python API: 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.

$$V = ((Q \cdot f^2) / 140)^{1/6} [Q in m^3/s, V in m/s]$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
siltfactor = Lacey's silt factor f (-)
Tp = Flow velocity (m/s)
Python API: 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.

$$f = 1.76 \cdot \sqrt(d_50) [d_50 in mm]$$
Where,
d50mm = Median sediment grain size d_50 (mm)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Q = (f^{5/3} / (3340 \cdot S))^6.$$
Where,
S0 = Longitudinal bed slope / hydraulic gradient S_0 m/m (decimal)
siltfactor = Lacey's silt factor f (-)
Tp = Volumetric flow discharge (m³/s)
Python API: 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.

$$Q = (140 \cdot V^6) / f^2.$$
Where,
V = Mean cross-sectional flow velocity V (m/s)
siltfactor = Lacey's silt factor f (-)
Tp = Volumetric flow discharge (m³/s)
Python API: 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].

$$P = 4.75 \cdot \sqrt(Q) [m].$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Laminar friction factor: f = 64 / Re$$
Where,
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$A = \frac{Q n}{k R_h^{2/3} S_0^{1/2}}$$
Where,
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²')
Python API: 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.

$$A = \frac{Q n}{k R_h^{2/3} S_0^{1/2}}$$
Where,
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²')
Python API: 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.

$$Q = \frac{1}{n} A R_h^{2/3} S_0^{1/2}$$
Where,
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)
Python API: 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.

$$S_f = \frac{n^2 Q^2}{k^2 A^2 R_h^{4/3}}$$
Where,
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)
Python API: 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.

$$R_h = \left(\frac{Q \cdot n}{A S_0^{1/2}}\right)^{3/2}$$
Where,
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)
Python API: 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.

$$n = \frac{A R_h^{2/3} S_0^{1/2}}{Q}$$
Where,
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)
Python API: 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.

$$Q = \frac{1}{n} A R_h^{2/3} S_0^{1/2}$$
Where,
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)
Python API: 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.

$$R_h = \left(\frac{Q \cdot n}{A S_0^{1/2}}\right)^{3/2}$$
Where,
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)
Python API: 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.

$$n = \frac{A R_h^{2/3} S_0^{1/2}}{Q}$$
Where,
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)
Python API: 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.

$$S_0 = \left(\frac{Q \cdot n}{A R_h^{2/3}}\right)^2$$
Where,
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)
Python API: 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.

$$S_0 = \left(\frac{Q \cdot n}{A R_h^{2/3}}\right)^2$$
Where,
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)
Python API: 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.

$$V = \frac{1}{n} R_h^{2/3} S_0^{1/2}$$
Where,
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)
Python API: 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.

$$V = \frac{1}{n} R_h^{2/3} S_0^{1/2}$$
Where,
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)
Python API: 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.

$$h_m = K_L \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$K_L = \frac{2 g h_m}{V^2}$$
Where,
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)
Python API: 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.

$$h_m = K_L \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$h_m = K_L \frac{V^2}{2g}$$
Where,
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)
Python API: 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.

$$K_L = \frac{2 g h_m}{V^2}$$
Where,
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)
Python API: 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).

$$V = \sqrt((2 \cdot g \cdot h_m) / K_L)$$
Where,
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)
Python API: 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).

$$V = \sqrt((2 \cdot g \cdot h_m) / K_L)$$
Where,
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)
Python API: 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.

$$Canal side slope ratio m (1V : mH) [dimensionless in SI, dimensionless in US]. Bounds: >= 0.$$
Where,
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)
Python API: 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.

$$b = 2 y \quad R_h = \frac{y}{2} \quad A = 2 y^2 \quad P = 4 y$$
Where,
y = Water flow depth y (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$m = \frac{1}{\sqrt{3}} \quad b = \frac{2}{\sqrt{3}} y \quad R_h = \frac{y}{2} \quad A = \sqrt{3} y^2$$
Where,
y = Water flow depth y (m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$m = 1.0 \quad R_h = \frac{y}{2 \sqrt{2}} \quad A = y^2 \quad P = 2 \sqrt{2} y$$
Where,
y = Water flow depth y (m)
Tp = Computed numerical result (standard SI units)
Python API: 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_i = Q_{total} \frac{\sqrt{D_i^5 / L_i}}{\sum_{j=1}^M \sqrt{D_j^5 / L_j}}$$
Where,
Q = Volumetric discharge rate (m³/s)
branchconductance = Input parameter (SI units)
sumconductance = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\bar{n} = \sqrt{\frac{\sum_{i=1}^N P_i n_i^2}{\sum_{i=1}^N P_i}}$$
Where,
perimeters = Input parameter (SI units)
n = Input parameter (SI units)
Tp = Roughness coefficient (s/m1/3 or dimensionless)
Python API: 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.

$$P_b = \frac{P_w}{\eta}$$
Where,
waterpower = Input parameter (SI units)
efficiency = Overall wire-to-water pump efficiency eta dimensionless decimal (0 - 1)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$eta = P_w / P_b$$
Where,
waterpower = Input parameter (SI units)
brakepower = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$eta = P_w / P_b$$
Where,
waterpower = Input parameter (SI units)
brakepower = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$P_b = \frac{P_w}{\eta}$$
Where,
waterpower = Input parameter (SI units)
efficiency = Overall wire-to-water pump efficiency eta dimensionless decimal (0 - 1)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$P_w = P_b \cdot eta$$
Where,
brakepower = Input parameter (SI units)
efficiency = Overall wire-to-water pump efficiency eta dimensionless decimal (0 - 1)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$P_w = P_b \cdot eta$$
Where,
brakepower = Input parameter (SI units)
efficiency = Overall wire-to-water pump efficiency eta dimensionless decimal (0 - 1)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$D = (Re \cdot nu) / V$$
Where,
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')
Python API: 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.

$$D = (Re \cdot nu) / V$$
Where,
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')
Python API: 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.

$$Re = \frac{V D}{\nu} = \frac{\rho V D}{\mu}$$
Where,
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)
Python API: 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.

$$Re = \frac{V D}{\nu} = \frac{\rho V D}{\mu}$$
Where,
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)
Python API: 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.

$$V = \frac{Re \cdot \nu}{D}$$
Where,
Re = Reynolds number Re = V * D / nu (-)
D = Internal conduit / pipe diameter D (m)
ν = Input parameter (SI units)
Tp = Flow velocity (m/s)
Python API: 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.

$$V = \frac{Re \cdot \nu}{D}$$
Where,
Re = Reynolds number Re = V * D / nu (-)
D = Internal conduit / pipe diameter D (m)
ν = Input parameter (SI units)
Tp = Flow velocity (m/s)
Python API: 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.

$$E = y + \frac{Q^2}{2 g A^2} = y + \frac{V^2}{2 g}$$
Where,
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)
Python API: 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.

$$E = y + \frac{Q^2}{2 g A^2} = y + \frac{V^2}{2 g}$$
Where,
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)
Python API: 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.

$$V = \sqrt{2 g (E - y)}$$
Where,
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)
Python API: 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.

$$V = \sqrt{2 g (E - y)}$$
Where,
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)
Python API: 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.

$$M = \frac{Q^2}{g A} + \bar{y} A$$
Where,
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)
Python API: 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.

$$k_{st} = \frac{V}{R_h^{2/3} S_0^{1/2}}$$
Where,
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)
Python API: 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.

$$k_{st} = \frac{V}{R_h^{2/3} S_0^{1/2}}$$
Where,
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)
Python API: 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.

$$S_0 = \left( \frac{V}{k_{st} R_h^{2/3}} \right)^2$$
Where,
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)
Python API: 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.

$$S_0 = \left( \frac{V}{k_{st} R_h^{2/3}} \right)^2$$
Where,
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)
Python API: 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.

$$V = k_{st} R_h^{2/3} S_0^{1/2}$$
Where,
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)
Python API: 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.

$$V = k_{st} R_h^{2/3} S_0^{1/2}$$
Where,
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)
Python API: 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.

$$f = \frac{0.25}{\left[\log_{10}\left(\frac{\varepsilon}{3.7 D} + \frac{5.74}{\text{Re}^{0.9}}\right)\right]^2}$$
Where,
n = Input parameter (SI units)
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$P_w = \frac{\rho g Q H}{1000} \quad \text{(kW, SI)} \quad P_w = \frac{\gamma Q H}{550} \quad \text{(hp, US)}$$
Where,
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)
Python API: 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.

$$Q = \frac{P_w k_{pow}}{\gamma H}$$
Where,
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)
Python API: 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).

$$H = (P_w \cdot divisor) / (\gamma \cdot Q)$$
Where,
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)
Python API: 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).

$$H = (P_w \cdot divisor) / (\gamma \cdot Q)$$
Where,
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)
Python API: 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.

$$P_w = \frac{\rho g Q H}{1000} \quad \text{(kW, SI)} \quad P_w = \frac{\gamma Q H}{550} \quad \text{(hp, US)}$$
Where,
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)
Python API: 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.

$$Q = \frac{P_w k_{pow}}{\gamma H}$$
Where,
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)
Python API: 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))).

$$Water hammer wave celerity: a = \sqrt((K / \rho) / (1 + (K / E) \cdot (D / e)))$$
Where,
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)
Python API: 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.

$$wood(relative_roughness, reynolds)$$
Where,
n = Input parameter (SI units)
Re = Reynolds number Re = V * D / nu (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

Python Usage Example (hydrology)
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.

$$baseflow_lyne_hollick(streamflow, alpha)$$
Where,
Q = Input parameter (SI units)
alpha = Priestley-Taylor radiation coefficient alpha dimensionless (~1.26)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$ET_0 = p \cdot (0.46 \cdot T_mean + 8.13) [ET_0 in mm/day, p is % of annual daytime hours]$$
Where,
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)
Python API: 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.

$$T = (ET_0 / p - 8.13) / 0.46.$$
Where,
et0 = Reference evapotranspiration ET_0 (mm/day)
sunshinep_percent = Percentage of annual daytime hours p (dimensionless %)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$bransby_williams_a(tc, length_km, slope_m_per_km)$$
Where,
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²')
Python API: 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.

$$bransby_williams_l(tc, area_km2, slope_m_per_km)$$
Where,
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')
Python API: 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.

$$bransby_williams_s(tc, length_km, area_km2)$$
Where,
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)
Python API: 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).

$$T_c = (58.5 \cdot L) / (A^0.1 \cdot S^0.2) [L in km, A in km^2, S in m/km, Tc in min]$$
Where,
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)
Python API: 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).

$$P = (m - 0.4) / (N + 0.2).$$
Where,
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)
Python API: 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).

$$A = (Q / C_D)^{4/3}.$$
Where,
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²')
Python API: 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).

$$C_D = Q / A^{3/4}.$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
A = Catchment watershed drainage area A (km²)
Tp = Runoff / discharge coefficient (-)
Python API: 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.

$$Q = C_D \cdot A^{3/4} [A in km^2, Q in m^3/s]$$
Where,
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)
Python API: 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.

$$faa_c(tc, length, slope, system)$$
Where,
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 (-)
Python API: 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.

$$faa_l(tc, slope, runoff_coeff, system)$$
Where,
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')
Python API: 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.

$$faa_s(tc, length, runoff_coeff, system)$$
Where,
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)
Python API: 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.

$$SI: T_c = (3.26 \cdot (1.1 - C) \cdot \sqrt(L)) / (S^0.3333) [L in m, S in %, Tc in min]$$
Where,
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)
Python API: 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.

$$fao56_net_radiation(et0, temp_c, wind_speed_2m, es, ea, delta_slope, psychrometric_\gamma, soil_heat_flux)$$
Where,
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)
Python API: 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.

$$ET_0 = [0.408 \cdot Delta \cdot (R_n - G) + \gamma \cdot (900 / (T + 273)) \cdot u_2 \cdot (e_s - e_a)] / [Delta + \gamma \cdot (1 + 0.34 \cdot u_2)]$$
Where,
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)
Python API: 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.

$$Q_T = C_F \cdot A^0.8 \cdot (1 + 0.8 \cdot log10(T)) [A in sq. mi, T in years, Q in cfs]$$
Where,
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)
Python API: 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.

$$fuller_return_period(discharge, area_sq_mi, c_f)$$
Where,
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)
Python API: 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.

$$t_p = (K \cdot psi \cdot Delta_\theta) / (i \cdot (i - K)) [Valid for i > K]$$
Where,
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)
Python API: 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.

$$f(t) = K_s \left(1 + \frac{\psi \cdot \Delta\theta}{F}\right)$$
Where,
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)
Python API: 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).

$$P = (m - 0.44) / (N + 0.12).$$
Where,
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)
Python API: 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.

$$x_T = mean + K_T \cdot std_dev.$$
Where,
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)
Python API: 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.

$$X_T = \bar{X} + K_T \sigma_X \quad K_T = -\frac{\sqrt{6}}{\pi} \left[ 0.5772 + \ln\left( \ln\left(\frac{T}{T - 1}\right) \right) \right]$$
Where,
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)
Python API: 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.

$$gumbel_frequency_factor(return_period)$$
Where,
returnperiod = Design recurrence interval / return period T (years)
Tp = Computed numerical result (standard SI units)
Python API: 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)).

$$y_T = -ln(-ln(1 - 1/T)).$$
Where,
returnperiod = Design recurrence interval / return period T (years)
Tp = Computed numerical result (standard SI units)
Python API: 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))).

$$T = 1 / (1 - exp(-exp(-y_T))).$$
Where,
reducedvariate = Gumbel EV1 reduced variate y_T (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$gumbel_return_period_from_flood(observed_flood, mean, std_dev)$$
Where,
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)
Python API: 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).

$$Hargreaves reference ET: ET_0 = 0.0023 \cdot R_a \cdot (T_mean + 17.8) \cdot \sqrt(T_max - T_min)$$
Where,
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)
Python API: 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)).

$$R_a = ET_0 / (0.0023 \cdot (T_mean + 17.8) \cdot \sqrt(T_max - T_min))$$
Where,
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)
Python API: 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)).

$$R_a = ET_0 / (0.0023 \cdot (T_mean + 17.8) \cdot \sqrt(T_max - T_min))$$
Where,
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)
Python API: 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.

$$ET_0 = 0.0023 R_a (\bar{T} + 17.8) \sqrt{T_{max} - T_{min}}$$
Where,
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)
Python API: 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)).

$$f_c = (f_p - f_0 \cdot exp(-k*t)) / (1 - exp(-k*t))$$
Where,
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)
Python API: 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)).

$$Horton cumulative infiltration: F = f_c \cdot t + ((f_0 - f_c) / k) \cdot (1 - exp(-k \cdot t))$$
Where,
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)
Python API: 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.

$$k = -\frac{1}{t} \ln\left( \frac{f_p - f_c}{f_0 - f_c} \right)$$
Where,
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)
Python API: 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).

$$f_0 = f_c + (f_p - f_c) \cdot exp(k \cdot t)$$
Where,
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)
Python API: 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).

$$Horton infiltration rate: f_p = f_c + (f_0 - f_c) \cdot exp(-k \cdot t)$$
Where,
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)
Python API: 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).

$$f_0 = f_c + (f_p - f_c) \cdot exp(k \cdot t)$$
Where,
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)
Python API: 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)).

$$f_c = (f_p - f_0 \cdot exp(-k*t)) / (1 - exp(-k*t))$$
Where,
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)
Python API: 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.

$$f_p = f_c + (f_0 - f_c) e^{-k t}$$
Where,
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)
Python API: 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.

$$k = -\frac{1}{t} \ln\left( \frac{f_p - f_c}{f_0 - f_c} \right)$$
Where,
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)
Python API: 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.

$$i = \frac{a}{(t_d + b)^c}$$
Where,
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)
Python API: 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.

$$inglis_area(discharge)$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
Tp = Area (km² if 'km' in fn else 'm²')
Python API: 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.

$$Q = (124 \cdot A) / \sqrt(A + 10.4) [A in km^2, Q in m^3/s]$$
Where,
A = Catchment watershed drainage area A (km²)
Tp = Volumetric flow discharge (m³/s)
Python API: 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.

$$kerby_l(tc, slope, roughness_n, system)$$
Where,
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')
Python API: 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.

$$kerby_n(tc, length, slope, system)$$
Where,
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)
Python API: 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.

$$kerby_s(tc, length, roughness_n, system)$$
Where,
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)
Python API: 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.

$$SI: T_c = 1.439 \cdot ((L \cdot n) / \sqrt(S))^0.467 [L in m, S in m/m, Tc in min]$$
Where,
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)
Python API: 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).

$$L = (t_c \cdot S^0.385 / k)^{1 / 0.77}$$
Where,
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')
Python API: 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).

$$L = (t_c \cdot S^0.385 / k)^{1 / 0.77}$$
Where,
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')
Python API: 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).

$$S = (k \cdot L^0.77 / t_c)^{1 / 0.385}$$
Where,
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)
Python API: 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).

$$S = (k \cdot L^0.77 / t_c)^{1 / 0.385}$$
Where,
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)
Python API: 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):.

$$T_c = 0.0195 \cdot L^{0.77} S^{-0.385}$$
Where,
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)
Python API: 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.

$$F(t) = a \cdot t^b [F in mm or cm, t in hr]$$
Where,
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)
Python API: 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).

$$f_p(t) = a \cdot b \cdot t^{b - 1} [0 < b < 1, t in hr]$$
Where,
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)
Python API: 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).

$$t = (F / a)^{1 / b}.$$
Where,
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)
Python API: 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).

$$log_pearson_3_flood(log_mean, log_std_dev, skewness, return_period)$$
Where,
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)
Python API: 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.

$$C_0 = \frac{\Delta t - 2 K X}{2 K (1 - X) + \Delta t} \quad C_1 = \frac{\Delta t + 2 K X}{2 K (1 - X) + \Delta t} \quad C_2 = \frac{2 K (1 - X) - \Delta t}{2 K (1 - X) + \Delta t}$$
Where,
t = Time parameter (hours)
weightingfactor_x = Input parameter (SI units)
t = Time parameter (hours)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$muskingum_cunge_parameters(length, slope, bottom_width, discharge, roughness_n, system)$$
Where,
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)
Python API: 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[j+1] = C_0 \cdot I[j+1] + C_1 \cdot I[j] + C_2 \cdot Q[j]$$
Where,
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)
Python API: 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.

$$u(t) = \frac{1}{K \Gamma(n)} \left(\frac{t}{K}\right)^{n - 1} e^{-t / K}$$
Where,
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)
Python API: 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).

$$A = (Q / C_N)^{6/5}.$$
Where,
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²')
Python API: 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).

$$C_N = Q / A^{5/6}.$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
A = Catchment watershed drainage area A (km²)
Tp = Runoff / discharge coefficient (-)
Python API: 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).

$$Q = C_N \cdot A^{5/6} [A in km^2, Q in m^3/s]$$
Where,
A = Catchment watershed drainage area A (km²)
cn = Nawab Jung coefficient C_N dimensionless (48.0 - 60.0)
Tp = Volumetric flow discharge (m³/s)
Python API: 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.

$$R_{n,mm} = \frac{R_n \cdot 10^6}{\rho_w \lambda_v}$$
Where,
netradiation_mj = Input parameter (SI units)
latentheat_vaporization = Input parameter (SI units)
ρ = Input parameter (SI units)
Tp = Reference evapotranspiration (mm/day)
Python API: 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.

$$F(t) = S \cdot t^{1/2} + A \cdot t [F in mm, t in hr]$$
Where,
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)
Python API: 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).

$$f_p(t) = 0.5 \cdot S \cdot t^{-1/2} + A [S in mm/hr^0.5, A in mm/hr, t in hr]$$
Where,
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)
Python API: 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).

$$S = (F - A \cdot t) / \sqrt(t).$$
Where,
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)
Python API: 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).

$$ET = alpha \cdot [Delta / (Delta + \gamma)] \cdot [(R_n - G) / lambda] [lambda = 2.45 MJ/kg]$$
Where,
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)
Python API: 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.

$$A = \frac{Q}{0.2778 \cdot C \cdot I}$$
Where,
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²')
Python API: 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.

$$C = \frac{Q}{0.2778 \cdot I \cdot A}$$
Where,
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 (-)
Python API: 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.

$$A = \frac{Q}{0.2778 \cdot C \cdot I}$$
Where,
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²')
Python API: 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).

$$I = \frac{Q}{0.2778 \cdot C \cdot A}$$
Where,
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)
Python API: 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).

$$I = \frac{Q}{0.2778 \cdot C \cdot A}$$
Where,
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)
Python API: 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.

$$Q = 0.2778 \cdot C \cdot I \cdot A$$
Where,
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)
Python API: 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.

$$Q = 0.2778 \cdot C \cdot I \cdot A$$
Where,
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)
Python API: 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.

$$C = \frac{Q}{0.2778 \cdot I \cdot A}$$
Where,
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 (-)
Python API: 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).

$$A = (Q / C_R)^{3/2}.$$
Where,
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²')
Python API: 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).

$$C_R = Q / A^{2/3}.$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
A = Catchment watershed drainage area A (km²)
Tp = Runoff / discharge coefficient (-)
Python API: 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).

$$Q = C_R \cdot A^{2/3} [A in km^2, Q in m^3/s]$$
Where,
A = Catchment watershed drainage area A (km²)
cr = Ryves' flood coefficient C_R dimensionless (6.8 - 10.2)
Tp = Volumetric flow discharge (m³/s)
Python API: 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.

$$e_s = 0.6108 \cdot exp((17.27 \cdot T) / (T + 237.3)) [e_s in kPa, T in deg C]$$
Where,
tempc = Mean daily air temperature at 2 m height T (deg C)
Tp = Computed numerical result (standard SI units)
Python API: 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_I = \frac{4.2 CN_{II}}{10 - 0.058 CN_{II}}$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$scs_amc_cnii_from_i(cn_i)$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$scs_amc_cnii_from_iii(cn_iii)$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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_{III} = \frac{23 CN_{II}}{10 + 0.13 CN_{II}}$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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_I = \frac{4.2 CN_{II}}{10 - 0.058 CN_{II}}$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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_{III} = \frac{23 CN_{II}}{10 + 0.13 CN_{II}}$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$CN = \frac{k_{cn1}}{S + k_{cn2}}$$
Where,
S = Input parameter (SI units)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Runoff / discharge coefficient (-)
Python API: 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.

$$scs_amc_cnii_from_i(cn_i)$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$scs_amc_cnii_from_iii(cn_iii)$$
Where,
CN = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$P = \lambda S + \frac{Q + \sqrt{Q^2 + 4 Q S}}{2}$$
Where,
y = Flow depth (m)
S = Input parameter (SI units)
Ia = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Q_d = \frac{(P - I_a)^2}{(P - I_a) + S} \quad \text{for } P > I_a$$
Where,
precip = Input parameter (SI units)
S = Potential maximum soil retention S (mm)
lambdaratio = Input parameter (SI units)
Tp = Hydraulic head / depth (m)
Python API: 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:.

$$system : {'si', 'us'}, default='si'$$
Where,
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)
Python API: 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.

$$\bar{CN} = \frac{\sum_{i=1}^M A_i CN_i}{\sum_{i=1}^M A_i}$$
Where,
A = Area (m²)
CN = Input parameter (SI units)
Tp = Runoff / discharge coefficient (-)
Python API: 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.

$$CN = \frac{k_{cn1}}{S + k_{cn2}}$$
Where,
S = Input parameter (SI units)
system = Unit system ('si' for standard metric units, 'us' for US customary units) (-)
Tp = Runoff / discharge coefficient (-)
Python API: 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.

$$t_L = 0.6 \cdot T_c.$$
Where,
Tc = Time of concentration T_c (minutes)
Tp = Time parameter (hours)
Python API: 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:.

$$US: q_p = (484.0 \cdot A) / t_p (A in mi^2, t_p in hr, q_p in cfs)$$
Where,
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)
Python API: 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.

$$P = \lambda S + \frac{Q + \sqrt{Q^2 + 4 Q S}}{2}$$
Where,
y = Flow depth (m)
S = Input parameter (SI units)
Ia = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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:.

$$system : {'si', 'us'}, default='si'$$
Where,
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)
Python API: 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.

$$Q_d = \frac{(P - I_a)^2}{(P - I_a) + S} \quad \text{for } P > I_a$$
Where,
precip = Input parameter (SI units)
S = Potential maximum soil retention S (mm)
lambdaratio = Input parameter (SI units)
Tp = Hydraulic head / depth (m)
Python API: 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.

$$T_p = \frac{\Delta t}{2} + T_L$$
Where,
tr = Excess rainfall storm duration D (hours)
TL = Basin lag time t_L (hours)
Tp = Time parameter (hours)
Python API: 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.

$$A = (q_p \cdot T_p) / k.$$
Where,
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²')
Python API: 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.

$$T_p = (k \cdot A) / q_p.$$
Where,
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)
Python API: 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.

$$SI: q_p = (0.208 \cdot A) / T_p [A in km^2, T_p in hr, q_p in m^3/s]$$
Where,
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)
Python API: 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:.

$$system : {'si', 'us'}, default='si'$$
Where,
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)
Python API: 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.

$$W_50 = 5.87 / (q_p)^1.08 [hr]$$
Where,
unitpeak_q = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$t_p = C_t \cdot (L \cdot L_c)^0.3 [t_p in hours]$$
Where,
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)
Python API: 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.

$$SI: Q_p = (2.78 \cdot C_p \cdot A) / t_p [A in km^2, t_p in hr, Q_p in m^3/s]$$
Where,
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)
Python API: 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:.

$$thiessen_areal(weights, precip)$$
Where,
weights = Input parameter (SI units)
precip = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$Q_j = k_{unit} \sum_{k=1}^j I_{j - k + 1} A_k$$
Where,
effectiveexcess_precip = Input parameter (SI units)
A = Area (m²)
unitconversion = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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].

$$Tt = L / (60 \cdot V) [Tt in min].$$
Where,
L = Reach / conduit / flow path length L (m)
V = Mean cross-sectional flow velocity V (m/s)
Tp = Time parameter (minutes)
Python API: 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].

$$Tc = T_sheet + T_shallow + T_channel [min].$$
Where,
tsheet = Sheet flow travel time (minutes)
tshallow = Shallow concentrated flow travel time (minutes)
tchannel = Open channel reach travel time (minutes)
Tp = Time parameter (minutes)
Python API: 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.

$$V = k_{surface} \sqrt{s}$$
Where,
S0 = Longitudinal bed slope / gradient (m/m)
surfacecoeff = Input parameter (-)
Tp = Flow velocity (m/s)
Python API: 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.

$$S = (V / k)^2$$
Where,
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)
Python API: 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.

$$S = (V / k)^2$$
Where,
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)
Python API: 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).

$$TR-55 shallow concentrated flow velocity: V = k \cdot \sqrt(S)$$
Where,
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)
Python API: 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.

$$T_t = \frac{0.007 (n L)^{0.8}}{P_2^{0.5} s^{0.4}}$$
Where,
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)
Python API: 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].

$$Delta = d(e_s)/dT [kPa / deg C].$$
Where,
tempc = Mean daily air temperature at 2 m height T (deg C)
Tp = Longitudinal bed slope (m/m)
Python API: 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).

$$P = m / (N + 1).$$
Where,
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)
Python API: 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.

Python Usage Example (structures)
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.

$$Q = C_d b \sqrt{g} \left(\frac{2}{3} H\right)^{3/2}$$
Where,
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)
Python API: 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).

$$b = Q / (C_d \cdot \sqrt(g) \cdot (2/3)^1.5 \cdot H^1.5)$$
Where,
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')
Python API: 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).

$$H = (Q / (C_d \cdot b \cdot \sqrt(g) \cdot (2/3)^1.5))^{2/3}$$
Where,
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)
Python API: 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).

$$H = (Q / (C_d \cdot b \cdot \sqrt(g) \cdot (2/3)^1.5))^{2/3}$$
Where,
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)
Python API: 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).

$$b = Q / (C_d \cdot \sqrt(g) \cdot (2/3)^1.5 \cdot H^1.5)$$
Where,
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')
Python API: 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.

$$Q = C_d b \sqrt{g} \left(\frac{2}{3} H\right)^{3/2}$$
Where,
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)
Python API: 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).

$$Z = Z_0 - (V^2 - V_0^2) / (2 \cdot g)$$
Where,
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)
Python API: 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.

$$V = \sqrt{2g (Z_{drop} - H_{loss})}$$
Where,
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)
Python API: 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.

$$V = \sqrt{2g (Z_{drop} - H_{loss})}$$
Where,
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)
Python API: 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).

$$Z = Z_0 - (V^2 - V_0^2) / (2 \cdot g)$$
Where,
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)
Python API: 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).

$$H = (Q / (k \cdot L))^{2/3}.$$
Where,
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)
Python API: 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).

$$L = Q / (k \cdot H^1.5).$$
Where,
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')
Python API: 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.

$$SI: Q = 1.860 \cdot L \cdot H^{3/2} [L in m, H in m, Q in m^3/s]$$
Where,
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)
Python API: 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.

$$y_1 = 0.54 h_d \left( \frac{q^2}{g h_d^3} \right)^{0.425}$$
Where,
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)
Python API: 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.

$$Q = \frac{2}{3} C_d \sqrt{2g} (L - 0.1 n_c H) H^{3/2}$$
Where,
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)
Python API: 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.

$$L = Q / (k \cdot H^1.5) + 0.1 \cdot n_e \cdot H$$
Where,
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')
Python API: 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.

$$L = Q / (k \cdot H^1.5) + 0.1 \cdot n_e \cdot H$$
Where,
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')
Python API: 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.

$$Q = \frac{2}{3} C_d \sqrt{2g} (L - 0.1 n_c H) H^{3/2}$$
Where,
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)
Python API: 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.

$$y_s = 2.0 \cdot K_1 \cdot K_2 \cdot K_3 \cdot K_4 \cdot y_1 \cdot (a / y_1)^0.65 \cdot Fr_1^0.43$$
Where,
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)
Python API: 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.

$$hec18_pier_width(scour_depth, flow_depth, flow_velocity, k1, k2, k3, k4, system)$$
Where,
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)
Python API: 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.

$$Q = C (2 \pi R) H^{3/2}$$
Where,
r = Input parameter (SI units)
H = Hydraulic head (m)
Q = Discharge coefficient C_d (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$C = C_o \left(\frac{H_e}{H_o}\right)^{0.12}$$
Where,
designcoeff = Input parameter (-)
H = Hydraulic head (m)
H = Hydraulic head (m)
Tp = Volumetric flow discharge (m³/s)
Python API: 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 = C_o L_e H_e^{3/2}$$
Where,
Q = Discharge coefficient C_d (-)
L = Length (m)
H = Total operating head H (m)
Tp = Volumetric flow discharge (m³/s)
Python API: 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.

$$H_e = \left( \frac{Q}{C_o L_e} \right)^{2/3}$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
L = Length (m)
Q = Discharge coefficient C_d (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$H_e = \left( \frac{Q}{C_o L_e} \right)^{2/3}$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
L = Length (m)
Q = Discharge coefficient C_d (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$L_e = \frac{Q}{C_o H_e^{3/2}}$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
H = Hydraulic head (m)
Q = Discharge coefficient C_d (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$L_e = \frac{Q}{C_o H_e^{3/2}}$$
Where,
Q = Volumetric flow rate / discharge Q (m³/s)
H = Hydraulic head (m)
Q = Discharge coefficient C_d (-)
Tp = Computed numerical result (standard SI units)
Python API: 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 = C_o L_e H_e^{3/2}$$
Where,
Q = Discharge coefficient C_d (-)
L = Length (m)
H = Total operating head H (m)
Tp = Volumetric flow discharge (m³/s)
Python API: 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).

$$Free orifice discharge: Q = C_d \cdot A_o \cdot \sqrt(2 \cdot g \cdot H)$$
Where,
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)
Python API: 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)).

$$A_o = Q / (C_d \cdot \sqrt(2 \cdot g \cdot H))$$
Where,
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)
Python API: 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)).

$$A_o = Q / (C_d \cdot \sqrt(2 \cdot g \cdot H))$$
Where,
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)
Python API: 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.

$$H = (1 / (2 \cdot g)) \cdot (Q / (C_d \cdot A_o))^2$$
Where,
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)
Python API: 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.

$$H = (1 / (2 \cdot g)) \cdot (Q / (C_d \cdot A_o))^2$$
Where,
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)
Python API: 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).

$$Free orifice discharge: Q = C_d \cdot A_o \cdot \sqrt(2 \cdot g \cdot H)$$
Where,
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)
Python API: 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)).

$$Submerged orifice discharge: Q = C_d \cdot A_o \cdot \sqrt(2 \cdot g \cdot (H_1 - H_2))$$
Where,
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)
Python API: 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.

$$Parshall flume discharge: Q = C \cdot W \cdot H^n$$
Where,
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)
Python API: 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.

$$Q = C_d A_{throat} \sqrt{2g H_{operating}}$$
Where,
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)
Python API: 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).

$$Sluice gate free discharge: Q = C_d \cdot b \cdot a \cdot \sqrt(2 \cdot g \cdot y_1)$$
Where,
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)
Python API: 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)).

$$a = Q / (C_d \cdot b \cdot \sqrt(2 \cdot g \cdot y_1))$$
Where,
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²')
Python API: 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)).

$$a = Q / (C_d \cdot b \cdot \sqrt(2 \cdot g \cdot y_1))$$
Where,
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²')
Python API: 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).

$$Sluice gate free discharge: Q = C_d \cdot b \cdot a \cdot \sqrt(2 \cdot g \cdot y_1)$$
Where,
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)
Python API: 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)).

$$Sluice gate submerged discharge: Q = C_s \cdot b \cdot a \cdot \sqrt(2 \cdot g \cdot (y_1 - y_2))$$
Where,
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)
Python API: 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_e = L - 2 (N K_p + K_a) H_e$$
Where,
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')
Python API: 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)).

$$y_1 = y_2 / (0.5 \cdot (\sqrt(1 + 8 \cdot \text{Fr}_1^2) - 1))$$
Where,
y2 = Subcritical conjugate depth y_2 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$y_2 = \frac{L_{sb}}{k_{basin}}$$
Where,
y1 = Supercritical initial depth y_1 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$L_{sb} = k_{basin} y_2$$
Where,
y2 = Subcritical conjugate depth y_2 (m)
basincoeff = Input parameter (-)
Tp = Length (km if 'km' in fn else 'm')
Python API: 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)).

$$y_1 = y_2 / (0.5 \cdot (\sqrt(1 + 8 \cdot \text{Fr}_1^2) - 1))$$
Where,
y2 = Subcritical conjugate depth y_2 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$y_2 = \frac{L_{sb}}{k_{basin}}$$
Where,
y1 = Supercritical initial depth y_1 (m)
Fr = Supercritical inflow Froude number Fr_1 (-)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$sutro_weir_h(discharge, base_width, base_height, cd, system)$$
Where,
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)
Python API: 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.

$$Q = C_d \cdot b \cdot \sqrt(2 \cdot g \cdot a) \cdot (H - a/3)$$
Where,
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)
Python API: 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.

$$y_{tw} = a Q^b + z_0$$
Where,
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)
Python API: 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.

$$Q = \frac{8}{15} C_d \sqrt{2g} \tan\left(\frac{\theta}{2}\right) H^{5/2}$$
Where,
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)
Python API: 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))).

$$(degrees) = 2 \cdot arctan(Q / ((8/15) \cdot C_d \cdot \sqrt(2*g) \cdot H^{5/2}))$$
Where,
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)
Python API: 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)).

$$C_d = Q / ((8/15) \cdot \sqrt(2*g) \cdot tan(\theta/2) \cdot H^{5/2})$$
Where,
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)
Python API: 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)).

$$C_d = Q / ((8/15) \cdot \sqrt(2*g) \cdot tan(\theta/2) \cdot H^{5/2})$$
Where,
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)
Python API: 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.

$$H = \left[ \frac{Q}{\frac{8}{15} C_d \sqrt{2g} \tan\left(\frac{\theta}{2}\right)} \right]^{2/5}$$
Where,
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)
Python API: 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.

$$H = \left[ \frac{Q}{\frac{8}{15} C_d \sqrt{2g} \tan\left(\frac{\theta}{2}\right)} \right]^{2/5}$$
Where,
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)
Python API: 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.

$$Q = \frac{8}{15} C_d \sqrt{2g} \tan\left(\frac{\theta}{2}\right) H^{5/2}$$
Where,
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)
Python API: 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))).

$$(degrees) = 2 \cdot arctan(Q / ((8/15) \cdot C_d \cdot \sqrt(2*g) \cdot H^{5/2}))$$
Where,
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)
Python API: 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.

Python Usage Example (groundwater)
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).

$$s = \frac{2.303 Q}{4 \pi T} \log_{10}\left(\frac{2.25 T t}{r^2 S}\right)$$
Where,
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)
Python API: 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))).

$$Q = (4 \cdot pi \cdot T \cdot s) / (2.302585 \cdot log10((2.25 \cdot T \cdot t) / (r^2 \cdot S)))$$
Where,
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)
Python API: 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))).

$$Q = (4 \cdot pi \cdot T \cdot s) / (2.302585 \cdot log10((2.25 \cdot T \cdot t) / (r^2 \cdot S)))$$
Where,
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)
Python API: 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).

$$s = \frac{2.303 Q}{4 \pi T} \log_{10}\left(\frac{2.25 T t}{r^2 S}\right)$$
Where,
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)
Python API: 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.

$$Q = -K A \frac{\Delta h}{L}$$
Where,
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)
Python API: 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).

$$dh_dl = -Q / (K \cdot A)$$
Where,
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)
Python API: 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.

$$K = -\frac{Q}{A \cdot \frac{dh}{dl}}$$
Where,
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)
Python API: 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.

$$Q = -K A \frac{\Delta h}{L}$$
Where,
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)
Python API: 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.

$$q = -K \frac{dh}{dl}$$
Where,
K = Darcy saturated hydraulic conductivity K (m/s)
hydraulicgradient = Piezometric gradient i = dh / dl (m/m)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$K = -\frac{Q}{A \cdot \frac{dh}{dl}}$$
Where,
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)
Python API: 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).

$$dh_dl = -Q / (K \cdot A)$$
Where,
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)
Python API: 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.

$$z = (\rho_f / (\rho_s - \rho_f)) \cdot h_f ~ 40.0 \cdot h_f$$
Where,
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)
Python API: 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.

$$h_f = ((\rho_s - \rho_f) / \rho_f) \cdot z.$$
Where,
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)
Python API: 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.

$$B = \sqrt(T \cdot b' / K') [m] for a leaky confined aquifer.$$
Where,
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)
Python API: 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.

$$B = (s_w - C \cdot Q^2) / Q.$$
Where,
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)
Python API: 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.

$$C = (s_w - B \cdot Q) / Q^2.$$
Where,
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 (-)
Python API: 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:.

$$s_w = B \cdot Q + C \cdot Q^2$$
Where,
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)
Python API: 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%.

$$Ew = (B \cdot Q / (B \cdot Q + C \cdot Q^2)) \cdot 100%.$$
Where,
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)
Python API: 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:.

$$specific_capacity_to_transmissivity(discharge, drawdown, aquifer_type)$$
Where,
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)
Python API: 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.

$$s = \frac{Q}{4 \pi T} W(u), \quad u = \frac{r^2 S}{4 T t}$$
Where,
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)
Python API: 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:.

$$Q = (2 \cdot pi \cdot T \cdot (h_2 - h_1)) / ln(r_2 / r_1)$$
Where,
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)
Python API: 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).

$$h_1) = (Q \cdot ln(r_2 / r_1)) / (2 \cdot pi \cdot T)$$
Where,
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)
Python API: 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).

$$h_1) = (Q \cdot ln(r_2 / r_1)) / (2 \cdot pi \cdot T)$$
Where,
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)
Python API: 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:.

$$Q = (2 \cdot pi \cdot T \cdot (h_2 - h_1)) / ln(r_2 / r_1)$$
Where,
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)
Python API: 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).

$$T = \frac{Q \ln(r_2 / r_1)}{2 \pi (h_2 - h_1)}$$
Where,
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)
Python API: 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).

$$T = \frac{Q \ln(r_2 / r_1)}{2 \pi (h_2 - h_1)}$$
Where,
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)
Python API: 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:.

$$Q = (pi \cdot K \cdot (h_2^2 - h_1^2)) / ln(r_2 / r_1)$$
Where,
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)
Python API: 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)).

$$K = (Q \cdot ln(r_2 / r_1)) / (pi \cdot (h_2^2 - h_1^2))$$
Where,
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)
Python API: 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)).

$$K = (Q \cdot ln(r_2 / r_1)) / (pi \cdot (h_2^2 - h_1^2))$$
Where,
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)
Python API: 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:.

$$Q = (pi \cdot K \cdot (h_2^2 - h_1^2)) / ln(r_2 / r_1)$$
Where,
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)
Python API: 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.

Python Usage Example (sediment)
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).

$$R_h = \tau_0 / (\gamma \cdot S_0)$$
Where,
τ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)
Python API: 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).

$$R_h = \tau_0 / (\gamma \cdot S_0)$$
Where,
τ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)
Python API: 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).

$$S_0 = \tau_0 / (\gamma \cdot R_h)$$
Where,
τ0 = Input parameter (SI units)
unitweight = Input parameter (SI units)
Rh = Hydraulic radius R_h = A / P (m)
Tp = Longitudinal bed slope (m/m)
Python API: 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).

$$S_0 = \tau_0 / (\gamma \cdot R_h)$$
Where,
τ0 = Input parameter (SI units)
unitweight = Input parameter (SI units)
Rh = Hydraulic radius R_h = A / P (m)
Tp = Longitudinal bed slope (m/m)
Python API: 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.

$$\tau_0 = \gamma R_h S_0$$
Where,
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)
Python API: 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.

$$\tau_0 = \gamma R_h S_0$$
Where,
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)
Python API: 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.

$$\tau_c = \theta_c (\gamma_s - \gamma) d_{50}$$
Where,
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)
Python API: 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.

$$\text{Balance Ratio} = \frac{Q S}{d_{50}}$$
Where,
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)
Python API: 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.

$$S = (Q_s \cdot d_50) / Q_w$$
Where,
Q = Volumetric discharge rate (m³/s)
grainsize_d50 = Input parameter (SI units)
Q = Volumetric discharge rate (m³/s)
Tp = Longitudinal bed slope (m/m)
Python API: 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.

$$S = (Q_s \cdot d_50) / Q_w$$
Where,
Q = Volumetric discharge rate (m³/s)
grainsize_d50 = Input parameter (SI units)
Q = Volumetric discharge rate (m³/s)
Tp = Longitudinal bed slope (m/m)
Python API: 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.

$$\text{Balance Ratio} = \frac{Q S}{d_{50}}$$
Where,
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)
Python API: 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.

$$q_b^* = 8.0 \cdot \max(0, \theta_* - 0.047)^{3/2}$$
Where,
θ = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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).

$$w_s = \sqrt{\frac{2}{3} g (S_s - 1) d + \frac{36 \nu^2}{d^2}} - \frac{6 \nu}{d}$$
Where,
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)
Python API: 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.

$$u_* = \sqrt{\frac{\tau_0}{\rho}} = \sqrt{g R_h S_0}$$
Where,
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)
Python API: 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)).

$$d_50 = \tau_0 / (\theta_* \cdot (\gamma_s - \gamma_w))$$
Where,
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')
Python API: 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)).

$$d_50 = \tau_0 / (\theta_* \cdot (\gamma_s - \gamma_w))$$
Where,
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')
Python API: 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.

$$\tau_0 = \theta_* \cdot (\gamma_s - \gamma_w) \cdot d_50$$
Where,
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)
Python API: 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.

$$\theta = \frac{\tau_0}{(\rho_s - \rho) g d_s}$$
Where,
τ0 = Input parameter (SI units)
submergedunit_weight = Input parameter (SI units)
grainsize_d50 = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\theta = \frac{\tau_0}{(\rho_s - \rho) g d_s}$$
Where,
τ0 = Input parameter (SI units)
submergedunit_weight = Input parameter (SI units)
grainsize_d50 = Input parameter (SI units)
Tp = Computed numerical result (standard SI units)
Python API: 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.

$$\tau_0 = \theta_* \cdot (\gamma_s - \gamma_w) \cdot d_50$$
Where,
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)
Python API: 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))).

$$d = \sqrt((18 \cdot nu \cdot w_s) / (g \cdot (S_s - 1)))$$
Where,
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')
Python API: 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))).

$$d = \sqrt((18 \cdot nu \cdot w_s) / (g \cdot (S_s - 1)))$$
Where,
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')
Python API: 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).

$$w_s = \frac{g (S_s - 1) d^2}{18 \nu}$$
Where,
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)
Python API: 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).

$$w_s = \frac{g (S_s - 1) d^2}{18 \nu}$$
Where,
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)
Python API: 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

Official Notice on Corrections & Inquiries

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:

BibTeX
@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/}
}