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

CGNS help~~

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2013, 05:12
Thumbs up CGNS help~~
  #1
New Member
 
Shengyi Wang
Join Date: Mar 2009
Posts: 22
Rep Power: 17
gmwsy is on a distinguished road
Dear every master,

I need to get the details of some boundary conditions(e.g. the wall temperature of an 'isothermal wall' type bc) from CGNS file. However, the MLL library seems not to provide any function to get this information.

I guess, maybe, a combination usage of the 'cg_goto' and 'data_array_read' functions has to be implemented but have not suceeded for now.

Would any body like to give a hand on this problem? Thanks a lot.

Shengyi
gmwsy is offline   Reply With Quote

Old   September 3, 2013, 10:57
Default
  #2
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
Use adfviewer or cgnsviewer to read boundary condition information. cg_goto and cg_array_read would work easily only if the datatype, size and location are know in advance. Otherwise it would be little difficult.
duri is offline   Reply With Quote

Old   September 4, 2013, 11:52
Arrow thanks
  #3
New Member
 
Shengyi Wang
Join Date: Mar 2009
Posts: 22
Rep Power: 17
gmwsy is on a distinguished road
Quote:
Originally Posted by duri View Post
Use adfviewer or cgnsviewer to read boundary condition information. cg_goto and cg_array_read would work easily only if the datatype, size and location are know in advance. Otherwise it would be little difficult.
Dear duri,

thanks a lot for your help. ADFviewer is indeed a powerful tool to view cgns data. However, for my instance, I need to write a code to extract the boundary condition data as an input of a CFD solver. I have tried the cg_goto way, and it could work assuming that there is only one dataset_t node under its parent node bc_t.

I have another problem with getting the latest cgns libraries for windows. would you kindly give a hand with that?

Best wishes,
Shengyi
gmwsy is offline   Reply With Quote

Old   September 5, 2013, 05:52
Default
  #4
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
I recently compiled cgns file for windows using visual studio. It is little tricky but I could help you.
duri is offline   Reply With Quote

Reply

Tags
cgns bc


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
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 05:20
[Gmsh] Cgns support for gmsh robyTKD OpenFOAM Meshing & Mesh Conversion 1 July 13, 2016 12:27
parallel support with CGNS format not yet implemented kirkrich SU2 3 January 18, 2013 16:39
Cgns b91 Main CFD Forum 1 June 20, 2012 07:07
develop CFD code based on CGNS vito Main CFD Forum 3 May 3, 2005 12:45


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