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/)
-   -   [blockMesh] Simple cylindrical geometry: example using blockMesh (https://www.cfd-online.com/Forums/openfoam-meshing/189394-simple-cylindrical-geometry-example-using-blockmesh.html)

guin June 19, 2017 05:59

Simple cylindrical geometry: example using blockMesh
 
1 Attachment(s)
Hi,

Here you have an example of blockMeshDict file that uses macro substitution to generate a simple cylindrical geometry based on a few user input values.

Well, actually it only generates 1/4th of the cylinder, which allows to keep the file reasonably small. You can make use of mirrorMesh to generate the complete cylinder, e.g.:

Code:

blockMesh
cp system/mirrorMeshDict_xAxis system/mirrorMeshDict
mirrorMesh -overwrite
cp system/mirrorMeshDict_yAxis system/mirrorMeshDict
mirrorMesh -overwrite

Hope someone finds it useful.


All times are GMT -4. The time now is 18:14.