code wiki / (root) / nx_heat_conduction2d.nx

nx_heat_conduction2d.nx

buildroot/runtime/nx_heat_conduction2d.nx

3142 B82 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic heat
docsdependenciesstructsconstsfunctions

about

nx_heat_conduction2d.nx -- FOOD-SCIENCE SUITE / NUMERICAL HEAT TRANSFER. A real 2-D transient conduction solver (explicit finite difference) for the retort cold spot: a square of food, surface held at the retort temperature, interior starting cold, relaxing over time. This steps the suite from analytical (Biot/Fourier) toward numerical simulation -- the honest 3-D CFD gap shrinks from "nothing" to "2-D transient". INTEGER-EXACT by design: at the explicit-stability limit (mesh Fourier number Fo = 1/4) the 2-D update is EXACTLY the average of the four neighbours -- T_new[i,j] = (T[up]+T[dn]+T[lf]+T[rt]) / 4 -- so no float and no stability blow-up. Dirichlet boundary (surface temp) fixed; interior relaxes toward it; the centre is the cold spot. THE exceed vs the field: not depth over COMSOL, but a sovereign, integer-deterministic transient field solve that composes with the preservation cook (once the cold spot reaches the lethal temperature the 12-D clock can start) -- no license, bit-reproducible. grounded: explicit_finite_difference_heat_equation + fo_quarter_stability genealogy_id: numerical_heat_transfer + nishi_food_science_suite

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_heat_conduction2d.nx nx_heat_conduction2d_test.nx

imports: nx_syscalls.nx

imported by: nx_heat_conduction2d_test.nx

structs

none

consts

none

functions

26func hc2d_run(N: i64, surf: i64, init: i64, nsteps: i64) -> i64
called by 1: main calls 1: sys_mmap
78func hc2d_penetrated(center: i64, surf: i64, init: i64, pct: i64) -> i64
called by 1: main