Help Needed: Creating CGNS File on Windows

  • Thread starter Thread starter deathriderz
  • Start date Start date
  • Tags Tags
    File
Click For Summary
SUMMARY

The discussion revolves around issues with linking CGNS libraries in a Windows environment using Silverfrost Plato. The user, mocha, encounters an "undefined reference" error for "CG_OPEN_F" and seeks assistance in resolving this issue. Recommendations include checking the library and include paths as per the ReadFile instructions and utilizing a plot3d_to_cgns routine found on the NASA GRC website. The conversation highlights the importance of proper library linking and the availability of CGNS utility packages for troubleshooting.

PREREQUISITES
  • Understanding of CGNS (CFD General Notation System) libraries
  • Familiarity with Silverfrost Plato compiler
  • Basic knowledge of Fortran programming
  • Experience with library linking and path configuration in Windows
NEXT STEPS
  • Research how to properly configure library and include paths in Silverfrost Plato
  • Explore the NASA GRC CGNS utility package for additional tools
  • Learn about the CGNS file structure and its requirements
  • Investigate alternative methods for converting plot3d format to CGNS
USEFUL FOR

Developers and researchers working with computational fluid dynamics (CFD) who need to create CGNS files, particularly those using Fortran and Silverfrost Plato on Windows.

deathriderz
Messages
1
Reaction score
0
Hello,

I have a little problem linking the CGNS libraries.

I tried linking the CGNS libraries with the compiler, but the same error shows, viz. "CG_OPEN_F is an undefined reference". I guess this has probably got to do with modifying the lib and include path or something like that.

Right now I am short of time and would really appreciate if someone who has the libraries installed can run my little code and send me the resulting CGNS file.

I have attached a zip file of the code(f95) and also a text file containing the data points which the code reads in.

Thanks,
mocha
Or could someone tell me how I can fix the error? Its in Windows and am using Silverfrost Plato. I modified the paths at both places, i.e I did everything the ReadFile says.

am wondering why no one's replied. will it help if I give a C code?
 

Attachments

Last edited:
Engineering news on Phys.org
I ran into a similar problem very recently. Our code writes out in plot3d/FAST format, e.g.
Code:
WRITE(11,*) num_Blocks
WRITE(11,*) (ni(n),nj(n),nk(n),n=1,num_Blocks)
DO n=1,num_Blocks
  WRITE(11,*) (((x(i,j,k,n),i=1,ni(n)),j=1,nj(n)),k=1,nk(n)),&
               (((y(i,j,k,n),i=1,ni(n)),j=1,nj(n)),k=1,nk(n)),&
               (((z(i,j,k,n),i=1,ni(n)),j=1,nj(n)),k=1,nk(n))
END DO

I was lucky to have found a plot3d_to_cgns routine on the NASA GRC (IIRC) website. In fact, they have an entire CGNS utility package that you may want to take a look at. Do a google search and see if any of it can help.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
2
Views
3K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
3K
Replies
4
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
12K