Expand description
Hydrological & Atmospheric Modality (hydrology.rs)
Provides deterministic 10D ontological graph ledger bindings for multi-scale fluid dynamics:
- Submersion state transitions: Dry (0), Wading (1), Swimming (2), Diving (3)
- Dynamic clothing / surface wetness ratio encoding
- Barometric pressure, moist air density, and wind vectors
- Downsampled hysteresis evaluation for agents in the
.q42graph
Adheres strictly to AGENTS.md §0 (Zero heap in hot paths, 48-byte Super-Quin layout).
Structs§
- Hydro
Verdict - Evaluated hydrological assessment for an entity or spatial node.
Enums§
Constants§
- OP_
HYDRO_ BAROMETRIC - Synoptic barometric state: MSLP in hPa + wind vector.
- OP_
HYDRO_ CURRENT - Fluid current velocity vector [vx, vz] in mm/s.
- OP_
HYDRO_ PRECIPITATION - Precipitation intensity in mm/hr + Lifting Condensation Level (LCL).
- OP_
HYDRO_ SUBMERSION - Submersion state predicate (Dry, Wading, Swimming, Diving) + depth in mm.
- OP_
HYDRO_ THERMAL - Thermal conductivity drain rate (hypothermia risk metric).
- OP_
HYDRO_ WETNESS - Surface / clothing wetness ratio [0.0, 1.0] mapped to u16.
- SUBMERSION_
DIVING - SUBMERSION_
DRY - SUBMERSION_
SWIMMING - SUBMERSION_
WADING
Functions§
- evaluate_
hydrological_ frame - Evaluates a frame of Quins, filtering by optional agent DID hash and producing zero-alloc verdicts.
- pack_
hydro_ barometric_ quin - Packs synoptic barometric pressure and wind state into an NQuin.
- pack_
hydro_ submersion_ quin - Packs an agent’s fluid submersion transition into a 48-byte NQuin.
- pack_
hydro_ wetness_ quin - Packs dynamic surface wetness into an NQuin.
- unpack_
hydro_ submersion_ quin - Unpacks a submersion Quin returning
(submersion_level, depth_mm). - unpack_
hydro_ wetness_ quin - Unpacks a wetness Quin returning the continuous wetness ratio in [0.0, 1.0].