CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

The old Hex vs Tet question

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By flotus1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2013, 07:58
Default The old Hex vs Tet question
  #1
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
Hi,

For non-specific flows:
1. Hex is always better than Tet when it comes to accuracy.
2. No, Tet is as good as Hex if both solutions are mesh independent, although Tet require more cells to accomplish that.

Is it possible that the question is also related to cell skewness and that many researchers have just compared apples and oranges?

Cheers!
Simbelmynė is offline   Reply With Quote

Old   October 28, 2013, 09:25
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
I just finished putting together some "best practice" guidelines on this and some related topics.

My opinion based on my personal experience with commercial CFD software is: You can achieve good results with tet meshes for most engineering applications if you obey the basic rules of mesh generation (overall mesh quality, volume jump, angles, boundary layer resolution...)

But you have to know the drawbacks: Solutions with first order upwind schemes on tetrahedral meshes will always suffer from high numerical diffusion.
The computing times with tet meshes will be higher for the same accuracy and the overall convergence behavior is worse than with hex meshes.

And when it comes to LES with commercial cfd software, I would always choose hex meshes.
FMDenaro likes this.
flotus1 is offline   Reply With Quote

Old   October 28, 2013, 09:57
Default
  #3
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
Quote:
Originally Posted by flotus1 View Post
I just finished putting together some "best practice" guidelines on this and some related topics.

But you have to know the drawbacks: Solutions with first order upwind schemes on tetrahedral meshes will always suffer from high numerical diffusion.
Quote:
Originally Posted by flotus1 View Post
I just finished putting together some "best practice" guidelines on this and some related topics.

The computing times with tet meshes will be higher for the same accuracy and the overall convergence behavior is worse than with hex meshes.
Hi,

1. How is the second statement related to the first statement? 2. Do you mean that we need more cells in order to reduce numerical diffusion? 3. Numerical diffusion is affected by mesh refinement so I would guess that it is captured when doing a mesh sensitivity analysis? 4. It seems that you are leaning towards the second type of answer in my original post, right?


5. Assume that the flow is at a 45 degree angle with regards to the Hex mesh, now how will this affect the assessment of severe numerical diffusion for the Tet mesh compared to the Hex mesh?

Cheers!

Simbelmynė is offline   Reply With Quote

Old   October 28, 2013, 10:43
Default
  #4
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Quote:
Originally Posted by Simbelmynė View Post
Hi,

1. How is the second statement related to the first statement? 2. Do you mean that we need more cells in order to reduce numerical diffusion?
Combining the two statements results in the recommendation not to use first order schemes with tet meshes.
Simply refining the mesh reduces the numerical diffusion, but only with a slope of 1.
If your main focus is accuracy then you will need unreasonably fine meshes just to get rid of this error source.

Quote:
5. Assume that the flow is at a 45 degree angle with regards to the Hex mesh, now how will this affect the assessment of severe numerical diffusion for the Tet mesh compared to the Hex mesh?
This would be an excellent computation exercise
Nevertheless, one of the goals when creating hex meshes is to "streamline" the grid to prevent flows with a 45 degree angle with respect to the cells.
flotus1 is offline   Reply With Quote

Old   October 28, 2013, 11:21
Default
  #5
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
Ok so here are some 2d simulations with a commercial software.

The setup is a square domain with inflow at west and south boundary at a 45 degree angle. A passive scalar is introduced with a value of 1 at the west boundary and a value of 0 at the south boundary. Plots are from south-east corner to north-west corner.

Check attachments for results. It is clear that the quads have more numerical diffusion in this case.

Convergence took much longer for the triangles case. Residuals in both cases were lowered to 1e-8.
Attached Images
File Type: jpg 2048_triangles.jpg (45.1 KB, 27 views)
File Type: jpg 2025_quads.jpg (44.9 KB, 25 views)
Simbelmynė is offline   Reply With Quote

Old   October 28, 2013, 13:28
Default
  #6
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Rotating the flow direction by 90 degrees, you will get a similar diffusion error on the tet mesh.
flotus1 is offline   Reply With Quote

