u/Rough_Session9038

Segmentation Fault (Signal 11) in chtMultiRegionSprayFoam (v2312) at patchFaceMixture during Parallel Run

Hi everyone,

I am struggling with a persistent Segmentation Fault (signal 11) while running a custom solver (based on chtMultiRegionFoam + sprayFoam) in parallel on OpenFOAM v2312. The simulation involves a fluid region and three solid regions (bDisc, pad1, pad2).

The solver crashes immediately at the first time step when it starts solving the solid region bDisc. I have already tried disabling the spray cloud, but the error persists, which leads me to believe the issue is related to the coupled heat transfer at the interfaces.

The stack trace points to a crash in patchFaceMixture and turbulentTemperatureRadCoupledMixedFvPatchScalarField::deltaH():

#3  Foam::multiComponentMixture<...>::patchFaceMixture(int, int) const
#4  Foam::heThermo<...>::he(...) const
#5  Foam::compressible::turbulentTemperatureRadCoupledMixedFvPatchScalarField::deltaH() const

What I've configured:

  • Version: OpenFOAM v2312.
  • Decomposition: scotch method with 3 processors.
  • Regions: 1 Fluid, 3 Solids.
  • Boundary Conditions: Using turbulentTemperatureRadCoupledMixed for the thermal coupling.

Questions:

  1. Has anyone encountered Segfaults specifically in patchFaceMixture during parallel CHT runs?
  2. Could this be related to how scotch decomposes the coupled patches across processors?

p/s: I have provided the log.decomposePar and log.run files in the comments below.

reddit.com
u/Rough_Session9038 — 8 days ago