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] how to draw a pipe(3D) in openfoam? (https://www.cfd-online.com/Forums/openfoam-meshing/169298-how-draw-pipe-3d-openfoam.html)

6863523 April 7, 2016 04:47

how to draw a pipe(3D) in openfoam?
 
Dear all,

I am a new learner of openfoam. I want to draw a pipe to do some simulation. I have tried my times, but I have not figure it out.

vertices
(
(0 0 0)
(0 0.005 0.005)
(0 0 0.01)
(0 -0.005 0.005)
(0.1 0 0)
(0.1 0.005 0.005)
(0.1 0 0.01)
(0.1 -0.005 0.005)
);
edges
(
arc 0 1 (0.70710678 0.70710678 0)
arc 2 3 (-0.70710678 0.70710678 0)
arc 4 5 (0.70710678 0.70710678 0.1)
arc 6 7 (-0.70710678 0.70710678 0.1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (200 10 10) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
inlet
{
type wall;
faces
(
(0 1 2 3)
);
}
outlet
{
type wall;
faces
(
(4 5 6 7)

);
}
surface
{
type wall;
faces
(
(0 4 7 3)
(3 7 6 2)
(2 6 5 1)
(1 5 4 0)
);
}
);
mergePatchPairs
(
);
Above is the program that I used to draw a pipe, but it turned out to be a cuboid.
Any idea about this problem?
By the way, I want to make it in openfoam, not in other softwares.

Thank you.

BestRegards,

Bill

[ Moderator note: this thread was moved from the main OpenFOAM forum to the blockMesh subforum on the 16th of April 2016. ]

Flowkersma April 7, 2016 05:36

Hi Bill,

You are using the blockMesh application which has its own subforum. There is at least one thread which is about 3-D Mesh in a cylinder. Maybe you can find a solution from there.

Best regards,
Mikko

6863523 April 7, 2016 05:37

Quote:

Originally Posted by Flowkersma (Post 593843)
Hi Bill,

You are using the blockMesh application which has its own subforum. There is at least one thread which is about 3-D Mesh in a cylinder. Maybe you can find a solution from there.

Best regards,
Mikko

Dear Mikko,
Thank you for the suggestions.
I will go and have a check.
Thank you.
Regards,
Bill


All times are GMT -4. The time now is 23:59.