Open Muramnewby opened 1 year ago
I downloaded the zip file then opened it from the directory on matlab and copied the matlab main.m code into the script section and ran the code, but on the command window I had errors with the following lines:
Error in test (line 77) x_cUp = cosspace(0, 1, ntable/2 + 1, 'both');
Error in test (line 80) fprintf(fid, 'ntable = %g, \n',ntable);
Error in test (line 84) interp_type = asdf;
it looks like I stopped working on this code after line 95. So all the "asdf" stuff is just placeholder code and not expected to work right now. If you are lucky, the Matlab script already wrote the input file for the naca456 program and all you need to do now is run naca456 from the command line as normal.Or from within Matlab you can call the command line like:
% run naca456 from the command line system(['naca456 ' name '.nml']) system(['naca456 ' name '.nml ' x_456])
hope that helps
On Fri, Nov 4, 2022 at 6:57 AM Muramnewby @.***> wrote:
I downloaded the zip file then opened it from the directory on matlab and copied the matlab main.m code into the script section and ran the code, but on the command window I had errors with the following lines:
Error in test (line 77) x_cUp = cosspace(0, 1, ntable/2 + 1, 'both');
Error in test (line 80) fprintf(fid, 'ntable = %g, \n',ntable);
Error in test (line 84) interp_type = asdf;
— Reply to this email directly, view it on GitHub https://github.com/nnmrec/naca456/issues/1#issuecomment-1303491894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5AZINUS7QJLK6UGRJ6J73WGUB2ZANCNFSM6AAAAAARXD4VOE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
actually, your error message indicates that Matlab could not find the cosspace.m file. Change your working folder to where the naca456 program is located, 1-level up from cosspace.m, and addpath() that folder
On Fri, Nov 4, 2022 at 8:49 AM Danny Sale @.***> wrote:
it looks like I stopped working on this code after line 95. So all the "asdf" stuff is just placeholder code and not expected to work right now. If you are lucky, the Matlab script already wrote the input file for the naca456 program and all you need to do now is run naca456 from the command line as normal.Or from within Matlab you can call the command line like:
% run naca456 from the command line system(['naca456 ' name '.nml']) system(['naca456 ' name '.nml ' x_456])
hope that helps
On Fri, Nov 4, 2022 at 6:57 AM Muramnewby @.***> wrote:
I downloaded the zip file then opened it from the directory on matlab and copied the matlab main.m code into the script section and ran the code, but on the command window I had errors with the following lines:
Error in test (line 77) x_cUp = cosspace(0, 1, ntable/2 + 1, 'both');
Error in test (line 80) fprintf(fid, 'ntable = %g, \n',ntable);
Error in test (line 84) interp_type = asdf;
— Reply to this email directly, view it on GitHub https://github.com/nnmrec/naca456/issues/1#issuecomment-1303491894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5AZINUS7QJLK6UGRJ6J73WGUB2ZANCNFSM6AAAAAARXD4VOE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Firstly thank you so much for your help and fast response! So I tried what you suggested :
Hi thank you for providing this code! I would like to run the naca456 program on matlab, can you please provide some brief points on how to do so? Or is this program specifically for the fortran language? Sorry I am new to coding but would be very grateful if you can help me!