Help Needed: Creating CGNS File on Windows

  • Thread starter Thread starter deathriderz
  • Start date Start date
  • Tags Tags
    File
AI Thread Summary
The discussion centers on difficulties linking CGNS libraries in Windows, specifically encountering the error "CG_OPEN_F is an undefined reference." The user has modified the library and include paths but continues to face issues and is seeking assistance to run their code and generate a CGNS file. Additionally, they mention a previous experience with a similar problem and suggest that providing C code might be beneficial. A helpful resource is mentioned, including a plot3d_to_cgns routine available from NASA GRC, which could assist in resolving the issue. Overall, the user is looking for immediate help or guidance to fix the linking error.
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.
 
Posted June 2024 - 15 years after starting this class. I have learned a whole lot. To get to the short course on making your stock car, late model, hobby stock E-mod handle, look at the index below. Read all posts on Roll Center, Jacking effect and Why does car drive straight to the wall when I gas it? Also read You really have two race cars. This will cover 90% of problems you have. Simply put, the car pushes going in and is loose coming out. You do not have enuff downforce on the right...
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
I'm trying to decide what size and type of galvanized steel I need for 2 cantilever extensions. The cantilever is 5 ft. The space between the two cantilever arms is a 17 ft Gap the center 7 ft of the 17 ft Gap we'll need to Bear approximately 17,000 lb spread evenly from the front of the cantilever to the back of the cantilever over 5 ft. I will put support beams across these cantilever arms to support the load evenly
Back
Top