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

[Other] Cylindrical Pipe Mesh Generation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2014, 17:03
Default Cylindrical Pipe Mesh Generation
  #1
New Member
 
Join Date: Aug 2014
Posts: 7
Rep Power: 11
Shivam Sinha is on a distinguished road
Hi,

I am trying to simulate pulsating flow through a cylindrical pipe. But I am having problems in generating a mesh for the pipe. Can anyone please post a blockMeshDict file for a cylindrical pipe?
Shivam Sinha is offline   Reply With Quote

Old   November 6, 2014, 17:18
Default
  #2
otm
New Member
 
Join Date: Jun 2009
Posts: 22
Rep Power: 16
otm is on a distinguished road
Hi!

Here is a Python-script that generates a blockMeshDict for a cylindrical pipe:
http://www.cfd-online.com/Forums/ope...tml#post285979

Good luck!
/otm
otm is offline   Reply With Quote

Old   November 7, 2014, 02:50
Default
  #3
New Member
 
Join Date: Aug 2014
Posts: 7
Rep Power: 11
Shivam Sinha is on a distinguished road
Hi otm, Thanks for your help.

I had written a blockMechDict file on my own. When I ran blockMech, the following error was generated :

--> FOAM FATAL ERROR:
face 0 in patch 1 does not have neighbour cell face : 4(5 6 9 5)

Can you help me with this?

Here is my blockMeshDict code:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 0)
(0 0.01 0)
(0 0 -0.01)
(0 -0.01 0)
(0 0 0.01)
(4 0 0)
(4 0.01 0)
(4 0 -0.01)
(4 -0.01 0)
(4 0 0.01)
);

blocks
(
hex (5 9 6 5 0 4 1 0) (10 10 2000) simpleGrading (1 1 1)
hex (5 6 7 5 0 1 2 0) (10 10 2000) simpleGrading (1 1 1)
hex (5 7 8 5 0 2 3 0) (10 10 2000) simpleGrading (1 1 1)
hex (5 8 9 5 0 3 4 0) (10 10 2000) simpleGrading (1 1 1)

);

edges
(
arc 1 4 (0 0.0070710678 0.0070710678)
arc 4 3 (0 -0.0070710678 0.0070710678)
arc 3 2 (0 -0.0070710678 -0.0070710678)
arc 2 1 (0 0.0070710678 -0.0070710678)
arc 6 9 (4 0.0070710678 0.0070710678)
arc 9 8 (4 -0.0070710678 0.0070710678)
arc 8 7 (4 -0.0070710678 -0.0070710678)
arc 7 6 (4 0.0070710678 -0.0070710678)
);

boundary
(

inlet
{
type patch;
faces
(
(0 4 1 0)
(0 1 2 0)
(0 2 3 0)
(0 3 4 0)
);
}

outlet
{
type patch;
faces
(
(5 6 9 5)
(5 9 8 5)
(5 8 7 5)
(5 7 6 5)
);
}

walls
{
type wall;
faces
(
(1 4 9 6)
(4 3 8 9)
(3 2 7 8)
(2 1 6 7)
);
}

);

mergePatchPairs
(
);

// ************************************************** *********************** //
Shivam Sinha is offline   Reply With Quote

Old   November 7, 2014, 13:53
Default
  #4
otm
New Member
 
Join Date: Jun 2009
Posts: 22
Rep Power: 16
otm is on a distinguished road
Hi,

I don't think your block topology will give you a good cylinder mesh. You need five blocks like in this example. Also, you are using the same vertex more than once in each block definition. This is not allowed. The same goes for the patches.

I suggest that you read carefully the section about meshes in the OpenFOAM user guide. That particular part of the guide is actually quite comprehensive.

Good luck!
//Olle
otm 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
Mesh Generation - Prism Layer Stretching Tasneem STAR-CCM+ 3 June 1, 2017 19:41
State of mesh generation Wandadars Main CFD Forum 3 January 5, 2017 13:51
[ANSYS Meshing] Question about mesh generation for a pipe inside a cube lnk ANSYS Meshing & Geometry 0 July 10, 2012 13:28
[ANSYS Meshing] Question about mesh generation learning lnk ANSYS Meshing & Geometry 2 July 7, 2012 07:45
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


All times are GMT -4. The time now is 09:41.