Error ruinning AVL

211 views
Skip to first unread message

igormc...@gmail.com

unread,
Dec 15, 2020, 2:20:04 PM12/15/20
to SUAVE FORUM
Hello,

I've been having some problems to run the 737 AVL tutorial, on the latest version of SUAVE.
This error keeps showing up:



I don't know if I'm doing this wrong, but I've changed the lin 111 and 119 from the tutorial file

 from 
aerodynamics.process.compute.lift.inviscid.settings.filenames.avl_bin_name = 'CHANGE ME TO YOUR DIRECTORY'

to
aerodynamics.process.compute.lift.inviscid.settings.filenames.avl_bin_name = 'C:/Users/Igor/Desktop/Embraer/HO/Tutorials-2.2.0/B737_AVL_Tutorial/avl'

wich is where I placed the AVL executable.

The avl result files are beeing placed in the same directory:

C:\Users\Igor\Desktop\Embraer\HO\Tutorials-2.2.0\B737_AVL_Tutorial\avl_files

What am I doing wrong here?


Thank you all for your time.


Igor Maia

Matthew Clarke

unread,
Dec 18, 2020, 7:54:08 AM12/18/20
to SUAVE FORUM
Make sure that SUAVE knows the location of your AVL executable. In trunk/SUAVE/Methods/Aerodynamics/AVL/Data/Settings.py in line 65, change 'avl' to the absolute path on your PC. i.e. for mine, I use "C:/Users/Matthew/Documents/AVL/avl.exe" 

igormc...@gmail.com

unread,
Dec 18, 2020, 3:10:06 PM12/18/20
to SUAVE FORUM
I made the change and yet the same error keeps showing up.

Just to check, I included the absolute path of my AVL executable files in three places:

1 - trunk/SUAVE/Methods/Aerodynamics/AVL/Data/Settings.py         =>  in line 65    (self.filenames.avl_bin_name = '  ' )
2 - Tutorials-2.2.0/B737_AVL_Tutorial/tut_mission_B737_AVL.py       =>  in line 111   (aerodynamics.process.compute.lift.inviscid.settings.filenames.avl_bin_name = '  ' )
3 - Tutorials-2.2.0/B737_AVL_Tutorial/tut_mission_B737_AVL.py       =>  in line 119   (stability.settings.filenames.avl_bin_name  = '  ' )

Is there any other place I can make a change that could make it work?

Thank you for the help.

dkn...@gmail.com

unread,
Feb 5, 2021, 11:18:13 AM2/5/21
to SUAVE FORUM
At first, I faced the same problem.To solve it in my windows machine:

1. I added the 'avl.exe' path to the windows environment variables so that it could be executed from anywere on the DOS prompt.

2. I didn't have to change anything else on the scripts (I'm running the tutorial 2.0 on SUAVE 2.0).
Note: Looking a newer version like 2.2, you may have to edit lines 111 and 119 of the tutorial script. I didn't run this version, but my suggestion is to put something like 'avl' for both lines and give it a try.

3. Then, I executed the tutorial script in the prompt command line (python tut_mission_B737_800_AVL.py) where the script file is stored.
Note: My attempts to execute the script directly on the IDE (e.g., PyScripter) results in error.

In that way, it worked for me.

I hope thats help you.
Reply all
Reply to author
Forward
0 new messages