CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Cgns (https://www.cfd-online.com/Forums/cfx/234655-cgns.html)

k.cinar March 14, 2021 10:02

Cgns
 
Hi everyone,

I am trying to open and read CGNS file. What I mean is I have .cgns file, and I need to post-process it by writing computer program.(I will write computer program in C). I am using MacOs Big Sur version 11.2.3 (20D91), and also Xcode for compiling and writing program to read(post process cons file) in C language. I used CMake for configuration and make and make install for building CGNS library. However, when I try to write codes and implement cg_ functions which are supplied by CGNS library, it keeps giving error -like undefined symbol: cg_open-. I downloaded HDF5 1.12 and built its library as I did in CGNS library. I thought that there is something wrong with cgns library link, can anyone please help me. I appreciate for any help.

ghorrocks March 15, 2021 03:31

This is the CFX forum. We don't know anything about the CGNS format. Well, not much anyway.

Note that in my experience CGNS files generated by CFX are not reliable. I would not use CFX to generate CGNS files for your application. If you are trying to develop a post-processing routine for CFX I would not choose CGNS as I do not trust it. I would use other formats.

aero_head March 15, 2021 18:30

Quote:

Originally Posted by k.cinar (Post 798784)
Hi everyone,

I am trying to open and read CGNS file. What I mean is I have .cgns file, and I need to post-process it by writing computer program.(I will write computer program in C). I am using MacOs Big Sur version 11.2.3 (20D91), and also Xcode for compiling and writing program to read(post process cons file) in C language. I used CMake for configuration and make and make install for building CGNS library. However, when I try to write codes and implement cg_ functions which are supplied by CGNS library, it keeps giving error -like undefined symbol: cg_open-. I downloaded HDF5 1.12 and built its library as I did in CGNS library. I thought that there is something wrong with cgns library link, can anyone please help me. I appreciate for any help.

Merhaba Kübra,

I have done this but don't remember the work-around I found, sorry. I do know it is possible, it doesn't have anything to do with HDF5, if that's any contribution. Could have something to do with Big Sur, I'm still on Sierra.


All times are GMT -4. The time now is 16:24.