CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Simple cylindrical geometry: example using blockMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 6 Post By guin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2017, 05:59
Default Simple cylindrical geometry: example using blockMesh
  #1
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
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.
Attached Files
File Type: gz blockMeshDict.tar.gz (1.9 KB, 272 views)
mstf_aa, tzaht, Fabiio87 and 3 others like this.

Last edited by guin; June 19, 2017 at 14:02. Reason: typo in the copy commands
guin is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] 2D equilaterals triangles in simple geometry Ulixes ANSYS Meshing & Geometry 0 June 16, 2017 19:01
[snappyHexMesh] unsymmetric boundary layer extrusion on simple symmetric geometry Attesz OpenFOAM Meshing & Mesh Conversion 1 April 25, 2017 07:13
FloTHERM: How to convert the cylindrical geometry to Cylinder SmartPart? olsmir FloEFD, FloWorks & FloTHERM 4 November 25, 2016 09:08
simple geometry and potentialFoam? Tobi OpenFOAM 0 June 21, 2012 16:39
Floating point error in BlockMesh for really simple mesh CoenW OpenFOAM Bugs 3 July 22, 2009 06:33


All times are GMT -4. The time now is 11:32.