Skip to content

BUG: extrudeToRegion mesh decides that offset is uniform

Summary

extrudeToRegionMesh can add coupling patches ('mappedWall') to the original mesh as well as the extruded. On the original mesh it will always calculate the offset as if it is uniform.

Steps to reproduce

Any case with extrudeToRegionMesh and extruding baffles. Print out the boundBox calculated in extrudeToRegionMesh::setCouplingInfo.

Example case

What is the current bug behaviour?

Marks added patches with uniform offset even when they are not.

What is the expected correct behavior?

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2406

Possible fixes

extrudeToRegionMesh.C, routine setCouplingInfo uses bounding box of local patch to decide if it is uniform or not. Since the faces on the original patch have not be repatched yet the bounding box is illegal and the logic decides the offset is uniform.