hydr/lib.rs
1//! Foundations for hydraulic simulation in Rust.
2//!
3//! Configured Numr runtimes advance full 2D shallow-water flow through atomic accepted steps.
4//! CPU F64 is the checked reference profile. Other runtimes must satisfy each algorithm's arithmetic requirements.
5//! Read [`solver::surface_solver_capabilities`] before selecting application boundaries and physical regimes.
6//! It returns a [`capability::ComponentCapabilities`] declaration.
7//!
8//! ```
9//! use hydr::grid::CartesianGrid;
10//!
11//! let grid = CartesianGrid::new(100, 50, 2.0, 2.0)?;
12//! assert_eq!(grid.cell_count(), 5_000);
13//! # Ok::<(), hydr::error::GridError>(())
14//! ```
15
16#[doc(inline)]
17pub use hydr_core::{capability, error, forcing, grid, model};
18
19#[doc(inline)]
20pub use hydr_channel::channel;
21#[doc(inline)]
22pub use hydr_coupling::coupling;
23#[doc(inline)]
24pub use hydr_drainage::drainage;
25#[doc(inline)]
26pub use hydr_runoff::runoff;
27#[doc(inline)]
28pub use hydr_soil::soil;
29
30#[doc(inline)]
31pub use hydr_solver::solver;
32#[doc(inline)]
33pub use hydr_storage::storage;
34
35#[doc(inline)]
36pub use hydr_structures::structures;