CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: snappyHexMesh and Others (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/)
-   -   SnappyHexMesh cell removal (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/110491-snappyhexmesh-cell-removal.html)

ali.ghaemi December 12, 2012 09:19

SnappyHexMesh cell removal
 
Hi

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

Hi,

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.

Regards,
Stephane.


All times are GMT -4. The time now is 10:31.