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

[blockMesh] Creating a Cylinder

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2011, 18:50
Default Creating a Cylinder
  #1
Member
 
m.maneshi's Avatar
 
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 16
m.maneshi is on a distinguished road
Would anyone please let me know how to create a cylinder using blockMesh?

I tried :
Code:
vertices
(
    (-1 0 0)
    (0 -1 0)
    (1 0 0)
    (0 1 0)
    (-1 0 3)
    (0 -1 3)
    (1 0 3)
    (0 1 3)
    
);


edges
(
     arc 0 1 (-0.707106781 -0.707106781 0)
    arc 1 2 (0.707106781 -0.707106781 0)
    arc 2 3 (0.707106781 0.707106781 0)
    arc 3 1 (-0.707106781 0.707106781 0)
    arc 4 5 (0.707106781 -0.707106781 3)
    arc 5 6 (0.707106781 -0.707106781 3)
    arc 6 7 (0.707106781 0.707106781 3)
    arc 7 4 (0.707106781 0.707106781 3)

);

blocks
(
    hex (0 1 2 3 4 5 6 7) Fluid (1 1 20) simpleGrading (1 1 1)
but I had no luck and the blockMesh generated a cube for me.
m.maneshi is offline   Reply With Quote

Old   March 10, 2011, 04:31
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 21
MartinB will become famous soon enough
Hi,

you must increase the number of elements here:
Fluid (1 1 20) --> Fluid (10 10 20)

Otherwise you will only have one element, which results in a cube, of course...

Have a look at this thread, post #6:
http://www.cfd-online.com/Forums/ope...arge-mesh.html

There you can see a sketch how to make a mesh with a much better quality.

Martin
MartinB is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
Flow past a cylinder at Re 1e05 using LES, drag force coefficient is to low Scabbard Main CFD Forum 21 June 19, 2018 13:58
Forces Acting on a Rotating Cylinder (Moving Mesh) dreamchaser CFX 5 April 25, 2015 06:01
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Creating cylinder in STAR-CD Sachin Siemens 2 March 6, 2008 02:53


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