code wiki / (root) / nx_water_design.nx

nx_water_design.nx

buildroot/runtime/nx_water_design.nx

3062 B79 linesdepth 3pulls 4 transitivereach 3 importersview sourcekind librarytopic water
docsdependenciesstructsconstsfunctions

about

nx_water_design.nx -- WATER SYSTEMS / DESIGN CAPSTONE. The research-> design loop end to end: pick the harvesting technology for a climate, take the raw atmospheric condensate (near-distilled AND microbially unsafe until treated), disinfect + filter it, then remineralize to the taste + health optimum -- and score the result. Composes nx_water_awg (harvest) and nx_water_quality (taste / health / never-poison safety). The honest chain: fresh condensate is FLAT (TDS ~2, insipid) AND unsafe (stagnant condensate can grow Legionella) -- so the raw water is refused by the safety gate until UV + filtration, then remineralized with Ca / Mg / bicarbonate to hit the delicious + healthful window. THE exceed: it DESIGNS the water (choose harvester -> treat -> dose minerals) and proves the result beats raw condensate on taste (insipid -> excellent) while passing health + never-poison safety -- a real sovereign design, no hardware yet (honest). grounded: who_remineralization_targets + uv_germicidal_disinfection + legionella_condensate_risk genealogy_id: water_system_design + nishi_water_systems

dependencies 3 imports · 3 importers

nx_syscalls.nx nx_water_awg.nx nx_water_quality.nx nx_water_design.nx nx_validation.nx nx_validation_test.nx nx_water_design_test.nx

imports: nx_syscalls.nxnx_water_awg.nxnx_water_quality.nx

imported by: nx_validation.nxnx_validation_test.nxnx_water_design_test.nx

structs

none

consts

none

functions

28func wd_recommend_harvester(temp_c: i64, rh_pct: i64) -> i64
called by 1: main calls 1: wa_recommend
32func wd_daily_yield_ml(temp_c: i64, rh_pct: i64, coil_temp_c: i64, airflow_m3h: i64) -> i64
41func wd_raw_condensate() -> *NxWaterSample
51func wd_treat(s: *NxWaterSample) -> i64
63func wd_remineralize(s: *NxWaterSample, ca_dose: i64, mg_dose: i64, hco3_dose: i64) -> i64
74func wd_design_best_water() -> *NxWaterSample