code wiki / (root) / nx_soda_carbonation_test.nx

nx_soda_carbonation_test.nx

buildroot/runtime/nx_soda_carbonation_test.nx

2920 B64 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic soda
docsdependenciesstructsconstsfunctions

about

nx_soda_carbonation_test.nx -- smoke for nx_soda_carbonation (craft-soda C0). Proves Henry's-law carbonation + the MEASURED EXCEEDS behind "carbonation without heavy equipment": - k_H falls as water warms; anchors exact (1-3) - COLD HOLDS MORE FIZZ: 4C dissolves more CO2 than 25C at one pressure (4) - volumes unit + Henry round-trip (5-6) - NO HEAVY EQUIPMENT: 4 volumes at 4C is nanobubble-feasible (<=5 bar) (7) but the SAME target at 25C needs a saturator (>5 bar) -- the exceed (8) - NANOBUBBLE 5x faster + 5-min target (9-10) - carbonation is acid: more CO2 -> more [H+] -> lower pH, soda range (11-15) Exit code = failed assertion number; 0 = all pass.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_soda_carbonation.nx nx_soda_carbonation_test.nx

imports: nx_syscalls.nxnx_soda_carbonation.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main soda_kh soda_kh_anchor soda_co2_mg_per_l soda_kh ↻ soda_volumes_milli soda_required_pressure_mba soda_kh ↻ soda_nanobubble_feasible soda_carbonation_time_s soda_hplus_um soda_isqrt soda_ph_milli soda_hplus_um ↻ soda_log10_milli soda_log10_anchor

structs

none

consts

none

functions

17func main() -> i64