|
[Sponsors] |
July 22, 2016, 13:54 |
Element dimensions
|
#1 |
New Member
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9 |
Hi everybody:
I want to know the width, length and height of an specific element in an hexahedral mesh. Somebody can tell me how to obtain that information? Thanks in advance! |
|
July 22, 2016, 15:01 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Unstructured meshes are built up from vertices -> edges -> faces -> cells. So, the dimensions that you are looking for are determined by the vertex locations. You will need to find the list of eight vertex location vectors and deduce the relevant length scales by considering the different edge lengths on the side.
You should also realize that there is not a single length, width, and height associated with general hexahedra. There can be no axis alignment assumed, opposite edges of a given face will not have the same length, etc. |
|
July 25, 2016, 09:48 |
|
#3 | |
New Member
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9 |
Quote:
|
||
July 25, 2016, 10:07 |
|
#4 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
There is, but it is going to be different for each CFD code or mesh file. FLUENT has macros that allow you to loop over all of the vertices (nodes) on a face or cell:
Code:
c_node_loop(c,t,n) { . . node = C_NODE(c,t,n); . . } Similar constructs likely exist for Star CCM+ and OpenFOAM. |
|
July 25, 2016, 10:11 |
|
#5 |
New Member
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9 |
I am using CFX, is the same as FLUENT?
|
|
July 25, 2016, 12:47 |
|
#6 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
I have never coded for CFX, so I don't know those details. But the solver likely has access mechanisms similar to FLUENT and OpenFOAM. It is just a matter of reviewing the documentation.
|
|
July 25, 2016, 13:20 |
|
#7 |
New Member
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9 |
Ok Michael, thank you very much for your information!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mesh file for flow over a circular cylinder | Ardalan | Main CFD Forum | 7 | December 15, 2020 13:06 |
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM | Ancioi | OpenFOAM Meshing & Mesh Conversion | 17 | January 8, 2019 23:50 |
[Other] Mesh Importing Problem | cuteapathy | ANSYS Meshing & Geometry | 2 | June 24, 2017 05:29 |
Incompatible dimensions for operation | ruben23 | OpenFOAM Running, Solving & CFD | 2 | June 12, 2015 04:14 |
autoPatch error, mesh quality related...? | Alexvader | OpenFOAM | 0 | October 6, 2011 17:57 |