[Tutorial Question] SUEVE 2.5.2 / BWB.py /

365 views
Skip to first unread message

인서최

unread,
Jun 21, 2022, 11:09:13 PM6/21/22
to SUAVE FORUM
Hi all of SUAVE Team and users !

I installed standard install version of SUEVE 2.5.2 on my Window10.

Some tutorial example(e.g. tut_C172.py, tut_eVTOL.py, etc.) works very well.

But when I ran BWB.py, didnt worked with this error line.

[
C:\WORKINGSPACE\SUAVE\SUAVE\Tutorials-2.5.2\BWB_CFD>python BWB.py
Reseting OpenVSP Model in Memory
VSP import failed
VSP import failed
Traceback (most recent call last):
  File "C:\WORKINGSPACE\SUAVE\SUAVE\Tutorials-2.5.2\BWB_CFD\BWB.py", line 801, in <module>
    main()
  File "C:\WORKINGSPACE\SUAVE\SUAVE\Tutorials-2.5.2\BWB_CFD\BWB.py", line 38, in main
    simple_sizing(configs)
  File "C:\WORKINGSPACE\SUAVE\SUAVE\Tutorials-2.5.2\BWB_CFD\BWB.py", line 589, in simple_sizing
    wing.areas.wetted   = wetted_areas[wing.tag]
TypeError: 'int' object is not subscriptable
]

But I already has OpenVSP files.

My question is,

1) Is there BWB.vsp file in tutorial folder? I cannot find BWB.vsp. Or should I create BWB.vsp file.

2) How can I add my OpenVSP folder to my SUAVE folder ? Im very new of Python and SUAVE

3) I want to plot C172's panelizated geometry like this[1].


I added <def plot_vehicle_vlm_panelization(vehicle):  return> line after return vehicle line.
SUAVE_CRM.png

addline.png


Thank you for read this.

[1] E. Botero, M. Clarke, R. Erhard, J. Smart and J. J. Alonso, “Aerodynamic Verification and Validation of SUAVE,” AIAA SciTech Forum, Vol. 3, No. 7, 2022.

inseo

unread,
Jun 23, 2022, 12:36:27 PM6/23/22
to SUAVE FORUM
I sovled one of problem.

First, I didnt build my OpenVSP-Python API on my desktop ...
So I built it.

I'll upload <how to build OpenVSP Python API for using SUAVE> on this forum.

But Im still dont know how to plot VLM Panelization.

I'll digging SUAVE for solve it.

Thank you for read it.
2022년 6월 22일 수요일 오후 12시 9분 13초 UTC+9에 inseo님이 작성:
Build_OpenVSP_Python_API.pptx

Emilio

unread,
Jun 23, 2022, 3:48:50 PM6/23/22
to SUAVE FORUM
Hi,
To plot the VLM panelization the VLM has to be run first. After the analyses.finalize() you should be able to pass the config into the plotting method. Don't forget the plt.show() afterwards.

-Emilio

inseo

unread,
Jun 25, 2022, 12:51:17 PM6/25/22
to SUAVE FORUM
Hi Emilio,

Thank you, I'll try it.

2022년 6월 24일 금요일 오전 4시 48분 50초 UTC+9에 Emilio님이 작성:
Reply all
Reply to author
Forward
0 new messages