Skip to main content

Crate hydr

Crate hydr 

Source
Expand description

Foundations for hydraulic simulation in Rust.

Configured Numr runtimes advance full 2D shallow-water flow through atomic accepted steps. CPU F64 is the checked reference profile. Other runtimes must satisfy each algorithm’s arithmetic requirements. Read solver::surface_solver_capabilities before selecting application boundaries and physical regimes. It returns a capability::ComponentCapabilities declaration.

use hydr::grid::CartesianGrid;

let grid = CartesianGrid::new(100, 50, 2.0, 2.0)?;
assert_eq!(grid.cell_count(), 5_000);

Modules§

capability
Shared vocabulary for component capability declarations.
channel
Declared channel geometry and reach flow for hydraulic applications.
coupling
Conservative water exchange between hydraulic components.
drainage
Pinned EPA SWMM v5.2.4 piped drainage network solver.
error
Errors for grid construction.
forcing
Original water rates and integrated amounts with explicit time support.
grid
Grid geometry for hydraulic models.
model
Checked hydraulic domains, SI flow state, and spatial reference metadata.
runoff
Standalone runoff storage primitives, independent of hydraulic attachment.
soil
Immutable batched Modified Green–Ampt soil on the numr CPU runtime.
solver
Runtime-selected shallow-water execution and accepted-state contract.
storage
Standalone volume-authoritative level-pool storage with optional explicit frozen-area sources and no outlet law.
structures
Typed instantaneous structure laws and held-head proposals without storage or donor acceptance.