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

General 3D Mesh Considerations (hexa vs prism vs tetra)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By sbaffini
  • 1 Post By DeadLee

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2020, 14:59
Default General 3D Mesh Considerations (hexa vs prism vs tetra)
  #1
New Member
 
Join Date: Jul 2020
Posts: 25
Rep Power: 5
DeadLee is on a distinguished road
Hi all,

I'm coming from a Finite Element Analysis background and have been wondering about the influences of the different types of cell shapes and their influence on results in CFD.

For example, in most formulations of FEM:
-3D elements are missing the rotational degrees of freedom so interfaces with 2D plate elements have to be handed correctly
- hexas behave poorly in bending if we're not careful (shear locking)
- 2D elements don't have the 6th degree of freedom (out of plane rotation) so that has to taken into account for some geometries
-etc

The advantages and disadvantages of each type should be considered depending on the problem before meshing.

TLDR: I'm wondering what characteristics each element type has. Especially for transitions; do prism > hexa transitions behave as expected? Does the orientation of the prism elements w.r.t to the flow have an impact? And tetra> prisms? Is it the same in 2D and 3D?


In my case I'm using openFoam to simulate a vertical wxis wind tubrine (rotating mesh), so high Re with flow separation.
DeadLee is offline   Reply With Quote

Old   September 17, 2020, 05:29
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by DeadLee View Post
Hi all,

I'm coming from a Finite Element Analysis background and have been wondering about the influences of the different types of cell shapes and their influence on results in CFD.

For example, in most formulations of FEM:
-3D elements are missing the rotational degrees of freedom so interfaces with 2D plate elements have to be handed correctly
- hexas behave poorly in bending if we're not careful (shear locking)
- 2D elements don't have the 6th degree of freedom (out of plane rotation) so that has to taken into account for some geometries
-etc
Thank God we have none of this b...t in finite volume (sorry, someone had to say this ).

Jokes apart, very generally speaking, in mixed order:

- We don't mix (typically) 2D and 3D cells in the finite element sense. If your grid is 3D all your cells are 3D. End of the story. You need to look at the Finite volume approach as writing a conservation law for each cell. There are some corner cases like, say, a 3d grid that at the inlet/outlet is coupled with a 1d grid, but everything works as expected when you properly take into account the conservation laws

- As above, a finite volume code can handle general polyhedral grids and will work as expected as long as proper conservation laws are taken into account at grid interfaces. If the interface is conformal it is just an ordinary job; if it isn't, then the faces on both sides need to be first split and rearranged to have an exact 1-to-1 or n-to-1 coupling. Not sure what you mean by prism cells, but in FV CFD they can exactly match an hexa only if they are hexa themselves

- What matters the most in a cell centered FV grid is the alignment between neighbor cell centers and the normal on their common face; you don't necessarily loose accuracy if this goes bad, but everything becomes more unstable because that misalignment is typically handled explicitly

- Error is proportional to the solution and its derivative when computing fluxes on the cell faces. If the flow is aligned with the grid (prism or not) you get 0 error on some faces. If the grid is hexa, uniform and aligned you may get that some error terms cancel from opposite faces (so aligned hexa are always better if achievable... tetra bad).

- 2D and 3D are basically the same in principle
arjun and DeadLee like this.
sbaffini is offline   Reply With Quote

Old   September 17, 2020, 06:10
Default
  #3
New Member
 
Join Date: Jul 2020
Posts: 25
Rep Power: 5
DeadLee is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
Thank God we have none of this b...t in finite volume (sorry, someone had to say this ).

Haha now I'm glad about that too!

Thanks for your detailed reply, all questions (and some more I didn't ask) answered!

(for the prism hexa, imagine a mixed 2D tria/quad mesh extruded in one direction, you get a mixed prism/hexa mesh)
sbaffini likes this.
DeadLee 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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
No prism layer mesh is generated, I don't know why... capikrad STAR-CCM+ 6 April 25, 2014 05:06
tetra hexa mesh hamid1 FLUENT 5 April 12, 2012 11:23
Prism mesh Mohankumarg12 ANSYS Meshing & Geometry 7 July 27, 2011 16:10
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 17:07.