plotting vsp geometry in suave.

80 views
Skip to first unread message

inseo

unread,
Aug 15, 2022, 10:11:10 AM8/15/22
to SUAVE FORUM
I'm first at here, suave and python

I have my own vsp file. And I want suave to read vsp file.

I can import vspfile but I dont know how to plot the geometry of vehicle.

How can I plot it? 

This is my short code

# pacakgee imports
from SUAVE.Input_Output.OpenVSP.vsp_read import vsp_read
# ----------------------------------------------------------------------------------------------------------------------
#   Main
# ----------------------------------------------------------------------------------------------------------------------
vehicle = vsp_read('Vehicle1.vsp3',units_type = 'Imperial')


Vehicle1.vsp3

Дмитрий Тарабащук

unread,
Aug 15, 2022, 10:22:17 AM8/15/22
to SUAVE FORUM
Hi,
I am SUAVE user and I think Emilio can explain it better. I also struggled with this problem and would like to provide you short explanation :)

Add in the head of your code:

 1)from SUAVE.Input_Output.OpenVSP.vsp_read  import vsp_read

vehicle = vsp_read("Your_VSP_file.vsp3", units_type='SI',specified_network=None,use_scaling=False)  # add after all your geometry settings in suave
  print(vehicle)
2)from SUAVE.Input_Output.OpenVSP import write 
  write(vehicle,base_config.tag) 

And you will be able read VSP files and write then.
But before you should Install properly your OpenVSP, It must be in your path.
Good explanation how to install is here: https://www.youtube.com/watch?v=cKbpRRZQEMc&t=266s

Hope I helped you :)

понедельник, 15 августа 2022 г. в 16:11:10 UTC+2, inseo:

Emilio

unread,
Aug 15, 2022, 4:50:39 PM8/15/22
to SUAVE FORUM
That's correct.

SUAVE has some internal plotting (not nearly as nice as OpenVSP). You can see SUAVE's plots here.

-Emilio

inseo

unread,
Aug 15, 2022, 9:41:17 PM8/15/22
to SUAVE FORUM
Thank you Дмитрий Тарабащук

As you said that, I already build openvsp 3.29 ver on my anaconda env path :)

I appreciate about your guide of the codes. I'll try it soon

Im curious about '# add after all your geometry settings in suave

  print(vehicle)'

Is geometry setting that you said, my vsp3 file data ? or arbitrary data for fix my vsp3 file?

Thank you.

============================================================================

Thank you Emilio

I'll try it asap :)

Inseo

2022년 8월 16일 화요일 오전 5시 50분 39초 UTC+9에 Emilio님이 작성:

inseo

unread,
Aug 16, 2022, 1:02:12 PM8/16/22
to SUAVE FORUM
Hi  Дмитрий Тарабащук and Emilio.

I tried to import my vsp file into suave.

First I did it importing it. I had checked my vsp file ID on suave.

fig4.png

Then I tried to import calculate_VLM to calculate my vehicle using VLM.

Function said, this module need Condition, Setting and geometry

But I cant find a way importing the three needs on SUAVE tutorial,,,

I cannot find tutorial using vsp3 file importing on SUAVE...

# ----------------------------------------------------------------------
#   Imports
# ----------------------------------------------------------------------

from SUAVE.Input_Output.OpenVSP.vsp_read import vsp_read

from SUAVE.Analyses.Aerodynamics.Vortex_Lattice import calculate_VLM

vehicle = vsp_read("Vehicle1.vsp3", units_type='SI',specified_network=None,use_scaling=False)

calculate_VLM()

fig3.png

This figure is my goals to designing and optimizing UAM vehicle.

Is there a tutorial using vsp files into SUAVE ?

Thank you.

Inseo




2022년 8월 16일 화요일 오전 10시 41분 17초 UTC+9에 inseo님이 작성:

Emilio

unread,
Aug 16, 2022, 10:20:24 PM8/16/22
to SUAVE FORUM
Hi Inseo,
There's no one tutorial on OpenVSP files with SUAVE. However, I would suggest taking a look at the video tutorials as it's discussed there.

The OpenVSP-SUAVE representation of wings, fuselages, and rotors/propellers is very complete. However, anything beyond that requires manual input, such as batteries, landing gear, and motors.

The VLM settings and conditions come from the analyses. The settings contain things like the panel discretization. You can see all that in detail here.

You can certainly run these without the analyses, but it's a more manual process of setting up conditions and settings.

-Emilio

inseo

unread,
Aug 17, 2022, 4:19:13 AM8/17/22
to SUAVE FORUM
Thank you Emilio.

I have to study SUAVE and Python step by step  :)

2022년 8월 17일 수요일 오전 11시 20분 24초 UTC+9에 Emilio님이 작성:
Reply all
Reply to author
Forward
0 new messages