Skip to main content

Module hydrology

Module hydrology 

Source
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 .q42 graph

Adheres strictly to AGENTS.md §0 (Zero heap in hot paths, 48-byte Super-Quin layout).

Structs§

HydroVerdict
Evaluated hydrological assessment for an entity or spatial node.

Enums§

HydroError

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].