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

how to handle the unstructured mesh in the CFD simulation?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By mprinkey

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2016, 07:26
Default how to handle the unstructured mesh in the CFD simulation?
  #1
dli
New Member
 
dengli
Join Date: Mar 2015
Posts: 22
Rep Power: 11
dli is on a distinguished road
Hi,guys. I have problems on the arrangement of different types of unstructured mesh,such as tetrahedron,pyramid,prism,hexahedron and polyhdral. With the cell-centered scheme and face address,we must build the connectivity of those data,for example ,face to element,element to nodes(for gradient calculation based on nodes and display in the tecplot). so I have some questions about them, can you guys give me some advice?
1. a computation domain may compose different types of mesh,just mention above, usually the mesh file can give use some information about this, but with the cobalt data format file,there are no direct information about which types of the elements are, only gives the number of face,but the pyramid and prism both have 5 faces, we can also judge them by the number of nodes,but here comes a question, how can I know the number of the node of an element?
2.the second question is still the connectivity of nodes and elements, in Tecplot, it has its own data format,for example,in requires a special order of the eight nodes of a hexahedron to avoid a wrong line connection. so can there are some algorithm to solve those problem?

thanks.
dli is offline   Reply With Quote

Old   March 16, 2016, 10: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
I haven't used tecplot in a very long time or cobalt at all, so I can't answer specific questions about them, but parsing and organizing unstructured CFD meshes is something I know a bit about, so perhaps I can offer some guidance.

(1) A pyramid will have two tri and three quad faces. A prism will have four tri and one quad face. If Cobalt mesh file says cell 4003 is composed of faces 100,101,102,201,202, say...you will need to inspect each of the faces so see how many nodes each have and count tri/quad faces. Nodes per cell time are just simple geometry: Tets will always have 4 nodes, hexs will always have 8 nodes, pyramids will have 5 nodes, and prisms will have 6 nodes.

(2) I don't know the Tecplot requirements that you are meeting, but ordering nodes is often associated face orientation. Once you order the nodes to get all of the faces (say) pointing away from the cell centroid, then you can make sense of the node order relative to the template that TecPlot requires.

So, first, you have to order the nodes on the faces. Take the three nodes position vectors (A,B,C) and build two edge vectors (A-B and A-C). Then form the cross product of the two CROSS(A-B,A-C) and dot with (A-CellCentroid). That will tell you whether the face order (A,B,C) points into the cell or out of the cell. If it is the wrong way, use a face order of (A,C,B) instead.

Quads (and general polygon faces) are a little harder. First you have to make sure to avoid "bowtie" faces where the edges intersect. The general algorithm is to find the ordering of the nodes the minimizes the perimeter. So, if you have (A,B,C,D) as the nodes on the quad, you can compute the perimeter as |A-B| + |B-C| + |C-D| + |D-A| and compare it to the perimeter of (A,C,B,D) as |A-C| + |C-B| + |B-D| + |D-A| and choose the ordering with the shorter length. That will be the non-bowtie ordering. The treatment of poly faces is the same idea, but there are more than two permutations that you need to test, but the minimum perimeter ordering is still the "right" answer.

For quads and poly meshes, you should really verify that all of the nodes are coplanar. That is usually an implicit assumption in any linear finite element or finite volume formulation. This isn't an issue for tris because three (non-colinear) nodes are always coplanar. But, now you can analyze the face direction by using any three nodes as I outlined above with tris. If the face is pointing the wrong direction REVERSE THE ENTIRE ORDER of the node list. You must be careful permuting quad/poly face node lists that you do pick a bow-tie configuration. By reversing the entire node list, you keep the same edge list and the same perimeter, but invert the face orientation.

With your faces oriented relative to the inside of the cell, it should then be easy to build connections and node orderings.
fresty likes this.
mprinkey is offline   Reply With Quote

Old   March 16, 2016, 12:46
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I don't know if you have already the guide for tecplot format datafile

