CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

how to create a block inside another block?

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

Like Tree10Likes
  • 1 Post By romant
  • 1 Post By romant
  • 5 Post By Hale
  • 2 Post By romant
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2013, 15:59
Default how to create a block inside another block?
  #1
Member
 
Hale
Join Date: May 2013
Posts: 53
Rep Power: 12
Hale is on a distinguished road
hi,

I want to create a rectangular cyllinder inside another rectangular cylinder and define a wall boundary on the faces of the inner cylinder. Is there any easy way to do it in blockMesh? If not please give me some examples to do it in other ways because I looked at som similar cases in snappyHexMesh but I couldn't understand how it works.

I really appreciate your help.
Hal
Hale is offline   Reply With Quote

Old   August 22, 2013, 04:10
Default
  #2
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 13
startingWithCFD is on a distinguished road
What do you mean by "rectangular cylinder"? A cylinder with a hexahedral mesh?
It would help to present a picture with the desired output to describe it more clearly.
startingWithCFD is offline   Reply With Quote

Old   August 22, 2013, 04:42
Default
  #3
Member
 
Hale
Join Date: May 2013
Posts: 53
Rep Power: 12
Hale is on a distinguished road
thanks for the reply...

I actually wanted to make a hollow circular cylinder as shown in the figure below but I realized that it is not an easy task in openfoam using blockMesh tool. Then I tried to make it as a hollow rectangular prism which was also not easy at all. I managed to get the rectangular prism but it wasn't the most optimal way to do it. So I want to know if there are some other smart and easier ways to generate such a rectangular prism or hollow cylinder with. Such like a circular or rectangular pipe!

NB. the inner faces should then be defined as walls...
Attached Images
File Type: png hollow_cylinder.png (13.9 KB, 86 views)
File Type: jpg 1480110.jpg (33.4 KB, 44 views)
Hale is offline   Reply With Quote

Old   August 22, 2013, 05:18
Default
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Which part do you want to simulate? The flow in an annulus (a), the flow inside the pipe (b), or conjugate heat transfer or similar (c)? Shown in the attached picture.
Attached Images
File Type: png cylinderQuestion.png (28.6 KB, 36 views)
Mihiran likes this.
__________________
~roman
romant is offline   Reply With Quote

Old   August 22, 2013, 06:14
Default
  #5
Member
 
Hale
Join Date: May 2013
Posts: 53
Rep Power: 12
Hale is on a distinguished road
Quote:
Originally Posted by romant View Post
Which part do you want to simulate? The flow in an annulus (a), the flow inside the pipe (b), or conjugate heat transfer or similar (c)? Shown in the attached picture.
Hi, Thanks for your time.

Actually I only need part b shown in your pic but the system I want is a little bit more complicated. I have attached a sketch of the geometry.

I have a big circular tank where the water is coming from the sides of this tank. When the water level reaches the smaller cylinder in the middel of the big tank, it begins to fall into the cylinder in the middel and continues downstream. So I need the faces of the inner cylinder to be walls.

As far as I know it is not possible to define inner boundaries in openfoam so I have to cut the space between these two cylinders and define them as walls. And this is really confusing in blockMesh.
Attached Images
File Type: jpg geo.jpg (25.4 KB, 31 views)
Hale is offline   Reply With Quote

Old   August 22, 2013, 06:38
Default
  #6
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Quote:
Originally Posted by Hale View Post
Hi, Thanks for your time.

Actually I only need part b shown in your pic but the system I want is a little bit more complicated. I have attached a sketch of the geometry.

I have a big circular tank where the water is coming from the sides of this tank. When the water level reaches the smaller cylinder in the middel of the big tank, it begins to fall into the cylinder in the middel and continues downstream. So I need the faces of the inner cylinder to be walls.

As far as I know it is not possible to define inner boundaries in openfoam so I have to cut the space between these two cylinders and define them as walls. And this is really confusing in blockMesh.
The best thing is to do it the following way.

Split your geometry vertically into 3 pieces as shown in the picture. In radial you split it into 3 regions. Start with a cylinder in the center (where the cylinder contains a hexagonal cylinder, in blue). The different colors show where the block are defined. In section 2, you have to leave the 2nd ring from the outside without a mesh, in section 1, only mesh the hexagon in the center and the adjoining ring with mesh and in section 3, just give all the blocks a mesh. It is alot of work with blockmesh, but you should end up with a fairly good mesh. just remember to use the same number of cells along the adjoining edges in each block. My suggestiong, for speed and accountability, use 5 cells or something along each of the edges. makes the blocking faster and more visible. Use paraFoam -block to look where you places points in blockmesh, and blockMesh after every new block, otherwise looking for errors will be a pain in the butt.
Attached Images
File Type: jpg geo.jpg (42.3 KB, 49 views)
File Type: png openCFD forum.png (31.6 KB, 49 views)
Pirlu likes this.
__________________
~roman
romant is offline   Reply With Quote

