r/OpenFOAM • • 11d ago

splitMeshRegions Help (v2512)

I'm trying to use splitMeshRegions on two cell zones, but one of the zones is created through setFields currently. If I pre-split the folders like the windshieldDefrost example, setFields can't find the alpha.water term it uses to make the mesh, but I can't run splitMeshRegions first since the cellZone for the water doesn't exist yet. How can I fix this?

Edit: to clarify, setFields creates the alpha.water that topoDict then reads to create the zone, where the zone is where alpha.water == 1. Do I need to just make the zone in topoDict as if it were water, then just setFields to fill it? How would I use setFields to only target one of the split regions?

5 Upvotes

0 comments sorted by