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

[blockMesh] how to draw a pipe(3D) in openfoam?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Flowkersma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2016, 04:47
Default how to draw a pipe(3D) in openfoam?
  #1
Senior Member
 
Bill Wang
Join Date: Aug 2014
Posts: 109
Rep Power: 11
6863523 is on a distinguished road
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. ]

Last edited by wyldckat; April 16, 2016 at 12:17. Reason: see "Moderator note:"
6863523 is offline   Reply With Quote

Old   April 7, 2016, 05:36
Default
  #2
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 12
Flowkersma is on a distinguished road
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 and Hughtong like this.
Flowkersma is offline   Reply With Quote

Old   April 7, 2016, 05:37
Default
  #3
Senior Member
 
Bill Wang
Join Date: Aug 2014
Posts: 109
Rep Power: 11
6863523 is on a distinguished road
Quote:
Originally Posted by Flowkersma View Post
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
6863523 is offline   Reply With Quote

Reply

Tags
openfoam;pipe;geometry


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM Training Beijing 22-26 Aug 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 May 3, 2016 04:57
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 05:33


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