Old   August 22, 2013, 08:32
Default
  #7
Member
 
Hale
Join Date: May 2013
Posts: 53
Rep Power: 12
Hale is on a distinguished road
Thank you very much roman...I will definitely try this method
Hale is offline   Reply With Quote

Old   August 24, 2013, 03:10
Default
  #8
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi
Could you do that?how?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 07:06
Default
  #9
Member
 
Hale
Join Date: May 2013
Posts: 53
Rep Power: 12
Hale is on a distinguished road
Quote:
Originally Posted by immortality View Post
hi
Could you do that?how?
Hi,

yes. The way roman suggested worked fine I don't know if I can describe it in a better way than roman did in previous post but I can try. I have attached a sketch of the way that the blocks have to be defined. I hope this helps you to understand.

I have also attached the code and the final geometry in paraview.
Attached Images
File Type: png 2.png (16.1 KB, 147 views)
File Type: png 3.png (18.2 KB, 161 views)
File Type: jpg 5.jpg (43.5 KB, 160 views)
File Type: jpg 6.jpg (31.1 KB, 144 views)
Attached Files
File Type: txt blockMeshDict.txt (9.6 KB, 136 views)
Hale is offline   Reply With Quote

Old   August 24, 2013, 09:37
Default
  #10
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Thanks Hale
I'm glad you could do that with the help of Roman,
a side question,how you made the images with explanations?with what software in Linux?
@Roman:Hi
I want to ask same question to you!
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 10:51
Default
  #11
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Quote:
Originally Posted by immortality View Post
Thanks Hale
I'm glad you could do that with the help of Roman,
a side question,how you made the images with explanations?with what software in Linux?
@Roman:Hi
I want to ask same question to you!
For the pictures that I made, I used Inkscape, which is a vector drawing program available to windows, mac, and linux systems. For visualisation of blockmesh files, you can use parafoam from your installation of openfoam with the command
Code:
paraFoam -block
This will give you a visualisation of the different points and lines you create with blockmesh.
immortality and Pirlu like this.
__________________
~roman
romant is offline   Reply With Quote

Old   August 24, 2013, 12:44
Default
  #12
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
do you have a guide for Inkscape?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 13:56
Default
  #13
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Well, if you had tried using your friend Google, then the following link would be the top of the list:

http://inkscape.org/doc/

Kind regards

Niels
immortality likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 1, 2016, 03:25
Default Case 'c'_ Annulus
  #14
New Member
 
Mihiran
Join Date: Sep 2014
Posts: 3
Rep Power: 11
Mihiran is on a distinguished road
Quote:
Originally Posted by romant View Post
Which part do you want to simulate? The flow in an annulus (a), the flow inside the pipe (b), or conjugate heat transfer or similar (c)? Shown in the attached picture.


Dear Romant,

Could you please give the methodology to case 'c'.

best regards,
Mihiran
Mihiran is offline   Reply With Quote

Old   January 6, 2016, 09:12
Default
  #15
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Quote:
Originally Posted by Mihiran View Post
Dear Romant,

Could you please give the methodology to case 'c'.

best regards,
Mihiran
Hej,

The solution has already been given. When you take a look at the splitting in post http://www.cfd-online.com/Forums/ope...tml#post447388 you can See multiple rings, which can all be used for the purpose of conjugate heat transfer in an annulus. The outer ring would be the outer shell. The next ring traveling inwards is the fluid domain and the next ring can be the inner cylinder. The rectoid in the center is not meshed and the inner wall are also curved.

I hope that helps.
__________________
~roman
romant 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
[blockMesh] FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 Hengel OpenFOAM Meshing & Mesh Conversion 7 November 15, 2021 23:56
[blockMesh] how to create a block inside another block? Hale OpenFOAM Meshing & Mesh Conversion 2 August 24, 2013 08:02
[DesignModeler] How to create smaller pipe inside bigger pipe? Munggang ANSYS Meshing & Geometry 2 March 7, 2012 15:01
[blockMesh] FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 Hengel OpenFOAM Meshing & Mesh Conversion 0 September 15, 2010 09:34
contours with block inside. Paul Main CFD Forum 0 November 20, 2000 05:20


All times are GMT -4. The time now is 05:36.