Repository navigation
Releases
v2.3.0
PolyFoamMesh 2.3.0
Boundary layers are now built reliably on real production geometry, the
GMSH stalls that could hang a run for 40 minutes are detected and retried
automatically, and the whole poly pipeline is 24-43 % faster with
byte-identical output. Linux is a supported platform with its own install
guide. Full details in CHANGELOG.md.
Highlights
| Area | What changed |
|---|---|
| Boundary layers on complex geometry | The venturi that could not be meshed at all now builds a full 6-layer boundary layer on 100 % of the healthy wall; a refined tube gets its full stack (456k prisms, checkMesh Failed 1 only on aspect) |
| No more silent hangs | GMSH stalls are caught by a size-scaled watchdog (300 → 900 s, reports process CPU%) plus a non-convergence detector: a run that sat 40 minutes now retries robustly within ~40 s |
| Adaptive sizing is bounded | A geometry where the adaptive mesher never converges falls back (robust retry, then manual-equivalent sizing) instead of looping forever |
| Faster pipeline | Dual converter -24…-43 % · boundary-layer precompute -45…-50 % · consume reflow ~2× — every change verified byte-identical on the regression set |
| Direct OpenFOAM export | Export Mesh → OpenFOAM Case Folder… produces a clean, runnable case with none of BaramFlow's validation rules |
| Linux support | Native execution (no WSL hop), complete install guide, fast suite green on real Linux — 1,516 tests |
| Reproducible evidence | The test suite no longer rewrites the benchmark corpus; zero-diff baselines hold |
Added
| Feature | Detail |
|---|---|
| Linux installation guide | docs/INSTALL_LINUX.md — per-distro system libraries, Python setup, OpenFOAM + POLYFOAMMESH_OF_BASHRC, GUI/headless runs, verification, troubleshooting, honest verified-vs-not box |
| Direct OpenFOAM export | Copies mesh + system/ + fields to a chosen folder, ready for foamRun / simpleFoam, without BaramFlow's completeness requirements |
| Documentation + notes indexes | docs/README.md and notes/README.md map the whole docs tree and the internal reasoning notes in one place |
| Performance instrumentation | Per-run [perf] stage times: for every stage; POLYFOAMMESH_PROFILE=1 dumps cProfile hot lists for the dual and BL engines |
| README screenshots | Dark-theme captures of the live app: mesher selector, boundary-layer panel, rendered polyhedral mesh |
Fixed
| Fix | What was wrong → what happens now |
|---|---|
| Boundary layer skipped on every run | A false-positive guard counted coincidentally prism-shaped dual cells and believed the BL already existed → the guard now requires real wall-face coverage; verified 5 layers, 100 % coverage, checkMesh Mesh OK |
| Production venturi could not be meshed | The dual complex was not watertight at the throat (orientation decided by round-off noise) → the converter detects open cells and self-heals once (8 vertices merged); mesh is watertight, with BL |
| Boundary layer aborted on refined geometry | One 13 µm micro-sliver vertex killed the whole BL → such vertices are excluded like other sliver classes; the refined tube builds its full stack |
| GMSH hang on large curved geometry | MeshAdapt looping with no output → robust retry (Delaunay pinned per-surface + Delaunay 3D for STEP/OCC) + size-scaled watchdog with CPU%; the Parte4-class part now completes |
| Adaptive-sizing runaway | 40 min loop with growing invalid-element counts → non-convergence detected from GMSH's own retry signature, retried robustly in ~40 s, manual-equivalent fallback as last resort |
| BaramFlow export | Refused cases for the wrong reason → patch renames now update every 0/ field's boundaryField; the export ships a clean case (no stale processor*, no regenerable artifacts) |
| cfMesh RAM safeguard | Silently a no-op on .fms surfaces → falls back to the sibling .stl for the bounding box |
| Empty console windows from the exe | Every child process (wsl, python, gmsh, checkMesh) popped a terminal → central CREATE_NO_WINDOW patch + QProcess modifier |
| Corpus mutated by the test suite | The generator test overwrote tracked geometry files on every run → regeneration now goes to a temp directory |
| App icon + taskbar | The exe carried PyInstaller's default icon → app logo embedded in exe and installer, explicit AppUserModelID for taskbar grouping |
| GUI papercuts | Single Cancel button (was two), readable popups (wrapped to 480 px), patch deselection works (fresh picker + toggle), layers visible through the mesh (no overlay/colorbar), Polymesh listed first |
Changed
| Change | Detail |
|---|---|
| Mesher order | Polymesh first, cfMesh second; cfMesh no longer pre-ticks Convert to polyhedral mesh (poly dual is opt-in there) |
| Robust boundary layer automatic | The checkbox is gone — the measured bundle (sliver filter + budget termination) activates with Enable Boundary Layers |
| English-only documentation | CHANGELOG, README, install guides, user guide, contributor docs and all internal notes in English; Italian duplicates removed |
Removed
| Removed | Why |
|---|---|
| FEM Tetra mesher button | The tetrahedral fallback stays internal (no button) |
| Full Auto button | Redundant with the guided workflow |
| Show BL checkbox | Layers are visible through the mesh itself (dense edge band at the wall) |
| Italian UI and docs of 2.x | English-only release |
Known limitations
| Limitation | Status |
|---|---|
| Sharp-concave-throat quality class on polyhedral duals (checkMesh Failed 3 on the production venturi) | Pre-existing, measured and documented; dual-boundary rewrite is the first item of the next cycle |
| Boundary layers skipped on multi-million cell meshes | Deliberate 8M-face RAM guard (anti-crash decision) |
| Linux on desktop GPU / non-Ubuntu distros | Install guide ships with an explicit verified-vs-not box; AppImage deferred |
PolyFoamMesh 2.1.0
PolyFoamMesh 2.1.0
First Public Release: Polyhedral mesh generator for OpenFOAM, featuring a custom-built tet-to-poly converter (barycentric dual) and boundary layer engine, built on top of GMSH and cfMesh.
Installation
Download PolyFoamMesh-2.1.0-Setup.exe below, double-click, and install (no Python required). If Windows SmartScreen displays a warning: click "More info" -> "Run anyway" — the .exe is not signed with a paid certificate, which is a common false positive for independent developer software.
Complete guide: docs/INSTALL.md
What Works Out of the Box (Without WSL)
Path Result
CFD Poly (GMSH, no-WSL) Tet GMSH -> dual -> 100% polyhedral mesh
FEM Tetra (GMSH, no-WSL) Tetrahedral mesh for FEM solvers
Visualization 3D viewer for geometry and mesh
Prerequisites for WSL2 + OpenFOAM
The Cartesian cfMesh workflow and checkMesh validation require WSL2 + OpenFOAM v2512, which are not included in the installer. Setup script: installer/setup_wsl_openfoam.ps1.
System Requirements
Windows 10/11 64-bit, ~2 GB free RAM, ~2.5 GB available disk space.
Known Limitations
Self-intersecting STLs or files with unstitched holes may cause GMSH to fail. Concave geometries with pre-existing defects may prevent watertight closure of the polyhedral dual. Full and honest breakdown: docs/residual_risks.md.
Development
Developed using a human-in-the-loop workflow: the architecture and physical design decisions are entirely by the author, with AI accelerating code generation under direct oversight. Details: AI_COLLABORATION.md.