-
Notifications
You must be signed in to change notification settings - Fork 22
Matlab-ASWing interface issue #1
Comments
Thank you for reaching out. Have you verified you are able to run ASWING from the command line? If you are able to run ASWING by hand please verify your path is set up correctly. If running on Windows, please verify XROTOR, XFOIL and ASWING are on your system path. If running on MacOS, please verify XROTOR, XFOIL and ASWING are in your Matlab path. Once this is done you can verify setup is complete by running FBHALE/Tools/CheckSystem.m. It should help guide you through any additional setup issues. If you are passing CheckSystem.m and still having issues please let us know. -FBHALE team |
Hi However, we tried one of the configuration files, Flying Wing. The code works perfectly and the design loop converges (taking default ASWing.exe file) . The sensor data generated was by 44 sensors. Even after making changes in the source code of ASWing for the number of sensors to be 60, the MATLAB code throws an error because ASWing crashes (default number of sensors taken to be 36). We're unable to generate .exe file for the modified ASWing source code. This is where we're facing issues. |
To generate an exec file for ASWING in windows, we removed X-window graphics support, because the MDO tool does not require it. In gw_subs.f, remove all lines of code inside every subroutine. Keep the subroutine container statements intact, i.e. ensure subroutines appear as follows: subroutine xxxxx We used ifort (intel) to compile in windows. Gather all *.f files from your aswing source. Download ARPACK *.f files from https://www.caam.rice.edu/software/ARPACK/. Collect all *.f files in one folder and execute: ifort /O3 *.f This should make an aswing exe file. Ensure the file is on your system path by verifying in command-line. |
Please try this alternative build method. In a folder, collect all your aswing source files as before. Once you've extracted the ARPACK zip, copy the ARPACK directory (and subdirectories) into the aswing folder. Run this command: ifort /O3 *.f ARPACK\BLAS*.f ARPACK\LAPACK*.f ARPACK\SRC*.f ARPACK\UTIL*.f Please let me know if that works. |
I tried this method, but its not working. At the beginning a few .f files cannot be executed and then stops while executing bode.f. I tried an alternative, and generated the .a files from ARPACK and Plotlib namely 'libarpack_SUN4.a' and 'libplt.a', and linked their path for executing aswing makefile (Makefile_ifort). Then using the command 'nmake /f Makefile_ifort', various output .o files are generated. But I face an error with the line 'PLTLIB = -L/usr/X11R6/lib -lX11'. I also tried using Cygwin, but face a 'fatal error: ld terminated with signal 11' error at the final stage of execution and it ends up generating a 0kb executable file. I am wondering if the aswing makefiles are unix based only and/or if they can create an executable file for windows platform? Please help me out here with your suggestions. |
Can you tell us what the errors are for the first few *.f files? Please list the output as you did previously. It's best to compile these files directly using ifort rather than the makefiles. Please make sure you place the fortran include files also from aswing's source in the same directory where you plan to compile. These are files with extension *.INC. |
Backslashes are missing. Please try this: ifort /O3 *.f ARPACK\BLAS*.f ARPACK\LAPACK*.f ARPACK\SRC*.f ARPACK\UTIL*.f Another tip: |
Please do not include the examples folder. i.e., plotlib\examples. Also exclude seconds_g77.f and seconds_ifc.f. Regarding the last 5 errors, are you sure the pruned version of gw_subs.f is placed in the directory? These are all function calls to gw_subs.f. |
Thank you for all your patience, time and guidance! |
Hi |
Hi
Matlab is not able to execute ASWing even after the recommended changes being made to the source files. Please suggest this procedure in some detail.
Thanks
The text was updated successfully, but these errors were encountered: