Repository navigation
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 survey: flamelet tables (FGM/FPV) next after SF3 EDC, with hydrogen and ammonia from the start and dense storage first; PaSR, local EDC constants and cell clustering as SF3 additions; reacting ECN Spray A with detailed chemistry per cell and UFPV side by side; stochastic fields and then CMC as reference models. Coding of each stage waits for the maintainer's go.
- Water and steam circuits behind the walls (steam furnace SF7c, D350).
[circuits]couples a boiler circuit of SF7b to the wall boundaries of a steady flow with the energy equation. Each face takes the water side of its tube segment as an implicit Robin condition (U from the inner heat transfer coefficient, the tube metal and fouling). The circuit is solved again every few outer iterations from the wall heats until both agree, and the ledger pairs the wall heat with the circuit's own account. Outputscircuit.csvandcircuit/(result, profiles, every mapped face). A slab on a water tube matches an independent march of the heat balance to 1.2·10⁻⁴ K. In a convective evaporator pass, two water walls share one drum loop (steam 0.142 kg/s, the hotter bank takes 125 kW and 11.2 kg/s). Codes CIR005, CIR006. Gallery and recipe 356.
Immersed walls: cut bodies
- Wall functions on cut bodies (L13 stage 2c). A turbulent case with wall functions now runs on cut bodies: every cut and merged wall cell takes the exact distance of its centroid to the body, the wall function takes its velocity from the cell one layer out along the wall normal (
[immersed.cut] wall_sample, default on), the cut wall faces carry the wall shear stress without a non-orthogonal correction, and LIM011 lists the y⁺ range of every body. New body shapeplane(a half-space withcentreandnormal). The wall distance of the turbulence models takes the exact distance to cut bodies too. A plate tilted by 2° against the mesh gets C_f within 7 % of White's correlation from s = 0.5 on (gallery 357). - Conjugate heat transfer through cut cells (L13 stage 2d). A cut body named as the zone of a solid region (
[regions.<name>] kind = "solid", zones = ["<body>"]) keeps the inside of every cut cell as a cell of the solid region; the cut faces between the two parts become the region interface with the series conductance of the energy equation. Concentric-cylinder conduction converges at second order (1.97 to 2.17) for conductivity ratios 9, 90 and 900, and the heat balance closes to round-off (gallery 359). A solid thinner than about two cells is refused with IMM205, which points to the thin wall of D189. - Conditions on cut bodies (L13 stage 2e).
patcheson an STL body turns the solids of an ASCII file, or the attribute tags of a binary file, into boundaries<body>-<patch>with any condition (inlets, outlets, walls).omegaturns the wall of a cut body about its axis and reports the torque in the boundary summary.invertkeeps the fluid inside a cylinder, sphere or box. Taylor–Couette flow with both cylinders cut out of a box mesh converges at second order in the velocity, with the torque within 0.23 % on 176 cells across; a cylinder blows through a slot in the Re 20 channel (gallery 360). - Near-body refinement with hanging-node faces (L13 stage 2f).
[immersed.refine]halves the hexahedra near the immersed bodies up tolevelstimes before the cut (layerscells per level, ordistancein metres), 2:1 balanced across faces, edges and corners, deterministic and serial; the faces between levels carry the hanging nodes, planar meshes are refined in their plane, other cell types are kept whole, and the IMM206 note gives the cells per level and the quality. Volume and boundary area are kept to round-off, also on perturbed meshes; a manufactured conduction solution stays second order across the hanging faces, and the Schäfer–Turek cylinder on a D/10 box mesh refined to D/40 near it reaches the lift of the uniform D/40 mesh with a seventh of its cells (gallery 361).
Energy and heat transfer
- Wall heat flux, heat transfer coefficient and Nusselt number as derived fields (stage 7, D72). Three new names for
[output] derivedandfoehn post derivewith the energy equation, on the boundary blocks:wall-heat-fluxwriteswall_heat_fluxq_w (W/m², the heat conducted from the wall into the fluid, the sign ofheat_fluxin[boundary.<name>.energy], with the thermal wall function of a turbulent flow) andwall_temperature;heat-transfer-coefficientwritesheat_transfer_coefficienth = q_w/(T_w − T_P) with the temperature of the wall cell as the reference (k/d_n on a laminar wall, the wall-function coefficient on a turbulent one);nusselt-numberwritesnusselt_number= h L/k(T_w) with the new key[output.reference] length.WallExchange::heatis now filled. Restart files keep the boundary coefficients of the scalars (scalar_wall_a_<name>,scalar_wall_b_<name>,scalar_wall_gamma_<name>, format version unchanged), so post derive writes the run's file byte for byte; an older restart file is refused with a hint to run one more iteration.foehn post derivewithout--fieldsand an empty[output] derivednow writes every field the case allows (before, a laminar case failed on the turbulence fields). New caseplate_heated_laminar.toml(laminar flat plate, Nu_x within 1 % of the similarity solution of Pohlhausen 1921,tools/verification/pohlhausen.py), plottools/plot/wall_heat.py; gallery and recipe 346.
Case files and run control
- Setting changes keep the inlet conditions. A re-read of the case file, a
[[schedule]]entry andrun.setof the control port now all keep the energy, scalar and species conditions of the boundaries through one shared step that the compiler checks for completeness; before, species inlet compositions (all three) and the energy and scalar conditions (run.set) were dropped and the inlet failed its validation. A changed species composition in a re-read file is reported as not applied.
Downloads and install
- Release downloads. The new workflow Executables builds
foehn(default features: HDF5, METIS, BLAKE3) for macOS (one universal build for Apple silicon and Intel, each half on its own runner), Linux x86-64 and Windows x86-64 and attaches them withSHA256SUMS.txtto the release; the Release workflow starts it after each release (D46), and it can be run by hand for an existing tag. A pull request that changes the workflow builds without uploading. The README's "Download a release" says which file to take and how to start the unsigned Mac program the first time. - Shared install on Linux.
tools/install-shared.shinstalls a release (or, with--build, a source build) once for all users under/opt/Foehncraft/<version>/, with a Python virtual environment per version (gmsh, numpy, matplotlib, h5py; or the distribution's packages with--python system, never pip into the system Python),env.sh/env.csh, a module file for Environment Modules and Lmod, and thecurrentdefault. Several versions stay side by side: users switch withfoehncraft-use 1.1.0ormodule load foehncraft/1.1.0, the administrator moves the default with--activate.--install-rustputs a system-wide Rust under/opt/Foehncraft/rustfor source builds,--nativetunes them to the CPU. The install guide has the new section "Shared install on Linux", with a complete source build for Debian 13, and three more first-build problems (PEP 668externally-managed-environment, Rust installed as root,GLIBC not found). - Linux release programs on older systems. The Linux release build now runs in the manylinux_2_28 container and checks the glibc floor: the programs run on glibc 2.28 or newer (RHEL, Rocky and Alma 8 and 9, Debian 11 to 13, Ubuntu 20.04 and newer) instead of 2.39.