B737 AVL Tutorial - Read Results Error

66 views
Skip to first unread message

Grant Hiller

unread,
Mar 18, 2024, 7:33:49 PMMar 18
to SUAVE FORUM
Hi Folks,

I am just starting out on my journey to learn SUAVE, and have run the tut_mission_B737_AVL.py script.

However, I am getting the following error:

  File "C:\Users\grant\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Methods\Aerodynamics\AVL\read_results.py", line 166, in read_results
    wing_local_span[i,j]      = float(aero_lines_2[header + j + line_idx][8:16].strip())
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'orces re'

Looking into the read_resuls.py script, it looks like the script is expecting every surface to have 20 rows (Nspanwise = 20), however, the last 2 surfaces have only 10 rows (Nspanwise = 10). See attached screenshots.

It looks like the .avl file doesn't specify Nspanwise for the last two surfaces, so it defaults to 10?

My questions are:
1. Does anyone else have this issue?
2. Is Nspanwise specified directly somewhere in the input python script? or somewhere else in SUAVE? I couldn't find any reference to it in the B737_AVL python file
3. Does anyone have a suggestion on how to resolve this issue?

Thanks in advance for the help!

Regards,

Grant.





avl.png
strip_forces_results.png
read_results.png

Soren Juelsgaard

unread,
Mar 18, 2024, 7:42:01 PMMar 18
to SUAVE FORUM
I expect that you are using AVL 3.40, not AVL 3.36.
Since SUAVE is not parsing the data, and instead are just cutting out certain character fields from the output file, and since there has been changes in the output from 3.36 to 3.40, it will be reading the wrong fields.
I would recommend going back to AVL 3.36.
I have made a different, more robust parser, and I am just verifying it with the latest AVL code, and will share it back to the community, when it is ready.

Best,
/Soren Juelsgaard

Grant Hiller

unread,
Mar 18, 2024, 8:16:38 PMMar 18
to SUAVE FORUM
Hi Soren,

Ah yes, sorry, I should have mentioned that I was using AVL 3.40 in my post.

I switched to 3.36 and the script ran with no issues. 

Thanks for your help, much appreciated. I look forward to seeing the updated parser.

Regards,

Grant.

Reply all
Reply to author
Forward
0 new messages