pyhnhtools

Open-source Python library for hydraulic and hydrologic analysis.

License Documentation Status

pyhnhtools provides tools for water resource engineering analysis including:

  • Standard Step 1D Solver - Steady-state reach profile analysis

  • Culvert Analysis - Inlet and outlet flow calculations

  • PyQt5 GUI - Interactive graphical interface for model setup and visualization

  • Cross-section Processing - Geometry parsing and manipulation

  • HEC-RAS Integration - Import and export model compatibility

Quick Start

Install via pip:

pip install pyhnhtools

Load and run a model:

from pyhnhtools import load_input, run_backwater

# Load a model
model = load_input('model.json')

# Run the solver
results = run_backwater(model)

# Access results
print(results.profile)

Or launch the GUI:

python -m pyhnhtools.gui.app

Table of Contents

Project