CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] mesh of tube (https://www.cfd-online.com/Forums/openfoam-meshing/124486-mesh-tube.html)

Ahmed Khattab October 6, 2013 12:59

mesh of tube
 
Dear Foamers,

I'd like to make mesh of tube with length 1 m and diameter 20 cm and thickness of 1 cm. anyone have an idea how blockMeshDict would like??

thanks in advance.

wyldckat October 6, 2013 13:58

Quick question: Have you already searched here on the forum, namely in the sub-forum "blockMesh"? OpenFOAM Native Meshers: blockMesh

Ahmed Khattab October 7, 2013 06:56

Dear wyldckat,

yes i searches a lot for it. i found my way to do it. but I'm searching now for better or easier ideas. I'll share my mesh in another post or may be in a blog. because a tube must be done from cylinder then split it to solid part and flow part as my way.

thanks for your reply

skyinventorbt November 13, 2013 03:05

Quote:

Originally Posted by Ahmed Khattab (Post 455458)
Dear wyldckat,

yes i searches a lot for it. i found my way to do it. but I'm searching now for better or easier ideas. I'll share my mesh in another post or may be in a blog. because a tube must be done from cylinder then split it to solid part and flow part as my way.

thanks for your reply

Four quarter domains with thickened arcs above that will work.

Quarter domains for pipe and arcs for pipe thickness.

--
KANNAN

Ahmed Khattab January 6, 2014 12:44

Quote:

Originally Posted by skyinventorbt (Post 461769)
Four quarter domains with thickened arcs above that will work.

Quarter domains for pipe and arcs for pipe thickness.

--
KANNAN

Dear Kannan,

i think i didn't catch your idea, could you please send me example for this mesh.

BR,
Ahmed

skyinventorbt January 7, 2014 00:17

blockMesh example
 
1 Attachment(s)
Quote:

Originally Posted by Ahmed Khattab (Post 468857)
Dear Kannan,

i think i didn't catch your idea, could you please send me example for this mesh.

BR,
Ahmed

Dear Ahmed,

You refer to User guide for making wedge type mesh and your domain in to two blocks as shown in the attachment.

Also refer this code for axisymmetric pipe (Just for example) using single cell thickness. For multi cell, use curved surfaces defined by arc.

Note: Create your own vertices(Use paraFoam block to understand the positioning)

Code:

vertices       
(
    (0 0 0)                          //0
    (0 0.6 0.020943951)              //1
    (0 0.6 -0.020943951)            //2
    (30 0 0)                        //3
    (30 0.6 0.020943951)            //4
    (30 0.6 -0.020943951)          //5
    (0 180 6.283185307)            //6
    (30 180 6.283185307)          //7
    (30 180 -6.283185307)          //8
    (0 180 -6.283185307)          //9
);

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

);

--
KANNAN B T


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