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

CGNS to ASCII 2D grid - Dealing with mixed elements

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2016, 12:35
Default CGNS to ASCII 2D grid - Dealing with mixed elements
  #1
Member
 
Join Date: Apr 2012
Posts: 71
Rep Power: 14
leo_NM is on a distinguished road
Good afternoon.

I'm trying to translate a 2D cgns file to ASCII format.

I wrote the code below that is working fine for QUAD elements. Now I am trying to validate it for tri and mixed elements. The connectivity problems started with the tri mesh. I can look the correct connectivity using cgnsview but the way my code is working with the connectivity is not dealing in a robust manner with the "ielem" array.

How should I deal with this array (ielem) to be able to deal with tri/quad/mixed elements combination ?

Thank you.
Attached Files
File Type: c lm_converter.c (8.8 KB, 7 views)
leo_NM is offline   Reply With Quote

Old   November 1, 2016, 07:39
Default
  #2
Member
 
Join Date: Apr 2012
Posts: 71
Rep Power: 14
leo_NM is on a distinguished road
Highly untested for mixed (quad/tri) elements but it seems to work now with tri elements as well.
Attached Files
File Type: c lm_converter.c (9.0 KB, 8 views)
leo_NM 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
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 04:49
2d CGNS grid for use with ensight zonexo Main CFD Forum 0 May 16, 2006 21:37
Grid with Pyramid elements Mayur Pal Main CFD Forum 0 April 14, 2006 21:01
Tetra grid generator for CGNS Jenna Main CFD Forum 0 March 27, 2005 09:57
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 11:18


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