http://www.hgs.k12.va.us/tecplot/doc...rmat_guide.pdf


you should go in the section for FE format (i,j,k-ordered data is for structureed grid). If I remember correctly, you have headers for the first identification of elements, then the list of nodes for each elements, then the topology...Usually using non-structured grids you should have a pointer that for each node gives you the linked nodes and the structure of the element (for example by its faces).
FMDenaro is offline   Reply With Quote

Old   March 25, 2016, 22:51
Default
  #4
dli
New Member
 
dengli
Join Date: Mar 2015
Posts: 22
Rep Power: 11
dli is on a distinguished road
Quote:
Originally Posted by mprinkey View Post
I haven't used tecplot in a very long time or cobalt at all, so I can't answer specific questions about them, but parsing and organizing unstructured CFD meshes is something I know a bit about, so perhaps I can offer some guidance.

(1) A pyramid will have two tri and three quad faces. A prism will have four tri and one quad face. If Cobalt mesh file says cell 4003 is composed of faces 100,101,102,201,202, say...you will need to inspect each of the faces so see how many nodes each have and count tri/quad faces. Nodes per cell time are just simple geometry: Tets will always have 4 nodes, hexs will always have 8 nodes, pyramids will have 5 nodes, and prisms will have 6 nodes.

(2) I don't know the Tecplot requirements that you are meeting, but ordering nodes is often associated face orientation. Once you order the nodes to get all of the faces (say) pointing away from the cell centroid, then you can make sense of the node order relative to the template that TecPlot requires.

So, first, you have to order the nodes on the faces. Take the three nodes position vectors (A,B,C) and build two edge vectors (A-B and A-C). Then form the cross product of the two CROSS(A-B,A-C) and dot with (A-CellCentroid). That will tell you whether the face order (A,B,C) points into the cell or out of the cell. If it is the wrong way, use a face order of (A,C,B) instead.

Quads (and general polygon faces) are a little harder. First you have to make sure to avoid "bowtie" faces where the edges intersect. The general algorithm is to find the ordering of the nodes the minimizes the perimeter. So, if you have (A,B,C,D) as the nodes on the quad, you can compute the perimeter as |A-B| + |B-C| + |C-D| + |D-A| and compare it to the perimeter of (A,C,B,D) as |A-C| + |C-B| + |B-D| + |D-A| and choose the ordering with the shorter length. That will be the non-bowtie ordering. The treatment of poly faces is the same idea, but there are more than two permutations that you need to test, but the minimum perimeter ordering is still the "right" answer.

For quads and poly meshes, you should really verify that all of the nodes are coplanar. That is usually an implicit assumption in any linear finite element or finite volume formulation. This isn't an issue for tris because three (non-colinear) nodes are always coplanar. But, now you can analyze the face direction by using any three nodes as I outlined above with tris. If the face is pointing the wrong direction REVERSE THE ENTIRE ORDER of the node list. You must be careful permuting quad/poly face node lists that you do pick a bow-tie configuration. By reversing the entire node list, you keep the same edge list and the same perimeter, but invert the face orientation.

With your faces oriented relative to the inside of the cell, it should then be easy to build connections and node orderings.
Thanks a lot , I have solve this problem,your idea help me gain more insight of.this
dli is offline   Reply With Quote

Reply

Tags
connectivity, gradient calculation, unstructured mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] Orthogonality/Skew issues in 3D unstructured mesh eddyy19g ANSYS Meshing & Geometry 3 February 13, 2014 09:36
Future CFD Research Jas Main CFD Forum 10 March 30, 2013 12:26
ANSA for CFD mesh santosh kangarlan ANSA 23 March 20, 2013 10:39
[ICEM] unstructured wing mesh generation in ICEM CFD arunintn ANSYS Meshing & Geometry 3 March 6, 2013 17:05
Unstructured Mesh ICEM on a cube jerome_ ANSYS 0 May 30, 2012 05:34


All times are GMT -4. The time now is 21:46.