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

[blockMesh] Convert Two-dimensional blockMeshDict to Three-dimensions by revolution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2018, 11:10
Default Convert Two-dimensional blockMeshDict to Three-dimensions by revolution
  #1
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 12
anuragm is on a distinguished road
Hi everyone,

I wrote a blockMeshDict file for a simple geometry (image attached) with 1 inlet (left) and 3 outlets (right, bottom). It took me quite some time to get the blocks and regions right and everything runs fine when I use this mesh. But now, I have to do the same simulation in a 3-D version of the same mesh.

Since this is actually a cylinder, I would have to re-write some of those blocks as O-grid blocks. This, in itself, is not such a big problem. The major problem is re-writing all of those vertices and blocks as 3D points. My question is this - since the vertices and blocking already exist in a 2D blockMeshDict, is it not possible to generate a 3D version of the same through a script using the 2D file as a template? I realize there is no easy way to do so, but any tips on how to achieve this using basic scripting on bash would be quite cool.
Attached Images
File Type: jpg horizontalSettler2D_Blocks.jpg (39.6 KB, 72 views)
anuragm is offline   Reply With Quote

Old   February 23, 2018, 12:20
Default
  #2
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Quote:
Originally Posted by anuragm View Post
Hi everyone,

I wrote a blockMeshDict file for a simple geometry (image attached) with 1 inlet (left) and 3 outlets (right, bottom). It took me quite some time to get the blocks and regions right and everything runs fine when I use this mesh. But now, I have to do the same simulation in a 3-D version of the same mesh.

Since this is actually a cylinder, I would have to re-write some of those blocks as O-grid blocks. This, in itself, is not such a big problem. The major problem is re-writing all of those vertices and blocks as 3D points. My question is this - since the vertices and blocking already exist in a 2D blockMeshDict, is it not possible to generate a 3D version of the same through a script using the 2D file as a template? I realize there is no easy way to do so, but any tips on how to achieve this using basic scripting on bash would be quite cool.
Hi, may i ask for some opinion here? Is it a must to create multiple blocks to make a 3D hollow solid moving within a mesh. I referred to some DyM tutorials and found all are using multiple blocks. Eg: movingCone

I would b very grateful for any suggestion. Thanks
jiahui_93 is offline   Reply With Quote

Reply

Tags
blockmeshdict, blockmeshdict block mesh, extrude mesh, o-grid generation, revolve mesh


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
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
[Commercial meshers] how can convert a blockMeshDict file into a mesh for Fluent? immortality OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 08:30
How to convert a hex mesh in blockMeshDict to a tet mesh henning OpenFOAM Running, Solving & CFD 1 October 14, 2008 08:02
[Commercial meshers] got the neu file and convert it to the Foam, but no blockMeshDict? aderliner OpenFOAM Meshing & Mesh Conversion 0 November 24, 2006 03:20


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