Old   October 28, 2013, 14:14
Default
  #7
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
Quote:
Originally Posted by flotus1 View Post
Rotating the flow direction by 90 degrees, you will get a similar diffusion error on the tet mesh.
Yes. So does a tri mesh have three preferred directions (low numerical diffusion) as opposed to two directions for quad elements? If yes, then it seems to me that polyhedral elements would be superior, given that they may have even more preferred directions.
Simbelmynė is offline   Reply With Quote

Old   October 31, 2013, 07:21
Default
  #8
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
I would not draw the same conclusion.
In your test case with the tet mesh, the numerical diffusion is only zero because the line of separation of the passive scalar has the correct direction AND the correct position.
If you could move the line of separation by half a cell size, you would still get diffusion errors.
Ergo tet elements have no preferred direction at all.
flotus1 is offline   Reply With Quote

Old   October 31, 2013, 07:36
Default
  #9
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
Quote:
Originally Posted by flotus1 View Post
I would not draw the same conclusion.
In your test case with the tet mesh, the numerical diffusion is only zero because the line of separation of the passive scalar has the correct direction AND the correct position.
If you could move the line of separation by half a cell size, you would still get diffusion errors.
Ergo tet elements have no preferred direction at all.
1. Ok. So how does this numerical diffusion work, what is the reason for no (small) diffusion when we have the correct direction AND the correct position?

2. Textbooks talk about numerical diffusion being worse when the flow is oblique to the direction of the grid. Should they also add "the correct position" to this statement? (perhaps I don't understand the concept of "grid direction").

Cheers!
Simbelmynė is offline   Reply With Quote

Old   October 31, 2013, 07:48
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,877
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Simbelmynė View Post
1. Ok. So how does this numerical diffusion work, what is the reason for no (small) diffusion when we have the correct direction AND the correct position?

2. Textbooks talk about numerical diffusion being worse when the flow is oblique to the direction of the grid. Should they also add "the correct position" to this statement? (perhaps I don't understand the concept of "grid direction").

Cheers!

numerical diffusion is related to the local truncation error appearing when the convective terms are discretized in non-symmetric way. Hex and Tet cells affects the way in which the discrete operator can be computed on the computational domain.
Hex cells are generally associated to structured grids that generate "line directions", Tet cells generates non-structured grid and you cannot uniquely define a grid direction.
I suggest to do some simple 2D exercise of the solution of the linear equation df/dt+udf/dx+vdf/y=0, you can prescribe u and v. Try to solve on both triangular grid and hex grid. Try to use upwind and central discretization
FMDenaro is online now   Reply With Quote

Old   October 31, 2013, 08:01
Default
  #11
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
numerical diffusion is related to the local truncation error appearing when the convective terms are discretized in non-symmetric way. Hex and Tet cells affects the way in which the discrete operator can be computed on the computational domain.
Hex cells are generally associated to structured grids that generate "line directions", Tet cells generates non-structured grid and you cannot uniquely define a grid direction.
I suggest to do some simple 2D exercise of the solution of the linear equation df/dt+udf/dx+vdf/y=0, you can prescribe u and v. Try to solve on both triangular grid and hex grid. Try to use upwind and central discretization
Yes thank you. Do you mean for me to do the exercises like the ones I did in post 5 in this thread or is it something else? First and second order has no effect on the diffusion if the triangular mesh is "correctly" aligned with the flow direction, the diffusion is almost non-existant. I made a structured triangular mesh in the test cases above.
Simbelmynė is offline   Reply With Quote

Reply


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
[ICEM] hybrid mesh/Aligning tet with hex mesh shridharsn ANSYS Meshing & Geometry 0 October 17, 2012 12:29
[blockMesh] Blockmesh error - 2D scramjet ishaninair OpenFOAM Meshing & Mesh Conversion 7 March 18, 2011 01:14
HEX or TET - Which One is better choice? MAB CFX 16 July 25, 2008 03:40
combination of hex and tet mesh Raju CFX 1 July 27, 2006 10:10
ANSYS ICEM CFD: Hex and Tet Element Specification Evan CFX 1 May 24, 2006 18:09


All times are GMT -4. The time now is 08:27.