CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Creating a Cylinder

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

Reply
 
LinkBack Thread Tools 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: 6
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: 252
Rep Power: 10
MartinB is on a distinguished road
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:
How to create large Mesh?

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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorrect Drag and Drag Coefficient for flow over a cylinder ozzythewise Main CFD Forum 8 June 13, 2012 06:24
SnappHexMesh Mesh creating a Mesh inside a Cylinder? abu OpenFOAM Mesh Utilities 0 February 15, 2011 04:39
Specifying boundary faces failes in blockMesh blaise OpenFOAM Meshing & Mesh Conversion 0 May 10, 2010 03:56
rotating cylinder using sliding mesh Tim Daly FLUENT 1 November 9, 2008 23:02
Creating cylinder in STAR-CD Sachin CD-adapco 2 March 6, 2008 02:53


All times are GMT -4. The time now is 06:20.