Repository navigation
Releases
Foehncraft v1.5.0
| Version | Stage | Highlights |
|---|---|---|
| 1.5.0 (2026-12-01) | 8 (part), multiphase, radiation, learning doorway, downloads | N dispersed phases in the two-fluid model; periodic conjugate heat transfer through solids and with several fluids, radiation across gas gaps; line-by-line gas radiation with k-distribution, FSCK and SLW tables and error-controlled cost; the stepping API, model-correction fields, training-data export and field inversion; the shared Linux install into /opt/foehncraft with chosen permissions. |
1.5.0 (2026-12-01) – N-phase two-fluid flow, periodic conjugate heat transfer, line-by-line radiation tables, learning doorway
In one paragraph. Foehncraft 1.5.0 follows 1.4.0 of 28 November. The two-fluid model takes any number of dispersed phases (air and steam bubbles, bubbles of two sizes, oil droplets). Periodic conjugate heat transfer works through solid regions and with several fluids, thermal radiation crosses gas gaps in conjugate cases, and an energy outlet with backflow no longer runs away. Radiation gets its own line-by-line reference: absorption by H2O and CO2 summed line by line, k-distributions, SLW and FSCK look-up tables built from our own spectra, and a cost control that sets the Monte Carlo bundles from a target error. A learning doorway opens the solver to data: a stepping API (foehncraft.Session), model-correction fields in the turbulence models, a training-data export and field inversion by ensemble Kalman inversion. The shared Linux install goes to /opt/foehncraft/Foehncraft and sets who may read it.
Highlights
- N dispersed phases in the two-fluid model, each with its own momentum equation, size, slip and closures.
- Periodic conjugate heat transfer through solids and with several fluids; radiation across gas gaps in conjugate cases.
- Line-by-line gas radiation (
radiation.lbl), k-distribution, FSCK and SLW tables from our own spectra, and error-controlled radiation cost. - Learning doorway:
foehncraft.Session,[corrections],post.dataset,foehncraft.inversion. - Shared Linux install into
/opt/foehncraft/<Title>with chosen permissions.
Upgrading from 1.4
- Case files of 1.4 read unchanged; the new tables (
[[two_fluid.phase]],[corrections],[lbl],[radiation] regions) and keys are opt-in. - The shared install script now defaults to
/opt/foehncraft/<Title>; installs below/opt/<Title>keep working with--prefix /opt/<Title>. - The known limits of 1.1.0 stand. The verification manual was not regenerated for this release; the status page is current.
All changes
Multiphase
- N dispersed phases in the two-fluid model (L3 stage MP5, D380 to D383).
[[two_fluid.phase]]gives the two-fluid model any number of dispersed phases (up to 8) against the liquid: air and steam bubbles, bubbles of two sizes, oil droplets. Each phase has its own momentum equation, size, slip and closures (drag, lift, wall lubrication, turbulent dispersion, bubble-induced viscosity, each optionally per phase); the liquid is the remainder, one pressure comes from the volume continuity of all phases, and the swarm correction of the drag and the dispersion see the total dispersed fraction. The drag of a cell is eliminated exactly by a Schur complement of the liquid in O(N); a check advects the liquid with its own flux and books |α_l + Σα − 1|. With one phase the model is bit for bit that of MP3 and MP4 (tables, histories, lines and field files of the bubble column, a boiling case and a turbulent pipe identical to the MP4 binary), and[two_fluid.gas]stays as the shorthand. A gas–oil–water column holds the drag balance of each phase to 0.3 %; two velocity groups of air bubbles (3 and 7 mm) in the Wang pipe put the small bubbles at the wall and the large ones in the core, and a pipe with water, air and steam bubbles runs isothermal (gallery 375, recipe 375). Drag between dispersed phases, a second liquid and boiling with a second dispersed phase are later cards.
Conjugate heat transfer and meshes
- Intermediate results of conjugate cases. A
.result_Nrequest in a steady run with solid regions aborted the run with CASE005 whenoutput.derivedasked for the wall heat flux: it wrote the fluid view, without the temperature. It now writes the full mesh with the temperature, as the final output. - Inverted Gmsh elements get a warning.
foehn meshand the case reader turned Gmsh cells whose nodes are in inverted order (a negative volume) outward without a word; they now say how many cells of which kinds were turned, so a wrong element orientation of the mesh generator shows. - Periodic conjugate heat transfer. Periodic pairs may now cut through solid regions: a pair whose faces meet the same solid on both sides carries the temperature across, and a pair between two fluids takes its own mass-flow drive (before: ENE006 and REG006). Several fluids each take their own
mass_flowand their own pressure level. A fluid's pair takes[boundary.<name>.energy] periodic = "heat-flux"withbulk_temperature: the temperature rises by Δ = Q/(ṁ c_p) across the pair, Q the heat the walls and the conduction interfaces put into that fluid, and the bulk temperature on the pair fixes the level (the thermally developed flow of Patankar, Liu and Sparrow 1977, D109 (1)). Two fluids at two bulk temperatures exchange heat through a solid with no inlet or outlet at all. New casescht_concentric_pipes_periodic(two concentric pipes with an air gap on an axisymmetric wedge, three fluids and three solids: 28.733 W/m against the exact 28.73 W/m),cht_channel_walls_periodic(Nu 8.26 against 140/17 = 8.24) andcht_two_fluids_periodic. - Axisymmetric wedge meshes keep their cell zones.
[mesh.generate] wedgeput every cell in the first zone, so the solid regions of a conjugate case on a wedge were empty; a region whose zones hold no cell is now refused (REG002). - Backflow at an energy outlet. At a static-pressure outlet with backflow, the zero-gradient temperature let the energy equation run away in conjugate cases. The flow that enters now takes the outlet's
temperature([boundary.<outlet>.energy] temperature = ...), or the lagged cell value without one. Any other energy key at an outlet is refused (THM003).
Radiation
- Thermal radiation across gas gaps in conjugate cases (R1b).
[radiation] regions = [...]makes any set of fluid regions radiate. The Monte Carlo bundles of R1a run on these regions, and the faces to every other region are grey diffuse walls at the face temperature with the new material keyemissivity. The gas is transparent or absorbs with the new keyabsorption_coefficient(1/m). Everyintervalenergy solves a call goes into a running mean, and the mean enters the energy rows as linearised sources (the emission implicit), with the wall powers in the solid cells behind the walls. The ledger books the termthermal radiation, andresult.jsonreports the net power of every wall group (radiation). A steady run stops only when the mean wall powers have also settled and their balance closes ([radiation] tolerance,balance); the mean holds the absorbed powers, the emission comes exactly from the temperatures of each solve. Bundles now wrap through periodic faces, so one periodic module radiates like the infinitely long device; before, a bundle that reached a periodic face was lost. New casecht_concentric_pipes_radiation_periodic(radiation across the air gap of two concentric pipes: 44.233 W/m against the exact 44.226 W/m, up from 28.73 W/m without radiation). New code RAD001. - Line-by-line reference of gas radiation (RA3, part 1). New tool
radiation.lbl(foehn call radiation.lbl --input <file>.json, case files with[lbl]): absorption coefficients summed line by line with Voigt profiles (Weideman's rational Faddeeva function near the centre, the Laplace continued fraction away from it) on a fine wavenumber grid, from line lists in the 160-character HITRAN/HITEMP format with the TIPS partition sums, or from open synthetic line lists. Two grids keep the wings cheap and the line centres exact. On top: the exact line-by-line slab of homogeneous layers between black walls (exponential integrals per wavenumber), and spectral Monte Carlo in slabs and in boxes of cells (one wavenumber per bundle, grey and mirror walls, the Amanatides–Woo voxel walk), bitwise the same on any number of threads. It is the reference of the coming WSGG, FSCK and SLW models and the generator of our own tables; the HITEMP and HITRAN data stay out of the repository. Checked against the Elsasser band, the Ladenburg–Reiche equivalent width, the grey slab and cube, and the exact line-by-line slab (Monte Carlo within 2.5 standard errors). New casesradiation/lbl_synthetic_slab.tomlandradiation/lbl_synthetic_box.toml, code RAD010. - Cost control of coupled radiation (RA1).
[radiation] errorsets the bundles of each radiation call from a target standard error of the running mean (withinmin_bundlesandmax_bundles);max_intervalmakes a call only when the power the cells and walls emit has moved by more than that error since the last call (or bychange), and aftermax_intervalenergy solves in any case, with the source frozen and its emission linearised in between; the running mean starts again when the field has moved by more than the noise of one call. New keysurroundings.<boundary>: an inlet or outlet looks into black surroundings at that temperature (a hot plenum) instead of 0 K. The ledger books what radiation takes out through each opening and fixed-temperature wall as a boundary rowthermal radiation.result.jsonradiationaddsmean_error,bundles_total,interval,secondsandshare. New exact solution `foehncraft_radiation::exact::slab_conduction_radia...
Foehncraft v1.4.0
| Version | Stage | Highlights |
|---|---|---|
| 1.4.0 (2026-11-28) | 8 (part), multiphase, sprays, downloads | Two-fluid (Euler–Euler) bubbly flow with Ishii–Zuber drag, Tomiyama lift, wall lubrication, turbulent dispersion and bubble-induced viscosity (MP3); subcooled wall boiling after Kurul & Podowski (MP4); evaporation and condensation in the volume of fluid (MP2); drop bouncing and separation (Post and Abraham, D378) and collision cells of their own (D379); radiation walk about 2.3 times faster on tetrahedral furnaces (RA0); Linux ARM programs and Kraxn, the installer of all three programs, on every release, with "Quick install with Kraxn" in the README. ECN Spray G G1 drops 15 mm from the tip 10.8 µm (was 14.5; measured 7 to 10). Gallery and recipes 358, 363, 368, 369, 373 |
1.4.0 (2026-11-28) – two-fluid bubbly flow and wall boiling, phase change in the VOF, Kraxn
In one paragraph. Foehncraft 1.4.0 follows 1.3.0 of the same morning. Multiphase flow takes three steps of L3: the two-fluid (Euler–Euler) model of a dispersed gas in a liquid with Ishii–Zuber drag, Tomiyama lift, wall lubrication, turbulent dispersion and bubble-induced viscosity (MP3), subcooled wall boiling on top of it after Kurul & Podowski (MP4), and evaporation and condensation at the interface of the volume of fluid with the energy equation (MP2). Drops in a spray can bounce and separate (Post and Abraham) and meet in collision cells of their own, which brings the ECN Spray G G1 drop size 15 mm from the tip to 10.8 µm (measured 7 to 10). The radiation walk is about 2.3 times faster per bundle on tetrahedral furnace meshes. Every release now carries a Linux ARM build and Kraxn, the installer of FoehnCraft, MurmelCraft and KoflCraft, and the README starts its Install section with "Quick install with Kraxn".
Upgrading from 1.3
- Case files of 1.3 read unchanged; the new tables (
[two_fluid],[two_fluid.boiling],[vof.phase_change], energy keys of the[vof]phases,outcomesandcellof[spray.collision]) are optional. - Spray runs that use
[spray.collision]keep their 1.3 behaviour unless they setoutcomesorcell; ECN Spray G G1 now uses both, so its numbers change. - The known limits of 1.1.0 stand. The verification manual was not regenerated for this release; the status page is current.
All changes
Multiphase
- Two-fluid (Euler–Euler) model for bubbly flow (L3 stage MP3, D352 to D356).
[two_fluid]adds a dispersed gas of one bubble size to the liquid of[fluid]: one momentum equation per phase, one pressure from the volume continuity of both, in the shared CPU/GPU kernels. Forces: Ishii–Zuber drag, implicit between the phases by partial elimination; Tomiyama lift with near-wall damping (Shaver & Podowski); Hosokawa wall lubrication; Burns turbulent dispersion, implicit in the gas fraction, with a grid-scale limit in nearly empty cells; Sato bubble-induced viscosity. Fieldsvolume_fraction(α_g) andgas_velocity_x/y/z; line files gainalpha_gas,u_gas,v_gas,w_gas. A uniform bubble column gives the drag-balance slip to four digits and converges in two outer iterations per step; bubbly up-flow in a 57 mm pipe puts the wall peak where Wang et al. (1987) measured it and the core within 3 % at j_G = 0.4 m/s (39 % low at 0.1), with peaks about twice as high as measured. The mass check of a two-fluid run is the boundary volume account of both phases. New casestwo_fluid_column,bubbly_pipe_wang_jg01,bubbly_pipe_wang_jg04, studyexamples/studies/bubbly_pipe, tooltools/plot/two_fluid.py. Gallery and recipe 368. - Subcooled wall boiling in the two-fluid model (L3 stage MP4, D357 to D359).
[two_fluid.boiling]heats walls with a given flux and splits it after Kurul & Podowski (1991) into convection, quenching and evaporation, the wall temperature of each face the root of the split (Lemmert–Chawla sites, Tolubinsky–Kostanchuk departure diameter, Cole frequency, Del Valle–Kenning quenching, the liquid temperature at y⁺ = 250). The liquid and the vapour each solve an energy equation, so the vapour can superheat; above a near-wall void of 0.9 a growing dry part of the wall heats the vapour (Yoon et al. 2017). In the bulk the bubbles condense or grow through two interface resistances (Ranz–Marshall, Nu = 2 inside), all exchange terms implicit, with the bubble size following the subcooling. Saturation state and steam by IAPWS-IF97. Against the void of Bartolomei et al. (1982), 12 mm tube heated over 1.5 m, the 14.7 MPa cases lie within the measured ±0.04 (mean deviations 0.021 to 0.039) and B-5 at 6.8 MPa too (0.034); B-7 boils at the measured onset but its void is low before saturation (0.071); B-9 (2 MW/m²) leaves the bubbly regime and diverges, so it has no case file. The enthalpy leaving the tube matches the wall heat within 1.3 %. A vapour fraction above 0.95 condenses at once (no annular regime yet). New fieldsliquid_temperature,vapour_temperature,bubble_diameter,vapour_generation, newtwo_fluid.csvcolumns of the wall heat, the vapour made and the enthalpy out, which is now flushed with every row. New casesboiling_pipe_bartolomei_b5,_b7,_b11,_b12,_b13, studyexamples/studies/boiling_pipewith the measured points,tools/plot/two_fluid.py boiling. Gallery and recipe 373. - Evaporation and boiling in the volume of fluid (L3 stage MP2, D351). A
[vof]case now takes[energy]: each phase givesspecific_heatandconductivity, and the mixture enters the energy equation (ρ c_p per cell, the conductivity in series).[vof.phase_change]adds evaporation and condensation by the energy of the interface: the interface cells are held at T_sat, the heat they take gives the rate, and the continuity takes the volume the vapour needs (T_sat and h_lv given, or IAPWS-IF97 atpressurefor water). Water at 1 atm against exact solutions: the Stefan problem within 1.1 %, the sucking problem within 1.8 %, Scriven's bubble on the new sphere-sector mesh within 3.2 %; film boiling on a hot wall 14 % below Berenson's Nusselt number.vof.csvgainsevaporated,phase_rateandinterface_cells, the field outputphase_change_rate. The volume account of the run checks the boundary volume flow against the volume made, and BC017 no longer warns when a phase change drives the flow. New casesvof_stefan,vof_sucking,vof_scriven,vof_film_boiling, tooltools/plot/vof_phase_change.py. Gallery and recipe 358. - General multiphase: plan for any number of phases and several bubble sizes per phase (no code). New page
docs/assessments/general-multiphase-n-phases.md: phase-field DNS of drops and bubbles (Roccon and co-workers), N-phase interface-resolving and Euler-Euler methods, size groups and moment methods, with sources. The maintainer's decisions D373 to D376 set the order: an N-phase core (MP5) after MP3 and MP4 with the two-phase rows unchanged, size groups with velocity groups as phases (MP6), moments (MP7), free surfaces and dispersed phases in one model (MP8). Recorded under L3 indocs/requirements.md. - General multiphase plan checked against MP3 (docs).
docs/assessments/general-multiphase-n-phases.mdsection 4.2 now follows the MP3 two-fluid code. The N-phase core widens MP3's exact 2 × 2 drag elimination per cell to N × N. The continuous phase stays the remainder of the phase fractions so that two phases stay bit for bit (D373), and its own advection becomes a check.
Lagrangian sprays
- Drops can bounce (D378).
[spray.collision] outcomes = "post"adds the outcomes of Post and Abraham (2002) to the drop collisions: bouncing below the Weber number of Estrade et al. (1999) and reflexive separation above that of Ashgriz and Poo (1990), in front of O'Rourke's coalescence and grazing. ECN Spray G G1 uses it: drops 15 mm from the tip 13.0 µm (was 14.5; measured 7 to 10), liquid lead +4 % at 0.8 ms (was +9 %). Gallery and recipe 363. - Collision cells of their own (D379).
[spray.collision] cell = <edge in m>lets the drops meet in cubes turned and shifted at random every step (Hou and Schmidt 2006) instead of the gas cells. ECN Spray G G1 uses cubes of 0.6 mm: drops 15 mm from the tip 10.8 µm (was 13.0; measured 7 to 10), liquid at 0.3 ms -1 % (was +20 %), at 0.8 ms +10 % (was +4 %). Smaller cubes merge more; the size dependence is an open gap. The Post outcomes are now D378 (were D349, a number already taken). Gallery and recipe 369.
Radiation
- Radiation walk about 2.3 times faster per bundle on tetrahedral furnace meshes (RA0). Two steps. (1) The tetrahedron walk of
foehncraft_kernels::walkevaluates the distance of the current point only for the faces the target lies behind (newwalk::side) and wraps edge indices without integer division: bitwise the same results, 16 % faster. (2) A cell that is convex with planar faces is now crossed by the planes of its faces, with no tetrahedra:Locatorstores the plane of every face and a convex flag per cell (checked to 1e-9 of the cell size, the apex inside every plane also checks the orientation), the walk uses them throughWalkMesh::planeandconvex, and cells that are warped or not convex keep the tetrahedron walk (the two meet at the faces, so every mixed mesh works). The tetrahedron state of a walk is found only when a tetrahedron step or the end of a walk needs it. On the box furnace the time per bundle on 4 threads falls from 25.3 to 10.7 µs (112k tetrahedra) and from 80 to 37 µs (858k tetrahedra); the tallies differ from the tetrahedron walk by round-off (29 of 20 412 wall faces, at most 3e-6 W), the energy account still closes. The plane arrays go to the GPU with the other walk arrays (TransportArgs::plane,convex), so CPU and GPU use the same walk.Locator::set_plane_walk(false)or the environment variableFOEHN_NO_PLANE_WALKreturns to the tetrahedron walk for checks. New test `the_plane_walk_gives_the_chords_of_the_te...
Foehncraft v1.3.0
| Version | Stage | Highlights |
|---|---|---|
| 1.3.0 (2026-11-28) | 8 (part), sprays, reacting flows, immersed walls, downloads | Turbulent flames with the eddy dissipation concept and model (SF3); water and steam circuits behind the walls of a flow (SF7c); cut bodies with wall functions, conjugate heat transfer, conditions on STL patches and turning walls, and near-body refinement with hanging nodes (L13 2c to 2f); injector devices with standard tips or the user's STL drawn with the spray (ID1 to ID3); KH-ACT children with the Kelvin–Helmholtz size (D348); wall heat flux, heat transfer coefficient and Nusselt number as derived fields; inlet conditions kept through re-read, schedule and run.set; ready-to-run programs for macOS, Linux (glibc 2.28) and Windows on every release, and a shared install under /opt; reacting flow model choices (D360 to D365). ECN Spray G G1 liquid lead at 1.2 ms from +25 % to +8 %; concentric cylinders through cut cells second order (1.97 to 2.17); Taylor–Couette torque within 0.23 % on cut cylinders; refined cylinder reaches the lift of the uniform fine mesh with a seventh of the cells; laminar flat plate Nu_x within 1 % of Pohlhausen. Gallery and recipes 341–361 |
1.3.0 (2026-11-28) – turbulent flames, boiler circuits at the walls, cut bodies in full, injector devices, release downloads
In one paragraph. Foehncraft 1.3.0 takes several modules of 1.1 a stage further. Reacting flows become turbulent: the eddy dissipation concept burns the fine structures of each cell with the stiff chemistry of SF2, and the eddy dissipation model is the fallback for global mechanisms (SF3). The water and steam circuits of SF7b now sit behind the walls of a steady flow and exchange heat with it until both agree (SF7c). Immersed cut bodies get wall functions with the exact wall distance, conjugate heat transfer into a solid region, boundary conditions on the patches of an STL and turning walls, and refinement near the body with hanging-node faces (L13 stages 2c to 2f). A multi-hole injector is described the way it is mounted and drawn with the spray, and the KH-ACT children have the Kelvin–Helmholtz size, which brings the ECN Spray G liquid penetration from 25 % to 8 % above the measurement at 1.2 ms. With the energy equation the wall heat flux, the heat transfer coefficient and the Nusselt number are derived fields. A re-read, a schedule entry or run.set no longer drops inlet conditions. Every release now carries programs for macOS, Linux (glibc 2.28 or newer) and Windows, with a script for a shared install under /opt. The maintainer's choices on the reacting flow survey (D360 to D365) set the next steps.
Upgrading from 1.2
- Case files of 1.2 read unchanged; the new keys (
[chemistry] interaction,[circuits],[immersed.cut] wall_sample,[immersed.refine], bodypatches,omega,invert, shapeplane,[[spray.device]],deviceandholeof an[[injector]],[output.reference] length) are optional. - Spray runs with the KH-ACT breakup give smaller drops than in 1.2;
spray_g_g1.tomland its grid variants run at 1 µs during the injection (2 µs after 0.9 ms),spray_a_distortion.tomlat 0.5 µs. - Turbulent cases on cut bodies take the wall distance and the wall function sample from the body now (
wall_sampleon by default), so their results change. - Restart files keep the wall coefficients of the scalars (format version unchanged);
foehn post deriverefuses an older restart file with a hint to run one more iteration.foehn post derivewithout--fields, and an empty[output] derived, write every field the case allows. - The Linux programs of 1.3.0 need glibc 2.28 (those of 1.2.0 needed 2.39).
- The known limits of 1.1.0 stand. The verification manual was not regenerated for this release; the status page is current.
All changes
Lagrangian sprays and injector devices
- Injector devices: multi-hole injectors described by their mounting and holes (ID1, D340 to D342, D346).
[[spray.device]](also in the injector file as[[device]]) gives an injector as mounted:mount(the tip),axis, areferencefor the zero of the azimuth andclocking; its holes are[[device.hole]](polar angle from the axis, azimuth, exit radius, setback) or rings of equal holes,[[device.pattern]]. An[[injector]]may namedeviceandholeinstead of givingpositionanddirection;hole = "all"makes one injector per hole (<name>/<hole>),offsetnudges the start. Injector files without a device read exactly as before; an injector that names a hole and keeps its own position and direction is checked against the hole (warning SPR010). New toolspray.devicesprints the frame, the holes and the injectors without a run. Casespray_multihole_device(a five-hole nozzle tilted 20°), gallery and recipe 341. - Injector devices drawn with the spray (ID2, ID3, D343 to D345). A
[[spray.device]]may carry a surface:geometry = "standard-gasoline"or"standard-diesel"(two tips of our own, drawn from published sizes bytools/data/injector_standard.py, inassets/injectors/with a README; a standard tip without holes of its own brings its default holes, 8 at 37° and 7 at 77.5°) or"stl"withfile,scaleand, for a file drawn in another frame,stl_origin,stl_axis,stl_reference. Each run with a device writesspray/devices.vtuonce (the placed surface, one line per hole along its axis, the cone of each injector) and lists it inseries.jsonunder the new keystatic(format version unchanged);result.jsongetsspray.deviceswith the frame and every hole. A user STL is checked (turned-over, degenerate, duplicate triangles: SPR010, not repaired). New toolspray.placewrites the placed device without a run. The device is a picture, not a wall (D344).spray_g_device_injectors.tomlgives the Spray G injector as a device on the standard gasoline tip; gallery and recipe 343. - KH-ACT children have the Kelvin-Helmholtz size (D348). The children that the nozzle turbulence or the cavitation strips off a blob now have the KH radius B₀Λ, like the aerodynamic ones (Som and Aggarwal 2010, eq. 1); before they had the turbulence length scale or the cavity radius (49 µm on Spray G). ECN Spray G G1: liquid penetration +8 % and vapour −1 % at 1.2 ms (was +25 % and +17 %), Sauter mean diameter at 15 mm 14.5 µm (was 18; measured 7 to 10), a new early lead of +23 % at 0.3 ms. The finer drops need a smaller time step:
spray_g_g1.tomland its grid variants run at 1 µs,spray_a_distortion.tomlat 0.5 µs (both diverged at 2 µs). Gallery and recipe 344; gallery 318 rerun (50.3 mm, 1.7 µm). - Spray G G1 steps up the time step after the injection.
spray_g_g1.tomlruns at 1 µs while the injector delivers and at 2 µs from 0.9 ms on ([[schedule]]; the injection ends at 0.787 ms), and writesrestart_000900.h5there, so the late spray can be rerun from it in about 2 minutes. From that restart the 2 µs run gives the same penetrations as the run at 1 µs throughout and the liquid mass within 0.2 % (gallery and recipe 344). - Injector devices stay a picture. The wall stage ID4 of the device
plan (D344role = "wall") is dropped by the maintainer: a user models
the tip in the geometry when it must be a wall. MurmelCraft draws
static.devicesunder the parcels (MurmelCraft PR #130, ID2m).
Reacting flows and the steam furnace
- Survey of reacting flow models after ECFM-3Z (D360 to D365 proposed). New page
docs/assessments/reacting-flow-models-survey.md: tabulated flamelets, detailed chemistry per cell with clustering, EDC and PaSR, transported PDF and CMC, premixed-front models and machine learning, with published evidence (ECN Spray A ignition delay and lift-off, Sandia flames, jet in hot coflow, a MILD furnace, hydrogen and ammonia), cost and fuel flexibility, compared with SF2 and SF3 and the steam furnace plan. Model choices are asked one at a time; coding waits for the maintainer's go. - Turbulent flames with the eddy dissipation concept and the eddy dissipation model (steam furnace stage SF3, D349).
[chemistry] interaction = "edc"gives every hot cell of a RANS flow its fine structures (γ* = (C_γ (ν ε/k²)^¼)², τ* = C_τ (ν/ε)^½, Magnussen 2005 constants 2.1377 and 0.4083;edc.version = "1981"takes γ_λ³) and burns them over τ* with the stiff integrator of SF2; the mean rate is ρ κ (Y* − Y), κ = γ*/(τ* (1 − γ*)), γ* held atedc.max_fine_fraction(0.75).interaction = "edm"is the eddy dissipation model of Magnussen & Hjertager (1977) as the fallback (A = 4, B = 0.5, capped by the Arrhenius rate; mechanisms whose reactions run one way; a reaction and its exact reverse, such as the CO oxidation and CO₂ dissociation of Westbrook & Dryer, are capped by mixing as a pair). Steady and transient: transient steps take the exact increment (1 − e^(−κΔt))(Y* − Y), which conserves every element; steady runs renew the rates everyupdate_everyouter iterations, relax the rate at the current state withrelaxation, put the sinks on the diagonal of the species rows and give the energy a heat release linear in the species, taken with the mass fractions of each energy refresh. The chemistry kernel and its GPU entry take a residence time per cell. New fieldsheat_release_rate,fine_structure_fraction,fine_structure_time;chemistry.csvgains the failed cells, the cells at the guard and the range of τ*; new warning CHM004 (fine-structure reactor failed in some cells); CHM003 now refuses a turbulence model without an interaction, an interaction without one, and steady laminar cases. New casesjet_flame_edc_jl4.tomlandjet_flame_edm_wd2.toml(the piloted methane jet flame with the geometry and inlets of Sandia Flame D, Barlow & Frank 1998), plottools/plot/jet_flame_fields.py; gallery and recipe 351. - Reacting flow model choices (D360 to D365). The maintainer's answers on the reacting flow surve...
Foehncraft v1.2.0
| Version | Stage | Highlights |
|---|---|---|
| 1.2.0 (2026-11-27) | 8 (part), sprays | Drop collisions (NTC + O'Rourke, D331) and the turbulence the drops take from the gas (D330, off by default); ECN Spray G G1 with collisions and a grid orientation test (grid_angle); turbulence start-up into gas at rest bounded for all models; SST and k-ε constant overrides reach the run; plan for injector and nozzle devices (D340 to D347). Collisions cut the G1 liquid lead at 0.8 ms from 19 % to 12 % and the vapour lead from 17 % to 10 %; the grid orientation moves the penetration by about 6 %. Gallery and recipes 333, 335, 338 |
1.2.0 (2026-11-27) – spray collisions, turbulence taken by the drops, turbulence start-up fix
In one paragraph. Foehncraft 1.2.0 extends the Lagrangian sprays of 1.1.0: drops of two parcels now collide and coalesce or separate (NTC with O'Rourke, D331), and the drops can take their dispersion work out of the gas turbulence (D330, off by default). The ECN Spray G case G1 runs with collisions and has a grid orientation test. Two fixes reach every turbulent run: the extrapolated start of a BDF2 step no longer drives k, ε, ω or ζ towards zero (a ζ-f₀ jet into gas at rest diverged before), and the SST and k-ε constant overrides of [turbulence.constants] are accepted. The plan for injector and nozzle devices (D340 to D347) is written down; its coding follows.
Upgrading from 1.1
- Case files of 1.1 read unchanged; the new keys
[spray.collision],[spray.coupling] turbulenceand[mesh.generate] grid_angleare optional, and only the ECN Spray G case G1 switches collisions on. - Transient turbulent runs whose extrapolated start dropped k, ε, ω or ζ below a tenth of the last value can give slightly different results; all other runs are unchanged.
- The known limits of 1.1.0 stand. The verification manual was not regenerated for this release; the status page is current.
All changes
Lagrangian sprays
- Drop collisions.
[spray.collision] model = "ntc": the drops of two parcels in one cell collide, sampled by the no-time-counter method of Schmidt and Rutland with O'Rourke's coalescence and grazing separation; counts inspray.csv. The ECN Spray G case G1 uses it: the liquid lead at 0.8 ms falls from 19 % to 12 %, the vapour lead from 17 % to 10 %. - The drops damp the gas turbulence (D330).
[spray.coupling] turbulence = "dispersion-work"takes the work the eddies of the dispersion do on the drops out of k, with the ε (or ω) term of KIVA-II (c_s = 1.5). Only the part of the drop's motion that follows its eddy is booked, so the term is never positive and free of the noise of the mean slip, which broke the first runs.spray.csvgetsgas_turbulence_w,result.jsongas_turbulence_work. Checks: drops born in turbulent gas take 0.88 of −2k times their mass from their first eddies; in a lumped cell k loses the booked work over ρV within 3 %. On ECN Spray G, measured before the collision model, it removes nearly all of the plume turbulence and the liquid runs further ahead of the measurement (33 % at 1.1 ms instead of 15 % on SST, 52 % instead of 30 % on k-ε), so it is off by default and in the case. Gallery 333, recipe 333. - At most 32 eddies per parcel and step. Where k is nearly zero the eddies of the dispersion become so short that every eddy ended a sub-step and the parcels filled the memory. Beyond
MAX_EDDIES_PER_STEPthe eddy now lasts to the end of the step, counted asheld_eddiesinresult.json; runs in developed turbulence never reach it. - Grid orientation test of ECN Spray G.
[mesh.generate] grid_angleturns the cell lines of a generated hex box (also a 22.5° sector) so a jet can run along or across them. G1 on a uniform 0.6 mm grid with the lines along the plume gives a liquid lead of 27 % at 1.2 ms, with the lines at 45° to it 20 % (vapour 17 % and 9 %): the grid orientation moves the penetration by about 6 %. Casesspray_g_g1_grid_alignedandspray_g_g1_grid_turned, plottools.plot.spray_g_grid, gallery and recipe 338.
Turbulence
- Turbulence start-up into gas at rest. The extrapolated start of a BDF2 step may no longer drop k, ε, ω or ζ below a tenth of the last value (all models, the same bound as after a solve), and the f/f₀ equation of the ζ-f models takes its ζ dependence implicitly. A zeta-f0 jet started into gas at rest no longer diverges within ten steps.
- SST and k-ε constant overrides.
[turbulence.constants]of the SST model (for examplegamma2) and of k-ε (a0) were refused at the start of the run because they were checked against the ζ-f names; they now reach the run.
Documentation
- Plan for injector and nozzle devices (D340 to D347). New page
docs/requirements/step28-injector-devices.md: a device frame (mounting point, axis, azimuth reference) with its holes given by angle from the axis and azimuth, injectors that may name a hole instead of absolute coordinates, standard gasoline and diesel STLs and the user's own STL placed by that frame, shown in a newspray/devices.vtkhdffile, and the device as a wall later. Existing injector files are unchanged. Stages ID1 to ID4; coding waits for the maintainer's go. - README hero image of ECN Spray G. The spray picture of the README is now one plume of the ECN Spray G injector, its drops drawn as spheres sized by their diameter; the same render joins gallery 323.
- README and feature list. The crate table lists
foehncraft-particles, and the feature list has the injection from measured droplets and the Brno spray.
Foehncraft v1.1.0
| Version | Stage | Highlights |
|---|---|---|
| 1.1.0 (2026-11-26) | 7 and 8 (parts), first multiphysics modules | Runs on several MPI ranks with every output file byte for byte that of one rank (W5 to W7, with species, statistics, MRF and sliding meshes); Lagrangian sprays from injection to breakup and evaporation with the ECN Spray A and Spray G cases; species, gas-phase chemistry and laminar reacting flows; IAPWS-IF97 water and steam and 1D boiler circuits; Monte Carlo radiation on CPU and GPU; two fluids by the volume of fluid; porous regions with two temperatures; laminar natural convection benchmarks; deforming meshes; a structural solver (beams, shells, solids, contact, dynamics, thermal loads); immersed walls by penalisation and cut cells on STL bodies; adjoint stage A0; blocked VTKHDF, binary Fluent .msh, BLAKE3 hashes. Ranks bitwise one rank on 1 to 4 ranks; radiation GPU bitwise the CPU; laminar methane flame 0.348 m/s against the measured 0.360 ± 0.017; diesel-like spray within 1 % of Hiroyasu–Arai; STL sphere array within 0.9 % of the series; heated cavity GCI ≤ 0.12 %; dam break within 5 to 17 % of Martin & Moyce. Gallery and recipes 242–329 |
1.1.0 (2026-11-26) – multi-rank MPI, sprays, reacting flows, radiation, two fluids, structures and immersed walls
In one paragraph. Foehncraft 1.1.0 is the first feature release after
milestone 1. Runs go onto several MPI ranks (or threads acting as ranks)
and write every output file byte for byte as one rank does. The solver
gains its first multiphysics modules: Lagrangian sprays from injection to
breakup and evaporation, validated on the ECN Spray A and Spray G
conditions; species, gas-phase chemistry and laminar reacting flows; water
and steam of IAPWS-IF97 with one-dimensional boiler circuits; Monte Carlo
thermal radiation on CPUs and GPUs; two immiscible fluids by the volume of
fluid; porous regions with two temperatures; deforming meshes; a small
structural finite element solver for parts the flow moves; and immersed
bodies, from penalisation to sharp cut cells on STL surfaces. Every module
has its gallery entry with field images, its cases and its recipe, and its
grade and gaps on the verification status
page. A gap is listed as a gap.
Highlights
- Multi-rank MPI (W5 to W7, turning zones).
foehn flow case.toml --ranks N,[run] rank_count = Normpirun -n N foehn flowrun steady
and transient cases on ranks: SIMPLEC, PISO and the coupled solver,
k-ω SST and k-ε, passive scalars, the energy equation, species, the
variable density and statistics, rotating frames,
MRF zones and sliding meshes (conformal stepping and imprinting), closed
vessels, deforming meshes, restarts gathered from the ranks and read on
any rank count. Every output file is byte for byte that of one rank on
1 to 4 ranks. CPU ranks only; GPU-aware MPI is later. - Lagrangian sprays (SP1 to SP6, Spray A, Spray G). Parcels with exact
drag and gravity, datums and droplet statistics, two-way coupling of
momentum and heat with a ledger pair that cancels to the bit, eddy-lifetime
dispersion, a steady spray mode, evaporation (Ranz–Marshall,
Abramzon–Sirignano) with a liquid library and the 1/3-rule film,
KH-ACT and KH-RT breakup from the nozzle hole with TAB distortion, the
Peng–Robinson droplet surface and mixing line of high-pressure sprays,
a real-fluid droplet film (Chung and Riazi–Whitson factors), the
Corrected Distortion drag and evaporation of distorted drops, and the ECN
liquid length and vapour penetration, and injection from measured
droplets with the Brno phase Doppler spray. Bitwise equal on any
thread count; a 60 MPa diesel-like spray within 1 % of the Hiroyasu–Arai
penetration at 1 ms. Recorded gaps: on ECN Spray G (G1) the untuned
model runs 33 % ahead in liquid penetration at 1.2 ms, and the
mixing-limited liquid lengths of Spray A are below the measurements. - Species and reacting flows (steam furnace SF1, SF2a, SF2b). Gas
mixtures of the 53 GRI-Mech 3.0 species, mechanisms in YAML (GRI-Mech 3.0,
Westbrook–Dryer, Jones–Lindstedt), a stiff RODAS3 reactor and Gibbs
equilibrium, and chemistry in the cells of a transient laminar flow on
CPU and GPU. A laminar methane–air flame burns at 0.348 m/s against the
measured 0.360 ± 0.017 m/s; the adiabatic flame temperature is 2224.9 K. - Water, steam and boiler circuits (SF7a, SF7b). IAPWS-IF97 regions 1
to 5 as materials and as a GPU kernel (the verification tables to the last
printed digit), and the new cratefoehncraft-circuits: tubes, headers,
drums and the natural circulation of a drum loop with flow boiling,
two-phase friction, void and the critical heat flux margin. - Thermal radiation (R1a). Monte Carlo energy bundles in a grey gas
with grey diffuse walls (new cratefoehncraft-radiation), an energy
account that closes exactly, the GPU bitwise equal to the CPU, six
exact verification cases, and the box furnace on KoflCraft's 2.11 million
cell mesh with 18 million bundles and traced bundle paths. - Two fluids by the volume of fluid (MP1). THINC or CICSAM advection,
balanced gravity and surface tension, the volume kept to round-off; the
collapsing water column follows Martin & Moyce within 5 to 17 %. - Porous regions (PM0 to PM2) and natural convection (7b2).
Darcy–Forchheimer resistance with the honeycomb shorthand, separate gas and
matrix temperatures (Schumann's bed exact to second order); the heated
cavity at Ra 10³ to 10⁶ with a GCI of at most 0.12 %, the Ostrach plate
within 0.4 %, mixed convection against its exact profile. - Moving solids: deforming meshes and structures (MS0, MS5, MS6 part 1).
[mesh_motion]with the space conservation law closed to round-off (a
piston follows p₀V^γ with an error that falls as Δt²); the new crate
foehncraft-structurewith beams, MITC4 and MITC3+ shells, quadratic
solids, contact with seats and stops, dynamics, thermal strains and the
temperatures of a flow case's solid region as loads, checked against the
classic patch tests and analytic solutions. - Immersed walls (L13 stages 0 to 2). An exact geometry kernel (surface
check, winding numbers, signed distance), Brinkman penalisation with a
topology search, and conservative cut cells for primitive and STL bodies
with sharp edges by dual contouring; merged cut cells keep exact volumes,
with several faces per cell pair at a bend. Stokes flow through an
array of STL spheres within 0.9 % of the series on 48³ hexahedra, second
order, and the wall carries the driving force to 0.4 %. - Adjoint, first stage (L17 A0), the steady residual and the reverse
sweep of the momentum face kernel. - Meshes, files and logs. VTKHDF meshes read (KoflCraft's blocked
hand-off included),fields.vtkhdfin the blocked layout shared with
MurmelCraft, binary Fluent.mshfiles, a streaming VTK reader, exact
watertight ray casting, BLAKE3 hashes, log detail levels, and colour maps
shared with KoflCraft and MurmelCraft.
Upgrading from 1.0
result.jsonand the other machine formats are version 2.0: each output
file carriesblake3instead ofsha256(D84). Python'sResult.files()
reads both.fields.vtkhdfis written in the blocked layout 1 (partitions along a
Hilbert curve with ghost cells). ParaView opens it as one data set; a
script that reads the arrays itself gets the single-piece grid from
foehncraft.vtkhdf.internal.- Field pictures default to Rainbow Desaturated, Rainbow Uniform for signed
fields (D261). - Case files of 1.0 (format 0.7) read unchanged.
Known limits
- Not yet on ranks: GPUs; turbulence models other than k-ω SST and k-ε,
the curvature correction and the QCR; gravity; chemistry in the cells
and the thermodynamic pressure of a closed volume; regions (conjugate
heat transfer and porous); sprays, immersed bodies and the volume of
fluid;[[schedule]]and level sweeps. Each is refused with its reason.
Strong scaling is not measured yet (W9). - A transient variable-density run in an open domain reports RUN007, on
one rank as well as on ranks. - Reacting flows are laminar and transient; turbulent reacting flows (EDC,
SF3) and the coupling of radiation to the energy equation (R1b) follow. - The volume of fluid is isothermal and runs on one process; phase change
and boiling are MP2 onward. - Fluid–structure coupling (the rest of MS6) and the mesh-motion solver
(MS1) are not built; immersed walls are laminar and isothermal, and on
tetrahedra the drag of the STL sphere array is still 1.7 to 4.8 % high. - The verification manual was generated for this release (185 of 185
catalogue cases pass); the status page is current. - No prebuilt binaries (D203): build from source (install).
Also in this release: changes already in the 1.0.1 code
Three pull requests were in the code of the 1.0.1 tag but missing from its
notes: MPI step W5 part 1 (#234), the streaming VTK reader (#245) and the
face centroid on twisted faces (#246). They are listed below with the rest.
All changes
Multi-rank MPI
- Multi-rank MPI, step W5 part 1: steady SIMPLEC on ranks, bitwise one rank. The CPU flow device runs on a rank's local mesh: cell fields carry own and halo cells, the halo is exchanged after every kernel that writes cells (gradients, limiters, momentum and pressure rows, the velocity correction), residuals and norms sum the own cells exactly over all ranks, and the linear solves use the scalar backend on ranks (W3, W4). Decisions every rank must take alike (the pressure reference, the mesh skewness, the kind of every buffer) are taken globally, and the potential-flow start reads halo gradients. Steady SIMPLEC gives bitwise the velocity, pressure, pressure gradient, limiter and residual history of one rank on 1 to 4 ranks for polyhedra, mix...
Foehncraft v1.0.1
| Version | Stage | Highlights |
|---|---|---|
| 1.0.1 (2026-11-24) | 8 (part) Milestone 1, patch | From one sentence to a moving rotor: a vessel with three stirrers (seven curved blades, gallery 225) built and turned through foehn mcp, the movie script for several rotors and vector fields, and the README section that shows it; renderings of the shell-and-tube heat exchanger (application 203); multi-rank MPI steps W3 and W4 (scalar solver and multigrid on ranks, bitwise equal to one rank; groundwork for 1.1, inert on a normal run); a faster point search by a bounding volume hierarchy (D108) and exact orientation predicates (D225); the ledger as data with module rows and the thermal account in result.json (D119); specification of the Lagrangian sprays, the spray prerequisites and the graphics-algorithms assessment. No change to the results of a single-process run. Gallery 225, 230, 231 and 238, recipes 225, 230, 231 and 238 |
1.0.1 (2026-11-24) – patch: three rotors by one sentence, heat exchanger renderings, MPI step W3
In one paragraph. Foehncraft 1.0.1 shows what the assistant route can do (an MCP-driven three-rotor vessel with curved blades as a movie, with the script that renders it), adds the renderings of the heat exchanger and lands the first two steps of multi-rank MPI as groundwork for 1.1. A single-process run is unchanged from 1.0.0. The changes of the 1.0.0 solver, its verification grades and its known limits stand as listed under 1.0.0.
- Docs and links reviewed after 1.0.0. Two unclosed code blocks (gallery and recipe 208) hid the headings of entries 206, 221, 186 and 195 and broke 51 links; fixed, and every internal link and anchor of the 91 Markdown pages now resolves. README, install (binaries still open, D203), troubleshooting (PRS001/PRS002 after D239), recipe 6 (tags
v1.0.0), the index pages and the tools README describe the 1.0.0 state; the changelog summary table now stands at the top. - A rotor with curved blades from Gmsh (gallery and recipe 225).
examples/meshes/three_mixer.pybuilds a vessel with three stirrers (three and five straight blades, seven circular-arc blades of constant thickness) andexamples/studies/three_mixer/sliding.tomlturns them as three sliding rotors. The recipe names what breaks in the obvious curved-blade build (a blade root that ends on the hub circle, a 180° tip arc, offset splines) and how the script avoids it. tools/plot/rotor_movie.pyfor several rotors and vector fields.--component magnitude|x|y|zpicks a component of a vector (--field vorticity --component z, the arraysNAME_x...NAME_magnitude); a field that is not in the series stops the script with the list of the cell fields that are;--range=LO:HIas one argument, because pvpython turns-60into--60; a signed field gets a colour range symmetric about zero. The picture fits the domain to its shape, the walls and blades are drawn again (ParaView 5.10 and later select theboundarynode in the data assembly, not in the block hierarchy), the colour bar shows, and the label gives the revolutions of every rotor.- README: from one sentence to a moving rotor. A new section before "What works today" shows the animation of the three-rotor vessel (gallery 225) with the one-sentence prompt that started it through
foehn mcp, and links the MP4 and the guide to connect an assistant. - Renders of the shell-and-tube heat exchanger (application 203). The README shows an animated teaser that crossfades the hero cut-away and the air path, and the application page has a new "Renderings" section with four images.
examples/applications/shell_tube_hx/render_images.py(pvpython) draws them from the level-2 counter-flow result, which is not converged (985k cells, stopped at 2500 iterations, largest residual 6e-3). Recipe 203 gives the render command. - Multi-rank MPI, step W3: the scalar solver on ranks, bitwise one rank. The discretisation and the CPU backend run on a rank's local mesh with halo cells: φ, its gradient and limiter value and the vector of every matrix product are exchanged before they are read across a face, dot products and extrema are exact over all ranks, and the unchanged steady scalar solver (gradient, limiter, face coefficients, assembly, BiCGStab and CG with Jacobi) gives bitwise the solution, gradient, limiter, matrix, right-hand side and residual history of one rank on 1 to 4 ranks, for polyhedra, mixed cells and tetrahedra, linear upwind and bounded central (D93). To get there every face of a rank's part now keeps its global orientation (a processor face may be owned by the halo cell): the flipped faces of W1 kept the geometry exact but not the asymmetric face formulas. New:
CpuBackend::on_ranks,decompose::Ranks,foehncraft_fv::ranks,ThreadComm(ranks as threads of one process, for tests and tools),[run] ranksoffoehn scalar(solves on several rank counts in one process and fails unless bitwise equal), the examplempi_scalarin the MPI job of CI (1 to 4 processes).MpiCommnow initialises MPI as "funneled" and can be shared. The multigrid preconditioner on ranks is W4. Gallery 230, recipe 230, casescalar/ranks_oblique_step_2d.toml. - Multi-rank MPI, step W4: multigrid on ranks, bitwise one rank. The setup is replicated: every rank gathers the matrix in global order (
Backend::amg_matrix) and builds the whole hierarchy, so the aggregates are those of one rank;amg::dist::distributekeeps the rows a rank owns on every level (a coarse row belongs to the owner of the first fine row of its aggregate) and plans the ghost exchange of each level without communication. The V-cycle (Jacobi and Chebyshev smoothers, mixed precision) and the reduction multigrid of the coupled momentum sweep (D179) run on the own rows with a halo exchange per level; the coarsest level is gathered and solved on every rank. CG + multigrid and the reduction multigrid give bitwise the result of one rank on 1 to 4 ranks (threads and MPI processes,mpi_scalarin CI), and[run] ranksnow acceptspreconditioner = "amg". Gallery 231, recipe 231, casescalar/ranks_poisson_amg_poly_box.toml. - Point search by a hierarchy over cell boxes (D108 part 2). The search for the cell that holds a point (probes, line samples, the pressure reference cell, the fallback of the particle walk) now uses a bounding volume hierarchy over the cell boxes, built with the same binned surface-area heuristic as the wall-distance hierarchy, instead of a uniform grid of boxes sized by the mean cell. It is 5 to 20 times faster per query on the meshes of the repository and on graded test meshes, no longer depends on the size grading, and builds in parallel (about as fast as the grid on large meshes; the same tree on any number of threads). The wall-distance hierarchy shares the faster build (benchmark). The answer is the smallest cell index that contains the point, so it does not depend on the tree (D93). The grid stays as
Locator::locate_search_grid, the reference of the tests and ofexamples/locate_bench.rs. - Exact orientation predicates (D225, first piece of the L13 geometry kernel).
foehncraft_core::predicates::orient2dandorient3dreturn the sign of the 2D and 3D orientation determinants exactly for any binary64 input: a floating-point evaluation with the a-priori error bound of Shewchuk (1997) decides the common case, an exact expansion evaluation (Two-Sum, Two-Diff, Two-Product, Grow-Expansion; written from the paper) the nearly degenerate rest. Tested against 128-bit integer determinants on 60 000 nearly coplanar and 65 536 nearly collinear point sets, where plain floating point gets 21 % and 18 % of the signs wrong. Used next by the ray casting of D108 part 2. - Ledger as data, part 2: module rows, thermal account, ledger in
result.json(D119, gallery and recipe 238). A module books its rows on the ledger withRates::book: terms with an exchange-pair id go to the account of the same quantity and region (mass, kinetic energy, thermal energy, momentum x/y/z), or form an account of their own (parcel mass, momentum, enthalpy); the two sides of a pair cancel to the bit and a missing partner shows in the pair residual. Every account now has a storage (content change per step and over a run) and the one closure routine, and the mass view includes booked sources. The heat balance of the energy equation is booked as the thermal account (conduction and convected enthalpy per boundary, sources, held cells, outside heat, storage; closure equal toEnergyBalance::imbalance).result.jsoncarriesbalance.last.ledger(account, unit, region, content, storage, terms, closure) andbalance.last.pairs, additive (D80); the numbers ofbalance.csv, the log tables andflow.mdare unchanged. This is the base of the two-way coupling of the sprays (D244). New plottools/plot/ledger_chart.py. D243 amended: both dispersion models as one case key. - Specification of the Lagrangian sprays, version 1 (SP0, D240-D246). The module, its models, inputs, outputs and verification cases are written down before any code (docs only, #232).
- What the spray module still needs (L12). Assessment of the prerequisites in the solver, the mesh and the output (docs only, #228).
- Computer-graphics and geometry-processing algorithms for the modules. Assessment: cell-box BVH first, a null-collision benchmark for radiation, the heat method not for wall distance, a patent flag on the watertight ray test (docs only, #233).
Foehncraft v1.0.0
| Version | Stage | Highlights |
|---|---|---|
| 1.0.0 (2026-11-23) | 8 (part) Milestone 1 | The internal-flow cases of D45 (pipe, plane diffuser, U-bend, T-junction on polyhedra) with grid convergence, several fluids in one conjugate case (D194), gravity, Boussinesq buoyancy and the low-Mach variable density (7b1, 7c), absolute pressure values and per-region start values (D239, D238; case format 0.7 stable), the cycle-averaged loop and the frozen-flow march for slow thermal transients (D204, D118), the operator exactness check with quadratic fits (D236), the MLP vertex limiter (D237), exact CPU reductions (MPI W1, W2). Pipe u_τ +4.5 % from DNS (GCI 0.2 %); diffuser reattachment GCI 0.36 %; U-bend separation GCI 0.19 %; stratified box at rest to 10⁻¹⁵ m/s; closed box p₀(t) exact; warm-ups in a tenth of the steps within 0.06 K. Gallery 186–221, recipes up to 221 |
1.0.0 (2026-11-23) – milestone 1: a general purpose incompressible solver with heat transfer
Foehncraft 1.0 in one paragraph. A finite-volume solver for
incompressible and low-Mach flow on arbitrary polyhedral meshes in 2D and
3D, written in Rust, with one kernel source for the CPU and NVIDIA GPUs.
Steady and transient laminar and RANS flow (k-ω SST with curvature
correction and QCR, standard and realizable k-ε, k-ε-ζ-f, k-ε-ζ-f₀,
elliptic-blending k-ε, with every common wall treatment); SIMPLEC, PISO
and a coupled pressure–velocity algorithm with multigrid; the energy
equation with temperature-dependent properties, conjugate heat transfer
with any number of solids and fluids, gravity, Boussinesq buoyancy and the
low-Mach variable density; rotating machinery with the moving reference
frame and sliding meshes; readers for Gmsh, SU2, CGNS, OpenFOAM, Fluent
.msh and VTK meshes; restart, schedules, probes, statistics, ledgers and
divergence reports; a Python package, a typed tool registry and an MCP
server for scripts and assistants. Every feature has a verification grade
with its evidence on the verification status
page, and every run lists its limitations.
Highlights since 0.7.
- Internal flows of D45 with grid convergence. Turbulent pipe flow at
Re_b 5 300 (u_τ/U_b +4.5 % from the DNS, GCI 0.2 %), the asymmetric
plane diffuser of Buice & Eaton (reattachment 28.9 H, GCI 0.36 %), the
U-bend of Monson et al. (separation at 139.8°, GCI 0.19 %), both also
with sharp edges, and a laminar T-junction mixing a passive scalar on
polyhedra; gallery 193, 196, 199, 204. - Several fluids in one conjugate case (D194). Any number of fluid
regions with their own liquids or gases beside any number of solids;
each fluid part with its own pressure level. A shell and tube heat
exchanger runs hot air, water and steel in one case on 0.48 M
tetrahedra (application 203, a demonstration). - Gravity, buoyancy and variable density (stages 7b1 and 7c).
Boussinesq buoyancy with a balanced force (a stratified box at rest
stays at rest to 10⁻¹⁵ m/s on any cell type) and the low-Mach density
ρ(T, p₀) for open and closed domains, steady and transient, turbulent
and conjugate. - Absolute pressures and start values (D239, D238; case format 0.7).
Pressure values in a case file are absolute by default (gauge optional,
older files read as gauge); every region and fluid part starts from its
own values and its own pressure boundaries. The case format is stable
from 1.0 on. - Slow thermal transients made fast (D204, D118). The cycle-averaged
loop for periodic flows over slow solids, with a skin swing and fully
coupled closing cycles, and the frozen-flow march: warm-ups in a tenth
of the steps within a fraction of a kelvin of the fully coupled run. - Robust numerics on real meshes. An operator exactness check of every
mesh (D236) with quadratic fits that make the curvature correction and
the QCR converge on tetrahedra; the vertex-based MLP limiter for scalars
and temperature (D237); exact, order-independent sums, dot products and
norms on the CPU, bitwise the same for any thread count (MPI step W2,
with the canonical local mesh of W1 as groundwork for ranks).
Known limits. Runs use one process (threads, or one GPU): multi-rank
MPI is v1.1 (W1 and W2 are in, D235). Since the exact CPU sums, GPU
results agree with the CPU to rounding, not bitwise (GPU exact sums in
v1.1). No natural-convection benchmark validation yet (7b2 is v1.1), no
turbulent buoyancy closures (7e). The T-junction's branch-inlet pressure
does not converge with the mesh (GCI 29 %) and the D45 cases still lack
measurements, Re 10⁶ and a converged sharp-edged fine U-bend mesh; the
heat exchanger is a demonstration on one mesh. Several fluids do not yet
combine with variable density, gravity, rotating zones or passive scalars
(REG006); periodic meshes with solids are refused (ENE006). The GPU paths
of the stage 7 physics were not run on a device for this release, and the
generated verification manual was last run on 0.6.0.
Changes.
- Gravity and the Boussinesq buoyancy (stage 7b1).
[gravity]with
vectorandreference_point, and[buoyancy]with
model = "boussinesq",expansion_coefficient(default from the
fluid's density at T_ref),reference_temperature(default the
[fluid] temperature) andreference_density. The solved pressure is
the reduced pressure p′ = p − ρ_ref g·(x − x_ref); the output has the
static pressure p asstatic_pressureas well. The values of the
pressure boundaries are p′ by default;pressure_kind = "static"reads
them as static pressures and converts them per face. Works with SIMPLEC
and the coupled algorithm (the kernels are shared by CPU and GPU), with
the energy equation and with solid regions (the fluid temperature drives
the force). - Balanced force (D154). The buoyancy enters every face as the
pressure gradient does: the same face differences, the same
least-squares operator in the cells, the matching Rhie–Chow term and
boundary pressure. A closed box with a stable stratification along an
oblique gravity stays at rest to 10⁻¹⁵ m/s on perturbed hex, tet, poly
and mixed meshes, with SIMPLEC and the coupled algorithm (V7.7 (a)). - Buoyancy pseudo-time step. Steady runs with buoyancy take a
pseudo-time step 1/N (N the buoyancy frequency, scaled by
[solver.pseudo_time] factor) in SIMPLEC and SIMPLE, and the coupled
algorithm's automatic step takes the buoyancy velocity as a lower bound.
Without it a stable stratification on a coarse mesh never settled. - Kinetic-energy ledger counts the work of the buoyancy force.
- Codes BUO001 (no gravity), BUO002 (Boussinesq out of range), BUO003
(no energy equation or no β), BUO004 (gravity with energy but no model),
BUO006 (a static-kind pressure value over a tall opening); the
variable-density model is refused with ENE006 until stage 7c. - Cases and docs.
buoyancy_enclosure_plume,buoyancy_box_at_rest,
buoyancy_slot(analyticbuoyant-slot, observed orders 2.14 and
2.13),buoyancy_channel_reduced,buoyancy_channel_static,
buoyancy_open_box; gallery and recipe 186 ("Switch on gravity and
buoyancy; which pressure do my boundary values mean"). - Infrastructure features can reach verified (D199). Restart, logs and
run record, Python package, command line, tool registry, journal and
replay and the MCP server are graded through contract evidence: a row
markedinfrastructure = truelists its contracts (bitwise, schema,
equivalence, replay, control, diagnostics, round-trip) and each needs a
test of kindcontract. Three new rows (tool registry, journal and
replay, MCP); 48 of 97 features are verified, up from 41 of 93. New test:
every row ofrun.jsonlfollows its schema. - Operator exactness check of the mesh (D236). Before the solve the
velocity gradient and its gradient (the velocity Hessian of the
curvature correction) are applied to linear and quadratic test fields on
the mesh of the run. Cells where they are not exact are flagged:
MESH004(a broken stencil),MESH005(with the curvature correction:
it does not converge there),MESH006(with the QCR: the stress
divergence does not converge there) and the limitationLIM008; the 50
worst cells per operator go toflow.jsonand thecase.checkreport,
every cell tooperators.csv. New keysolver.operator_tolerance
(0.01). No result changes. Gallery and recipe 189. - Cycle-averaged coupling of a periodic flow with its solids (D204).
[energy.cycle]runs the loop by itself on one mesh: a fluid phase holds the solids at their wall temperature and averages the heat transfer of every interface face (and the mass flux) over a cycle once the flow is periodic; a solid phase solves the energy equation steady with the fluid convected by the cycle-mean mass flux and the difference between the transient and the mean-flow heat flow added to the solid cells, so the wall answers its own temperature with the response of the flow; the new wall temperatures go back to the fluid phase, with a quasi-Newton (IQN-ILS) update after the first, until the wall temperature and the heat flow settle. On a pulsating channel over a heated wall the loop converges after 4 updates and 10 cycles; heat flow and wall temperatures are within 0.4 % of the rise of the fully coupled periodic state. The classic first-cell Robin solid phase stays assolid_model = "robin"for comparison: it converges no sooner than the fully coupled run there.enabled = falseruns the same case fully coupled. Outputscycle_coupling.csv,cycle_faces.csvandtransient.cycle_couplingof the report; heat balances of every fluid step and solid phase to 10⁻¹³. Codes CYC001, CYC002, CYC004, CYC005 and LIM009; checks V7.39, V7.40; gallery and recipe 190. - Minimal path to v1.0. Requirements section 7a and D235 record what v1.0 contains and what moves to v1.1.
- **Multi-ra...
Foehncraft v0.7
| Version | Stage | Highlights |
|---|---|---|
| 0.7 (2026-11-22) | 7 (part) Energy, conjugate heat transfer, agents | Energy equation of the fluid with temperature-dependent properties, conjugate heat transfer with solid regions (steady and transient, laminar and turbulent, contact resistances, orthotropic solids, heat sources, thermal acceleration of solids), the tool registry, journal and replay, the MCP server foehn mcp, run limits and budgets, the live control port, run limitations from the verification status page, manufactured solutions of every turbulence model, the clean-room rework of the reference numbers. CHT checks exact to round-off (V7.4, V7.6 to 10⁻¹² K, V7.36 to 10⁻⁴); heat balance closes to 10⁻¹¹ in every step; thermal acceleration ends within 0.2 % of the steady solution. Gallery 131–184, recipes up to 184 |
0.7 (2026-11-22) – stage 7 (part): energy equation, conjugate heat transfer and agents
Highlights.
- Energy equation of the fluid. Conservative sensible-enthalpy temperature
equation with c_p(T), k(T) and μ(T) from the material database (water and
air tables, NASA-7/9, CHEMKIN reader, user database files), viscous
heating, volumetric sources, thermal wall conditions (temperature,
heat_flux,heat_flow,heat_transfer_coefficient) and a heat balance
of every boundary. - Conjugate heat transfer. Solid regions in steady and transient,
laminar and turbulent flow: one energy matrix over fluid and solids with
series conductances at material faces, the thermal wall function of the
flow on the fluid side, contact resistances and thin walls, orthotropic
solids, region heat sources, per-stepheat.csvand probes of the
temperature. Automatic thermal acceleration of solids in transient runs
(D213) with a conservative restore. Exact checks V7.4, V7.6, V7.36,
V7.37 and the acceleration checks V7.41 and V7.42. - Agents first. The tool registry (D196): every command of
foehnand
every Python function runs through typed tools with schemas, a journal
with replay (D197), the MCP serverfoehn mcpwith read and write roots,
run limits and study budgets (D198), the live control port with
run.status,run.stopandrun.set(L19), run limitations
LIM001–LIM007 from the verification status page (D199), and an
assistant-run heat sink study as gallery 181. - Robustness and clean room. Bounded Rhie–Chow face velocity for
skewed tetrahedra (D50),unsafeonly in named modules and a
broken-input corpus for every reader (D202), the ζ-f and ζ-f₀ wall sink
that converges with the mesh, manufactured solutions of every
turbulence model including ζ-f₀, curvature correction and QCR, and the
clean-room rework of the reference numbers (D201, E1–E10). - Engineering gallery. The stirred tank and the 2 L tank of Fyfe et al.
- Plans and requirements. Cycle-averaged CHT (D204), design
optimisation (step 26), the immersed boundary method (L13, with the
owner decisions), the adjoint solver (step 27, D220–D224) and the log
redesign (D214). No code.
Known limits. Buoyancy (7b1) and variable density (7c) are not in this
release; periodic meshes with solids are refused (ENE006); the curvature
correction and the explicit QCR stress do not converge at full order on
tetrahedra (see the grades on the verification status page); the GPU path
of the energy equation is covered by host-side changes and was not run on
a device in this release; the generated verification manual was not
regenerated for 0.7.
Changes.
- Engineering Gallery started (application 131). A new track for industrial cases with complex geometry, next to the feature gallery: the index docs/applications.md with the check legend and trust levels, the rotating-machinery page, and the first entry, a baffled stirred tank with a three-blade hydrofoil (power number 0.29–0.30, pumping number 0.45 at 2 500 iterations). The entry is a demonstration: the steady frozen rotor does not settle, and the check card says so. The mesh script and the case are in
examples/applications/stirred_tank/. - Mesh grading for the tank. The tank mesh is graded from the walls, which keeps the blade–hub and sparger corners below skewness 1.1; without it they reach 1.4 and the pressure runs away.
- Multi-zone SU2 and CGNS meshes for rotor/stator runs (D195, gallery 138,
recipe 138).mesh.filereads all zones of an SU2 file (NZONE= n) or a
CGNS base into one mesh, each zone a cell zone, the nodes of different zones
apart, so the interface is two boundaries for[[sliding]]. New key
mesh.merge_nodesjoins coincident nodes for touching stationary zones. - ζ-f and ζ-f₀ converge with the mesh at the wall (stage 6, maintainer
decision 2026-11-20). The sink of the k equation is now
max(k/T_K, 2νk/d²), with d the wall distance and T_K the time scale
with its Kolmogorov bound. It equals ε at the wall, so k falls like y²,
and it is k/T_K away from walls, which keeps k positive at a laminar
leading edge. The sink k/T_K of 6d2 let k fall like y only, and the
wall value of ε then grew with every refinement: the converged channel
of ζ-f₀ went from U_b⁺ 17.79 to 18.39 over four meshes. Now it gives
17.34, 17.54, 17.58, 17.58 (+0.2 % from the DNS on 768 cells across).
ζ-f₀ takes C_ε1 = 1.4 (1 + 0.009/ζ) in place of the printed
1.4 (1 + 0.012/√ζ), which gives U_b⁺ −11 % with a consistent sink. The
flat plate (C_f +1.8, +0.2, −0.2 % from White on three meshes, GCI 0.2 %) and the
step (x_r/H 6.42) stay in their bands. The impinging jet converges with
the mesh, but at Nu₀ = 196, +38 % from the experiment (the
stagnation-point excess of k; finding). The ζ-f plate now converges
(C_f +0.05 % from White on the middle mesh; before, it stopped at the
iteration limit at +24 %). - New keys:
turbulence.k_sink("wall", the default;"epsilon",
the papers' −ε;"kolmogorov", the old ζ-f₀ default) and
[turbulence.constants] c_epsilon1_power(1, or ½ for the printed
C_ε1″/√ζ of Popovac 2023). - Fix: the ambient (sustaining) source of k in ζ-f and ζ-f₀ is the
sink at the ambient state, so the free stream holds its k for every sink
form. - The channel runs of the GCI study use the coupled algorithm, at
most 3 000 iterations each: ζ-f₀ converges to 10⁻⁹ in 436 to 883
iterations instead of up to 35 000 with SIMPLEC, the k-ε models in
under 700, ζ-f in under 2 600, with the same U_b⁺. SST on the finest
mesh and EB on the two finest stop at the limit with a residual near
10⁻⁷, within 0.3 % of their converged values (finding; the docs keep
the SIMPLEC values of #128). The plate runs of ζ-f and ζ-f₀ use it too
(178 to 496 iterations). - The channel case files of ζ-f and ζ-f₀ use the coupled algorithm
(about 230 and 370 iterations instead of 2 100 and 3 700). - The ζ-f plate converges (
require_convergence = true): C_f +2.0 %
from White on 64 × 48 cells, +0.03 % on 128 × 96 (before +5.1 % with
the k floor of the leading edge). - The inlet table of the impinging jet (
impinging_jet_profile.csv)
is made again from the pipe flow with the new sink. - Gallery 141 and recipe 141: the sink of k with two field images
(the ζ-f plate near its leading edge, the wall layer of the jet). - Finding: in the test of a turbulence patch carried by the rotor
(tests/sliding.rs), the imprinted run of ζ-f₀ at a Courant number of
1.7 drives ζ to its cap and diverges with any sink of k that is ε at the
wall (the new default and the papers' −ε); k/T_K held there. The
imprinted run of the test now takes half the time step (Courant 0.85). - Robust on skewed tetrahedra: bounded Rhie–Chow face velocity (D50). On raw Gmsh tetrahedra, turbulent rotor cases (the stirred tank) still diverged with the cell-quality remediation. The cause was the face velocity of the mass flux, which is moved to the face centroid with the unlimited cell gradients. On skewed faces that feeds a velocity mode back into continuity with a gain above one. The remediation now also sets
solver.face_velocity = "bounded", the mean of the two limited extrapolations to the face centroid. It is exact for a linear field and stays between the values of the two cells. Meshes without skewed faces are unchanged. The new opt-insolver.transposed_stress = "trace-free"drops the grad-div part of the explicit transposed stress in turbulent flow. - Kernels: density per cell and per face (stage 7.0b). The flux,
momentum, scalar and turbulence kernels read ρ from cell and face fields
instead of one number, on the CPU and the GPU. Results are bit for bit
unchanged; the fields carry the variable density of stage 7. - Manufactured solutions of every turbulence model (stage 6
specification 9.2).turbulence::mmssolves the turbulence equations
of SST, the standard and the realizable k-ε, k-ε-ζ-f and the
elliptic-blending k-ε alone in a frozen cellular flow with smooth
manufactured k, ω/ε, ζ/φ, f/α and wall distance and every source term
active; the L2 errors converge at order 1.8–2.3 on hexahedra, polyhedra
and triangular prisms. New:Flow::turbulence_iteration,
Turbulence::set_added_zeta_sources(with an added right-hand side of
the f/α equation in the kernel) andTurbulence::set_zeta_fields. - Fix: realizable k-ε C_μ with the deviatoric strain. W̃ of Shih et
al. now comes from the trace-free strain; with the discrete trace it
jumped across its range where the strain vanishes. - Requirements: oriented anisotropic material properties (L48). Material
frames for orthotropic conductivity and permeability in laminations,
windings and magnets of e-motors; recorded with L30. No code. - Assessment: the ArtCraft development method.
docs/assessments/artcraft-development-method.mdcompares how the ArtCraft Crafting Apps are built with Foehncraft's practice and lists open questions...
Foehncraft v0.6
| Version | Stage | Highlights |
|---|---|---|
| 0.6 (2026-11-20) | 6 RANS turbulence, heat transfer, rotating machinery | Six RANS models: k-ω SST 2003 (with the curvature and rotation correction and QCR2000/QCR2013), standard and realizable k-ε, k-ε-ζ-f, k-ε-ζ-f₀ and the elliptic-blending k-ε; wall treatments low-re, automatic, scalable, standard, compound, compound-2023 and rough walls; passive scalars with turbulent diffusivity and thermal wall functions (also for high Prandtl numbers); periodic boundaries; rotating machinery with the moving reference frame, sliding meshes (conformal stepping and imprinted interfaces of any shape of revolution, several rotors), torque, shaft power and machine performance; the coupled pressure–velocity algorithm with pseudo-time steps and multigrid for momentum and turbulence; SU2, OpenFOAM, CGNS, industry .msh and VTK mesh readers; derived turbulence fields, transient statistics, the grid convergence study of the models; the new log, case format 0.6 and [[schedule]]. TMR flat plate C_f +0.37 % (SST) and within −2.6 to +2.4 % for first-cell y⁺ 0.24 to 85; channel at Re_τ 395 U_b⁺ −0.7 % (SST) and EB C_f 97.8–99.1 % of DNS; backward-facing step x_r/H +0.5 % (k-ε against the published k-ε) and +0.6 % (k-ε-ζ-f₀ against the experiment); impinging jet Nu₀ −0.2 % (SST); heated channel Nu within −2.6 to +1.0 % of DNS; GPU bitwise equal to the CPU for 14 turbulence cases on a Tesla T4; the coupled algorithm settles the step in about 70 instead of 600 iterations. Gallery 26–134, recipes 36–134 |
0.6 (2026-11-20) – stage 6: RANS turbulence, heat transfer and rotating machinery
Highlights.
- RANS turbulence, six models. k-ω SST 2003 (Menter, Kuntz & Langtry)
with production limiters, sustaining terms and rough walls; standard and
realizable k-ε; k-ε-ζ-f (Hanjalić, Popovac & Hadžiabdić 2004);
k-ε-ζ-f₀ (Popovac 2023); the elliptic-blending k-ε (Billard & Laurence
2012). One kernel source for the CPU and the GPU, the exact or the
Poisson wall distance, inlet turbulence from intensity and length scale
or viscosity ratio. - Wall treatments.
low-re, the SSTautomatictreatment that holds
C_f within −2.6 to +2.4 % for first-cell y⁺ from 0.24 to 85,
scalable,standard,compoundandcompound-2023wall functions,
rough walls (Aupoix for SST, Cebeci & Bradshaw for the k-ε family). - SST options. The curvature and rotation correction (Smirnov & Menter
2009), a whole domain in a turning frame (flow.frame_rotation), and the
quadratic constitutive relation QCR2000/QCR2013 for the secondary flow of
non-circular ducts. - Heat and mass transfer in turbulent flow. Passive scalars with
ν_t/Pr_t diffusion, the Kader and Jayatilleke thermal wall laws, the
Kays–Crawford turbulent Prandtl number and a high-Prandtl variant with
variable properties (P-function); periodic boundaries with a heat-flux
jump for developed heated channels and pipes. - Rotating machinery. The moving reference frame (steady and
transient), the sliding mesh by conformal stepping and by imprinting the
interface at every step, several rotors at their own speeds, interfaces
of any shape of revolution (cylinders, discs, cones), every turbulence
model on all of them, speeds asomegaorrpm; torque, shaft power,
the angular-momentum balance and machine performance (head,
efficiencies, Euler work); relative and blade velocities as derived
fields. - Faster steady runs. The coupled pressure–velocity algorithm
(matrix-free, flexible GMRES with a SIMPLE-type preconditioner) with
pseudo-time steps and a reduction multigrid for momentum and the
turbulence equations: the backward-facing step settles in about 70
outer iterations instead of about 600 with SIMPLEC. - Meshes from other tools. SU2, OpenFOAM polyMesh, CGNS (HDF5), the
face-based industry.mshand VTK (.vtk,.vtu) readers behind one
mesh-format interface, besides Gmsh, and meshes written as.vtu; removed boxes in
the built-in mesher (a backward-facing step) and annuli for rotors. - Results and verification. Derived turbulence fields (time and length
scales, Reynolds stresses, wall fields with the viscous weight), time
means, RMS and covariances of transient runs, the grid convergence study
of all models on the plate and the channel, the CPU–GPU parity run of the
turbulence models (14 cases bitwise equal on a Tesla T4), and the
published sources of all reference data
(docs/verification/DATA_SOURCES.md). - Run experience. The rewritten log with framed blocks and a
configurable table, case format 0.6 withfoehn case upgrade, solver
settings per equation, settings that change during a run
([[schedule]]), automatic remediation of skewed tetrahedra (D50). - Requirements for what comes next. Stage 7 (energy, buoyancy,
conjugate heat transfer, thin walls and the heat of the wall film),
data-driven models (D165–D169), LES and high-Prandtl flows, the
elliptic-blending Reynolds-stress model (L47) and an applications track.
Validation in numbers. TMR flat plate C_f(0.97) +0.37 % from the TMR
value with SST (GCI 1.87 %), −2.6 to −0.3 % from White with scalable k-ε
for first-cell y⁺ 1 to 100, +0.5 % with EB; channel at Re_τ 395 U_b⁺
−0.7 % from the DNS with SST, EB C_f 97.8 / 99.0 / 99.1 % of the DNS at
Re_τ 180 / 395 / 590; backward-facing step x_r/H 5.372 with k-ε (+0.5 %
from the published k-ε, GCI 1.94 %), 6.296 with k-ε-ζ-f₀ (+0.6 % from the
experiment), 6.747 with SST (+7.8 %); impinging jet Nu₀ −0.2 % (SST) and
+7.2 % (k-ε-ζ-f₀) from the experiment; heated channel Nu within −2.6 to
+1.0 % of the DNS at Pr 0.71 for Re_τ 180 to 1020; heated pipe Nu 182.6
against Gnielinski's 180.2; Taylor–Couette flow in a moving frame at
observed order 2.3–2.4.
Known limits.
- k-ε-ζ-f₀ near the wall. Below first-cell y⁺ 1 the channel is not
grid-convergent: U_b⁺ drifts up with refinement (17.79, 17.84, 18.11,
18.39 on levels 0 to 3 against the DNS 17.55), because the k sink of the
model is linear in k at the wall. A consistent sink is being worked out
and will come in a later release; meshes with first-cell y⁺ of about 1
give the values above. - k-ε-ζ-f does not converge on the finest channel mesh of the GCI study
in 40 000 iterations, and its plate boundary layer stays laminar from the
TMR free stream. - ζ-f and EB on the step and the jet. The reattachment length of ζ-f
(7.74) and EB (7.56) is outside its band on the middle mesh (their
finest mesh is still to run); Nu₀ of the jet is +22.9 % (ζ-f) and +76 %
(EB). - SST plate order. The observed order of C_f on the TMR plate is 0.43,
below the band of the specification (the GCI is 1.87 %). - Realizable k-ε gives 3 to 7 % low friction; the compound treatment
overpredicts the wall shear below y⁺ 30. - Open checks that need the maintainer or data: the GPU run of the two
SST options (curvature correction, QCR) on the Colab T4; the GCI levels 1
to 3 of the corrected study on the maintainer's machine; two DNS values
(the rotating channel of Kristoffersen & Andersson 1993, the square duct
of Pinelli et al. 2010); the NASA wall-mounted hump data (host not
reachable from the build machine); manufactured solutions per
turbulence model.
The parts in detail, in the order of their pull requests (the first
entries, before the fragments of changelog.d/, are at the end):
- Pull requests no longer conflict on bookkeeping. Changelog entries
are fragments inchangelog.d/that the release collects
(tools/release/changelog.py); new gallery and recipe entries take the
number of their pull request; the number tables ofdocs/gallery.mdand
docs/recipes.mdare regenerated after each merge by the workflow
docs-index.yml(tools/docs/indexes.py); topic pages merge with git's
union driver. CI checks the lock file of the Python crate first. Rules in
CONTRIBUTING.md, "Working in parallel". - Stage 6 specified (RANS turbulence and wall treatments).
docs/requirements/stage6-turbulence.mdwith decisions D129–D139:
k-ω SST 2003 with Kato–Launder and Durbin production options, standard
and realizable k-ε, k-ε-ζ-f, all-y⁺ momentum wall treatments, the
thermal law of the wall (Kader, Jayatilleke) with constant or
Kays–Crawford turbulent Prandtl number, turbulence numerics, checks,
case keys, and a verification suite with GCI pass bands (flat plate,
channel at Re_τ 180/395/590, backward-facing step, impinging jet). The
elliptic-blending k-ε is open (O17). - Stage 7 specified: energy equation, buoyancy, conjugate heat transfer.
Decisions D150–D164 with the full text in
docs/requirements/stage7-energy-buoyancy-cht.md: enthalpy conserved and
the temperature correction solved, low-Mach variable density, SGDH and
GGDH, Boussinesq and variable-density buoyancy with a balanced-force
interpolation, fluid–solid interfaces in one temperature matrix, 25
verification and validation cases with pass bands. The maintainer
confirmed the new stage order (O18): energy as stage 7, v1.0 after
stage 8. - Data-driven models assessed (step 20, open step O19).
docs/requirements/step20-data-driven-models.mdreviews the literature of
2025–2026 on learned RANS closure corrections, learned linear-solver
components, neural surrogates and flow foundation models, judges them for
industrial accuracy and proposes, not yet decided, D165–D169 (acceptance
rules for learned components, invariant features in expressions, ensemble
inversion, data and model licences, learned components that change only the
path), L37–L38 and P13–P15. Learned models stay outside the solver and come
in only as fields or compiled expressions. - Passive scalars (stage 6 part 6a).
[scalars.<name>]adds a scalar
carried by the flow (D51), solved with the generic scalar transport
equation of stage 6 (D...
Foehncraft v0.5
| Version | Stage | Highlights |
|---|---|---|
| 0.5 (2026-11-16) | 5 Transient flow, run control, Python | Transient incompressible flow: PISO with variable-step BDF2 and Crank–Nicolson, outer correctors for large time steps, a time step from the integration error, output at exact times, restart files and control files; the whole flow loop on NVIDIA GPUs; adjoint-ready kernels (dual numbers, transposed matrices, checkpointing); the run contract for scripts and agents (--json, --set, result.json, run record, exit codes and signals, case schema, diagnostic codes, estimate, limits, provenance); the conservation ledger and the divergence report; the bounded central scheme and the boundary conditions of D29 (slip, wedge, tables, backflow, convective outlet); derived fields; expressions, the material database and regions; the Python package foehncraft with studies; the grid convergence index of every sweep and a generated verification manual; all scripts in Python. Taylor–Green time order 2.0–2.4 and space order 2.1; Schäfer & Turek 2D-1 inside all reference ranges, C_D extrapolated to 5.5797 ± 0.0004 from three meshes; GPU flow loop bitwise equal to the CPU on a Tesla T4 (722 ns per cell and iteration on 970 225 polyhedra); a case built in Python is bitwise its TOML file. Commands foehn materials, foehn post derive, foehn schema; gallery 14–25, recipes 21–35 |
0.5 (2026-11-16) – stage 5: transient laminar flow, run control and Python
Highlights.
- Transient flow. PISO with variable-step BDF2 and Crank–Nicolson,
outer correctors (Courant number 9 at time order 2), an adaptive time
step from the integration error with exact step rejection, output at
exact simulated times, potential-flow start, restart files that
continue a run bit for bit, control files and re-reading the case file
during a run, probes and force histories. Verified on the Taylor–Green
vortex (time order 2.0–2.4, space order 2.1) and the cylinder benchmark
of Schäfer & Turek (Re 20 and Re 100). - GPU. The whole flow loop runs on NVIDIA GPUs from the same kernel
source as the CPU, bitwise equal to the CPU on a Tesla T4. - Adjoint-ready kernels. Dual-number derivatives of every kernel,
transposed matrices as gathers, binomial checkpointing (D59). - Run contract and health.
--json,--set,result.json, the run
record, exit codes and signals, the case schema, diagnostic codes, the
estimate before a run, limits, provenance; the mass and kinetic-energy
ledger and a divergence report with ranked causes and fixes. - Numerics and boundary conditions. The bounded central scheme, slip
walls, wedges, inlet profiles from tables, backflow treatment and
convective outlets; derived fields (vorticity, Q, λ₂, wall shear stress,
y⁺) with the output and from restart files. - Expressions and materials. Boundary values, body forces and the
viscosity as expressions of x, y, z and t; a material database with
sources; regions. - Python. The package
foehncraft: cases, expression objects, runs in
process with callbacks, results, materials and parametric studies; all
scripts of the repository are Python now. - Verification. The grid convergence index of every sweep of three or
more meshes or time steps, and the generated verification manual.
The parts in detail, newest first:
Scripts in Python (stage 5 part 6d, D61 (2)). The shell scripts are
ported to Python and tools/ is split into groups that run as modules
from the repository root: tools/check/ (ci_cases, compare_runs,
backend, c_free, kernels, vtkhdf), tools/bench/ (build_hypre
and the cloud GPU drivers with their shared steps in cloud),
tools/mesh/, tools/plot/ (the charts), tools/release/
(verification_manual) and tools/notebooks/ (the Colab notebooks).
tools/ci_cases.sh SET is now python3 -m tools.check.ci_cases SET,
gpu/ptx-kernels/build.sh is python3 gpu/ptx-kernels/build.py; CI,
docs, examples and error messages are updated, and CI lints the scripts
(ruff, syntax and names). See tools/README.md.
Discretisation uncertainty and the verification manual (stage 5 part
6c, D67, D68). A sweep of three or more meshes or time steps reports
for every monitored quantity (patch mass flows, mean pressures and forces,
force coefficients, benchmark values, viscous and numerical dissipation)
the observed order by the fixed-point iteration of Celik et al. (2008),
the extrapolated value, the band φ1 ± U, the grid convergence index and a
verdict (monotonic, oscillatory, divergent, unchanged): a table in
flow.md and uncertainty in flow.json and result.json (an
addition; Result.uncertainty in Python). Level sweeps no longer need an
exact solution or a benchmark; expected_order without [analytic] is
now refused (CASE005) instead of being ignored. New case
cylinder_re20_gci.toml (the benchmark 2D-1 on 6 144 to 98 304 cells,
long set): C_D extrapolates to 5.5797 ± 0.0004 inside the reference
range. New script tools/release/verification_manual.py writes
docs/verification/manual.md, results.json and a chart of the observed
orders from the case files and a catalogue run. Gallery 25, recipes 34
and 35 on new Verification pages; tools/gci_chart.py. Runs are bitwise
unchanged.
The Python package (stage 5 part 6b, D61, D62). python/ holds the
package foehncraft with a native module (crates/foehncraft-py, PyO3,
built with maturin, abi3 for Python 3.10+): Case (read, change with
dotted keys, write; the TOML round trip holds for every example case;
relative paths kept when saved elsewhere), expression objects with Python
operators that render the strings of the case file (foehncraft.expr,
evaluated with the solver's own compiler), run in process or through
foehn with callbacks on every iteration or time step that can stop the
run, Result (summary, CSV tables, VTKHDF fields), the material database
and material builders, and foehncraft.study (grid, list, Latin
hypercube, Sobol; one case file per variant, study.csv, resume). The
engine gains engine::Observer (sees every row of the run record) and
RunOptions::observer; runs are bitwise unchanged. New CI job "Python
package" (ruff, pytest). New scripts examples/python/poiseuille_inflow.py
and examples/studies/couette_viscosity_study.py; gallery 24, recipe 33
on the new Python pages, case catalogue page "Python scripts".
Expressions, materials and regions (stage 5 part 6a, D53, D102, D112,
D121, D124 W3/W4). Boundary values (velocity, normal velocity, pressure,
total pressure, mass flow), the body force and the viscosity may be
strings of a small expression language in x, y, z and t, with
[constants] and piecewise linear [tables] (inline or from a file); the
strings are checked when the case is read (EXPR001–EXPR005, with the
place and a "did you mean") and compiled to a stack-machine program that
the solver evaluates with new in-house elementary functions
(foehncraft_core::math, D93 (6)), the same on every platform. Fluid
properties from a built-in material database (air, water, engine oil,
ethylene glycol, glycerol, each with its source) with [fluid] material,
temperature and operating_pressure; [materials.<name>] with base
and the forms constant, polynomial, Sutherland, power law, table (linear
or monotone cubic) and expression; the new command foehn materials
lists and evaluates them (also --json). [regions.<name>] assigns cell
zones to materials; non-fluid regions and unknown zones are refused
(REG001, REG002); different viscosities per region give a viscosity per
face. Walls take a mass_flux (blowing and suction), checked for closed
volumes (BC026), and expose per-face exchange coefficients
(derived::wall_exchange). The resolved property program is written into
case.resolved.toml; properties_hash and materials_database join the
provenance. The random-number key gains a stream word (rng::keyed;
meshes unchanged). foehn flow --check also checks the regions against
the mesh. New exact solutions couette-viscosity and
couette-transpiration; new cases flow/couette_viscosity.toml,
couette_transpiration.toml, poiseuille_water.toml,
poiseuille_expression.toml, taylor_green_expression.toml and
channel_ramp.toml; gallery 23, recipes 31 and 32 on the new
"Expressions and materials" pages; tools/property_chart.py. Cases
without the new keys run bitwise as before.
Derived fields of stage 5 (part 5c, D72). [output] derived adds
fields computed from the solution to every fields*.vtkhdf: vorticity
(components and magnitude), q-criterion, lambda2, enstrophy,
strain-rate, pressure-coefficient (reference state in
[output.reference]: velocity, pressure, density), total-pressure, and
on the patch blocks of the file wall-shear-stress and y-plus. The new
command foehn post derive CASE writes the same file afterwards from a
restart file (--restart, default latest; --fields, --file), equal
byte for byte to the file of the run. The VTKHDF writer gains boundary
face fields on the patch blocks; the units attribute lists the derived
datasets; the estimate counts them; output.derived and
output.reference may change during a run. tools/render_mesh.py gains
--diverging. New case flow/couette_derived.toml (exact on any mesh);
gallery 22, recipe 30 on the new Post-processing pages. Without derived
every output is as before.
Boundary conditions of stage 5 (part 5b, D29). New condition types
slip-wall, wedge and convective-outlet (∂u/∂t + U_c ∂u/∂n = 0 in
transient runs, the outlet flow balanced with the inflow, U_c by default
the mean outflow speed); inlet profiles from a table (profile = "table",
table, table_coordinate x, y, z or the radius about an axis, the
table's sha256 in the case hash); backflow treatment at static and total
pressure outlets (backflow = "total-pressure", the new d...