CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] Problem with extrudeMesh sHM 2D airfoil mesh (https://www.cfd-online.com/Forums/openfoam-meshing/141135-problem-extrudemesh-shm-2d-airfoil-mesh.html)

ssss September 1, 2014 02:57

Problem with extrudeMesh sHM 2D airfoil mesh
 
Hi foamers,

I'm trying to make a 2D mesh of an airfoil. First I make a square blockMesh as explained in the openfoam guide. And then I run the following commands

Code:

foamClearPolyMesh
m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
blockMesh
transformPoints -translate "(0 0 -0.5)"
snappyHexMesh -overwrite
flattenMesh
extrudeMesh

All runs okay except that if I run snappyHexMesh, this is the output of extrudeMesh (the bounding box is incorrect). Even changing between back and front in the extrudeDict doesn make difference.

Code:

Mesh bounding box : (-10 -10 0) (10 10 1)

And if I don't run snappy before extrudeMesh I get the following output(the bounding box is correct).
Code:

Mesh bounding box : (-10 -10 -0.5) (10 10 0.5) //correct
Anyone knows what happens? Thank you


All times are GMT -4. The time now is 07:13.