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

Element dimensions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2016, 13:54
Post Element dimensions
  #1
New Member
 
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9
JavyGlez is on a distinguished road
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!
JavyGlez is offline   Reply With Quote

Old   July 22, 2016, 15:01
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
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.
mprinkey is offline   Reply With Quote

Old   July 25, 2016, 09:48
Default
  #3
New Member
 
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9
JavyGlez is on a distinguished road
Quote:
Originally Posted by mprinkey View Post
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.
Hi Michael, thanks for your reply. In fact, that is my query, how to obtain that list of vertex location? Is there any kind of output file with this information?
JavyGlez is offline   Reply With Quote

Old   July 25, 2016, 10:07
Default
  #4
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
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.


mprinkey is offline   Reply With Quote

Old   July 25, 2016, 10:11
Default
  #5
New Member
 
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9
JavyGlez is on a distinguished road
I am using CFX, is the same as FLUENT?
JavyGlez is offline   Reply With Quote

Old   July 25, 2016, 12:47
Default
  #6
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
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.
mprinkey is offline   Reply With Quote

Old   July 25, 2016, 13:20
Default
  #7
New Member
 
Javier
Join Date: Jul 2016
Posts: 6
Rep Power: 9
JavyGlez is on a distinguished road
Ok Michael, thank you very much for your information!
JavyGlez 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
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


All times are GMT -4. The time now is 14:37.