|
[Sponsors] |
November 23, 2015, 11:23 |
Volume of general hexahedron
|
#1 |
New Member
Prakash
Join Date: Jan 2015
Posts: 14
Rep Power: 11 |
Hi all,
How to calculate the volume of a general hexahedron whose faces are of different shapes and the four edges connecting the top and bottom surfaces are of different lengths and are not parallel to each other. Hope you could imagine that hexahedron |
|
November 23, 2015, 16:35 |
|
#2 | |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Quote:
This all assumes that the faces are quadrilateral--I think that is a geometric requirement. If one face has four sides, I think they all do. You can build a six-sided volume using six triangles too. The above formula doesn't handle that case. Also, these quadrahedra must have vertices that are co-planar. This is probably not the most efficient way to compute the volume of general hexs, but it is more fool-proof than directly implementing a hex volume formula using a set of eight vectors. I generally only compute the volumes as part of the initialization process, so correctness is more important than absolute performance. Last edited by mprinkey; November 24, 2015 at 08:53. |
||
November 23, 2015, 18:17 |
|
#3 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
I agree to the technique of decomposition in tetrahedra... it is very simple computing the volumes by using the 4-node based formula on each tetrahedron covering the grid and then computing volumes of of more complex shapes |
||
November 24, 2015, 06:14 |
|
#4 |
New Member
Prakash
Join Date: Jan 2015
Posts: 14
Rep Power: 11 |
@mprinkey and @FMDenaro: Thank you for the spark. I did not think that way...!!
|
|
November 25, 2015, 03:56 |
|
#5 |
Senior Member
|
Consider the following approach:
http://www.dept.ku.edu/~cfdku/papers/1999-AIAAJ.pdf after splitting the hexahedron faces in triangles (along the diagonal) |
|
November 30, 2015, 08:44 |
|
#6 |
New Member
Prakash
Join Date: Jan 2015
Posts: 14
Rep Power: 11 |
Thank you very much..!!
|
|
April 16, 2018, 21:18 |
|
#7 |
New Member
Sourabh Bhat
Join Date: Jan 2010
Location: IITB, Mumbai, India
Posts: 4
Rep Power: 16 |
The method by @mprinkey is an interesting decomposition. However, probably this method will not work in case of non-convex hexahedra, as it will result in negative volumes being added. I have written a simple document at https://github.com/heySourabh/GeometryCalculations/tree/master/Stokes which provides a generic method with code. May be helpful to someone looking for this.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
snappyhexmesh remove blockmesh geometry | philipp1 | OpenFOAM Running, Solving & CFD | 2 | December 12, 2014 11:58 |
[ICEM] Volume orientation | MGF | ANSYS Meshing & Geometry | 2 | September 19, 2012 12:55 |
Volume 1 has invalid topology for mapped brick meshing | georgewar | ANSYS | 0 | July 24, 2011 17:02 |
Cell centroid and cell volume in general, and in Fluent | zmester | Main CFD Forum | 3 | October 17, 2009 12:05 |
help needed about phase change | Yanhu Guo | Main CFD Forum | 4 | January 24, 2001 00:16 |