CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   CGNS help~~ (http://www.cfd-online.com/Forums/main/122936-cgns-help.html)

gmwsy September 1, 2013 04:12

CGNS help~~
 
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:cool:.

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

Shengyi

duri September 3, 2013 09:57

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.

gmwsy September 4, 2013 10:52

thanks
 
Quote:

Originally Posted by duri (Post 449568)
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

duri September 5, 2013 04:52

I recently compiled cgns file for windows using visual studio. It is little tricky but I could help you.


All times are GMT -4. The time now is 10:28.