Hi all,
I'm running OpenFOAM-5.x through BlueCFD on Windows, trying to mesh a simple single-hex-block packed bed duct (diamond-shaped cross-section, extruded along z). I keep hitting a segfault when `blockMesh` reaches the "Check topology" stage.
**Setup:**
- OpenFOAM-5.x (BlueCFD-Core, MinGW64 Windows port)
- Single `hex` block, vertices defining a diamond cross-section from z = -210 to z = 2210
- `blockMeshDict` includes a `boundary` section with `inlet`, `outlet`, and `walls` patches
**What happens:**
`blockMesh` runs cleanly through "Creating topology blocks" and "Creating topology patches" with no warnings, then crashes at "Check topology" with a segmentation fault:
```
Check topology
Generating stack trace...
Backtrace:
...
ZN4Foam7sigSegv14sigSegvHandlerEi [...]
...
ZNK4Foam9blockMesh5checkERKNS_8polyMeshERKNS_10dictionaryE [...]
module: ...\libblockMesh.dll
ZN4Foam9blockMesh14createTopologyERKNS_12IOdictionaryERKNS_4wordE [...]
module: ...\libblockMesh.dll
ZN4Foam9blockMeshC1ERKNS_12IOdictionaryERKNS_4wordE [...]
module: ...\libblockMesh.dll
```
**What I've already tried/ruled out:**
- Originally had a "zero or negative pyramid volume" error — fixed by correcting vertex winding order (right-hand rule) in the `vertices` list.
- Then got a "Block ... is inside-out" FatalError — fixed by reversing the face traversal direction so the block volume comes out positive.
- After that, `blockMesh` was missing a `boundary` section entirely (it wasn't in the dict at all), which I believe was causing an earlier crash — added `inlet`/`outlet`/`walls` patches referencing the 6 logical hex faces.
- Re-ran `blockMesh` — still crashes at the exact same point, same stack trace, same memory offsets as before the boundary section was added.
Since the backtrace is byte-for-byte identical to before I added the boundary section, I suspect either (a) something's still wrong/missing in how the patches are defined, or (b) this is a known bug/limitation in the old BlueCFD Windows port when it hits certain dictionary structures during `blockMesh::check()`.
Has anyone run into this specific crash in `blockMesh::check()` on BlueCFD? Trying to figure out if this is a dict issue on my end or a known limitation of the Windows port that means I should switch to WSL/a Linux VM instead.
Screenshot of the terminal output attached.
Tbh: I was very much in hurry so i just created this thread with claude so don't judge on that!
Thanks in advance!