|
[Sponsors] |
[snappyHexMesh] snappyHexMesh: create boundary layer in a bent tube |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 2, 2011, 09:32 |
snappyHexMesh: create boundary layer in a bent tube
|
#1 |
New Member
Brahim Aakti
Join Date: Mar 2009
Location: Lucerne, Switzerland
Posts: 23
Rep Power: 17 |
Hi all
I'm trying to mesh a "simple" bent tube using sHM. My goal is to resolve the boundary layer a bit... Therefore I tried three different approaches:
In the attachment you will find the "overview" of the geometry and the results of the three approaches. The third one looks quite nice, but the checkMesh fails because of "incorrect orientation of faces" and "edges not aligned with or perpendicular to non-empty directions". Does anyone know what I am doing wrong? Any help and hints are very appreciated! Thanks - Brahim. |
|
September 2, 2011, 10:51 |
|
#2 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Hej,
exactly what you have written under step two is wrong. The type empty is used for 2D meshes only. You need to set this to wall. Then checkMesh will not give you an error.
__________________
~roman |
|
September 5, 2011, 04:23 |
|
#3 |
New Member
Brahim Aakti
Join Date: Mar 2009
Location: Lucerne, Switzerland
Posts: 23
Rep Power: 17 |
Hi Roman
Thanks for your hint. BC type wall is the default setting. So, when I "change" the bc type to wall, procedure 1 and procedure 2 are exactly the same. The mesh I get then is the one on the second picture (tube-ver1.jpg). But I would like to have a mesh like the one in the fourth picture (tube-ver3.jpg) Any other hints are very welcome! Brahim. |
|
September 5, 2011, 04:33 |
|
#4 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
__________________
~roman |
||
September 5, 2011, 05:31 |
|
#5 | |
New Member
Brahim Aakti
Join Date: Mar 2009
Location: Lucerne, Switzerland
Posts: 23
Rep Power: 17 |
Quote:
Could you please give me more information about the refinement region? I don't know, what you mean by "refine the region with a refinement region"? Is it somehow possible to define a box for further refinement? In the attachment you will find the snappyHexMeshDict I used. Thanks a lot for your help!!! |
||
September 5, 2011, 05:36 |
|
#6 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Hej,
I can see in your snappyHexMeshDict, there is already a refinementBox defined (line 38), which later on (line 129) is used. Since I don't know what the over all bounding box of your geometry is, i can't tell you what the refinement box should include. But the example of one is included in your snappyHexMeshDict. You can use paraFoam and under display you can show the axis with measurements. From there you can deduce where you want to have a refinement box ( I guess at the inlet) and then chose how much more refined this should become (play with the levels I guess).
__________________
~roman |
|
September 5, 2011, 08:50 |
|
#7 |
New Member
Brahim Aakti
Join Date: Mar 2009
Location: Lucerne, Switzerland
Posts: 23
Rep Power: 17 |
Hi Roman
I defined a refinement box and played around with the levels, but without any success. The mesh still looks like in the second picture... |
|
September 5, 2011, 08:54 |
|
#8 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
with the refinement box you will not get layers, but rather more cells that could then be on the same level as your layers in the rest of the domain.
depending on your application, you might not need the layers in the first cell (since only that one is actually affected) however, you can also just add an extension to the geometry, so that there are more cells before your real geometry starts, which means that were your real geometry starts, you will definitely have layers.
__________________
~roman |
|
September 5, 2011, 09:37 |
|
#9 |
New Member
Brahim Aakti
Join Date: Mar 2009
Location: Lucerne, Switzerland
Posts: 23
Rep Power: 17 |
For a simple test case, your suggested work around would work. But it is a "work around" and I think that there must be a proper solution... As you can see in this thread: http://www.cfd-online.com/Forums/ope...tlet-pipe.html it should be possible to create a nice boundary layer. There they changed the bc type from inlet/outlet to empty... But in my case, this procedure did not work!
Does someone has other ideas, how to fix that problem? |
|
September 5, 2011, 09:45 |
|
#10 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
Sorry, maybe I should have read your post more carefully. Since your third approach works, I suggest to change the type definition back from empty to wall after you have done the meshing. checkMesh should not give any errors and you then end up with the mesh that you want. You might need to specify the patches/boundaries differently afterwards anyway, because some boundary conditions don't work on a wall. you will find the new boundary conditions for the ready made mesh under lastTimeDirectory/polyMesh/boundary
__________________
~roman |
||
September 5, 2011, 10:43 |
|
#11 | |
New Member
Brahim Aakti
Join Date: Mar 2009
Location: Lucerne, Switzerland
Posts: 23
Rep Power: 17 |
Quote:
changing the bc type in the boundary file does not change the mesh... I still get the error message Code:
Error in face pyramids: 104 faces are incorrectly oriented |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Validity & transformation of boundary layer equations | Obad | Main CFD Forum | 2 | April 27, 2015 03:59 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |