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.
 
Thread 'Turbocharging carbureted petrol 2 stroke engines'
Hi everyone, online I ve seen some images about 2 stroke carbureted turbo (motorcycle derivation engine). Now.. In the past in this forum some members spoke about turbocharging 2 stroke but not in sufficient detail. The intake and the exhaust are open at the same time and there are no valves like a 4 stroke. But if you search online you can find carbureted 2stroke turbo sled or the Am6 turbo. The question is: Is really possible turbocharge a 2 stroke carburated(NOT EFI)petrol engine and...
I need some assistance with calculating hp requirements for moving a load. - The 4000lb load is resting on ball bearing rails so friction is effectively zero and will be covered by my added power contingencies. Load: 4000lbs Distance to travel: 10 meters. Time to Travel: 7.5 seconds Need to accelerate the load from a stop to a nominal speed then decelerate coming to a stop. My power delivery method will be a gearmotor driving a gear rack. - I suspect the pinion gear to be about 3-4in in...
Back
Top