View Issue Details

IDProjectCategoryView StatusLast Update
0004205OpenFOAMBugpublic2025-01-23 17:31
Reporterelaurila Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Versiondev 
Summary0004205: Inconsistent path with mergeMeshes when addRegions flag is used
DescriptionWhen addRegions flag is used with mergeMeshes, it seems that the utility tries to find regions' polyMesh from an incorrect location.

The utility tries to read the mesh from constant/meshes/regionName/polyMesh, whereas one would expect it to read constant/regionName/polyMesh, where the mesh is stored when multiple mesh instances are not used.

The behaviour is different when mergeMeshes is run with addCaseRegions flag and the case directory is the current case. Everything works and the utility reads the mesh from constant/regionName/polyMesh as expected.
Steps To ReproduceTo reproduce the error with addRegions flag:
1. Copy multiRegion/CHT/coolingCylinder2d tutorial
2. Comment out run command from Allrun (runApplication $(getApplication))
3. Execute Allrun to create region meshes
4. Execute: mergeMeshes -region fluid -addRegions '(solid)' -overwrite

AddCaseRegions flag seems to work with the same folder structure:
1. Do steps 1-3 from above
2. Execute: mergeMeshes -region fluid -addCaseRegions '(("./" solid))' -overwrite
TagsNo tags attached.

Activities

elaurila

2025-01-23 12:06

reporter  

image.png (2,009 bytes)   
image.png (2,009 bytes)   
image-2.png (16,703 bytes)   
image-2.png (16,703 bytes)   
image-3.png (14,206 bytes)   
image-3.png (14,206 bytes)   

henry

2025-01-23 17:31

manager   ~0013511

Resolved by commit 89ad1c2b20fd7e573afa484d8b61a9ea80b45c12

Issue History

Date Modified Username Field Change
2025-01-23 12:06 elaurila New Issue
2025-01-23 12:06 elaurila File Added: image.png
2025-01-23 12:06 elaurila File Added: image-2.png
2025-01-23 12:06 elaurila File Added: image-3.png
2025-01-23 17:31 henry Assigned To => henry
2025-01-23 17:31 henry Status new => resolved
2025-01-23 17:31 henry Resolution open => fixed
2025-01-23 17:31 henry Fixed in Version => dev
2025-01-23 17:31 henry Note Added: 0013511