CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: snappyHexMesh and Others (
-   -   SnappyHexMesh cell removal (

ali.ghaemi December 12, 2012 09:19

SnappyHexMesh cell removal

I have a triangulated surface in STL format. SnappyHexMesh generates a mesh outside the surface and removes the cells that are located inside like Fig.5-12 in OpenFoam user guide. However since I need to do the simulation inside I want to retain the cells there and remove the ones outside the surface. I wonder if someone knows how to do that.

Thanks in advance

openfoam_user December 12, 2012 10:22


edit your system/snappyHexMeshDict file and modify the following line:

locationInMesh (-1.0 0.0 3.5 );

The location must be where you want to keep the cells.


All times are GMT -4. The time now is 23:35.