|
[Sponsors] |
how to create a block inside another block? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Nov 2012
Posts: 58
Rep Power: 14 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 ![]() |
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... |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 ![]() |
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.
__________________
~roman |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 ![]() |
Quote:
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. |
||
![]() |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 ![]() |
Quote:
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.
__________________
~roman |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 ![]() |
Thank you very much roman...I will definitely try this method
![]() |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 ![]() |
Hi,
yes. The way roman suggested worked fine ![]() I have also attached the code and the final geometry in paraview. |
|
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 ![]() |
Quote:
Code:
paraFoam -block
__________________
~roman |
||
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 38 ![]() ![]() |
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
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
![]() |
![]() |
![]() |
![]() |
#14 |
New Member
Mihiran
Join Date: Sep 2014
Posts: 3
Rep Power: 12 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#15 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 ![]() |
Quote:
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 |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 22:56 |
[blockMesh] how to create a block inside another block? | Hale | OpenFOAM Meshing & Mesh Conversion | 2 | August 24, 2013 07:02 |
[DesignModeler] How to create smaller pipe inside bigger pipe? | Munggang | ANSYS Meshing & Geometry | 2 | March 7, 2012 14:01 |
[blockMesh] FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 | Hengel | OpenFOAM Meshing & Mesh Conversion | 0 | September 15, 2010 08:34 |
contours with block inside. | Paul | Main CFD Forum | 0 | November 20, 2000 04:20 |