Repository navigation
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 testthe_plane_walk_gives_the_chords_of_the_tetrahedron_walkon tetrahedral, hexahedral, polyhedral and mixed meshes. - Advanced radiation models: upgrade path for accuracy and speed (plan, no code). New page
docs/assessments/radiation-advanced-models-path.mdwith stages RA0 to RA11 after the grey Monte Carlo kernel of R1a: speed on real meshes first (the layered 2.1 M-cell furnace costs about 100 times more per bundle than the coarse mesh), coupling with cost control, WSGG with current coefficient sets, an own line-by-line reference from HITEMP, FSCK and SLW, scattering, soot and particles, non-grey and specular walls, variance reduction, P1 and FV-DOM as options, GPU wavefront scheduling with graphics benchmarks, and turbulence–radiation interaction; gains per stage, validation cases with open data and questions D366 to D372.
Downloads, install and documents
- Quick install with Kraxn in the README. The Install section starts with downloading and starting Kraxn, the installer of FoehnCraft, MurmelCraft and KoflCraft (one file per system that needs nothing else on the computer, with the macOS and Windows first-start steps for unsigned programs), and choosing what to install: the programs, FoehnCraft's Python with Gmsh, the examples, the AI assistants' MCP servers and, if you want, the build environment.
- Linux ARM programs and Kraxn in each release. Releases now carry a Linux aarch64 (64-bit ARM) build for glibc 2.28 or newer. Beside it they carry the
kraxn-*files from MurmelCraft's latest release: Kraxn installs FoehnCraft, MurmelCraft and KoflCraft from a window or in text mode. - Shared Linux install: ARM archives and a safer PATH switch.
tools/install-shared.shnow downloads the archive for the machine it runs on:linux-x86_64, orlinux-aarch64on 64-bit ARM. Theenv.shit writes takes the other versions off PATH by looping over PATH's parts, as Kraxn's does. Before, it used a glob, which zsh stopped at when no version had a venv, and it read a PATH folder with*,?or[in its name as a pattern. - Connect an AI assistant in the README. How to connect Claude Code,
ChatGPT (through Codex), Gemini CLI, Claude Desktop and other MCP hosts
tofoehn mcp, with the project folder, the roots and the action table;
the full guide stays in docs/agents.md.