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

CGNS help~~

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 1, 2013, 04:12
Thumbs up CGNS help~~
  #1
New Member
 
Shengyi Wang
Join Date: Mar 2009
Posts: 22
Rep Power: 8
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, 09:57
Default
  #2
Senior Member
 
duri
Join Date: May 2010
Posts: 130
Rep Power: 7
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, 10:52
Arrow thanks
  #3
New Member
 
Shengyi Wang
Join Date: Mar 2009
Posts: 22
Rep Power: 8
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, 04:52
Default
  #4
Senior Member
 
duri
Join Date: May 2010
Posts: 130
Rep Power: 7
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 125 July 1, 2015 21:09
parallel support with CGNS format not yet implemented kirkrich SU2 3 January 18, 2013 16:39
Cgns support for gmsh robyTKD Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 November 15, 2012 10:21
Cgns b91 Main CFD Forum 1 June 20, 2012 06:07
develop CFD code based on CGNS vito Main CFD Forum 3 May 3, 2005 11:45


All times are GMT -4. The time now is 22:05.