Has anybody written a python script to import VSPAero stability results?

261 views
Skip to first unread message

skyc...@gmail.com

unread,
Oct 25, 2024, 3:21:16 PM10/25/24
to OpenVSP
Before I make one myself, curious if anyone has parsed those before.  I have not run VSPAero with python directly, which is probably the better answer, but for the moment I'm looking for the low-effort solution...

Thanks!
Bryan

Ahmed Nashaat

unread,
Oct 25, 2024, 4:16:03 PM10/25/24
to OpenVSP
I am  actually  going to work on one soon, Maybe next week. But if you want a start, you may use this example. https://github.com/OpenVSP/OpenVSP/tree/main/examples/vspaero_ex/Swept_Wing_API
This Tutorial is in  Angelscript API to make analysis in VSPERO but not stability. But I just made it in python.
you may find it useful as a start before doing stability analysis.
main.py

skyc...@gmail.com

unread,
Oct 29, 2024, 1:26:12 PM10/29/24
to OpenVSP
Thanks!  I appreciate the help!  I realized I'd forgotten that ChatGTP existed, I was able to ask it (them? us?) to parse the file and it did it.  Parsing below:
Parse_VSPStab.py

Rob McDonald

unread,
Nov 1, 2024, 8:25:03 PM11/1/24
to OpenVSP
I believe OpenVSP itself will parse the *.stab file into memory.  It should then be available through the API via the 'ResultsMgr' capability.

But maybe not...

Rob


skyc...@gmail.com

unread,
Nov 2, 2024, 3:58:37 PM11/2/24
to OpenVSP
Thanks Rob.  I'm working on trying to get the avl2py thing working, so I'm now delving into the world of actually working with OpenVSP directly in python.  Having some issues, what Workshop has the best slide deck for someone doing this for the first time?  I'm trying to work in Pycharm, in a virtual environment with anaconda. 

Li Zhikai

unread,
Jun 28, 2025, 9:02:34 AM6/28/25
to OpenVSP
I've written a script to read `.stab` file and store the derivatives into tables. See: github.com/Kai2510/StabVSP/
Modal analysis and root locus are also possible while postprocessing p, q, r - analysis result remain to be finished because I haven't figure out how does it work. If you know about it, please discuss with me.
I hope it helps.
Reply all
Reply to author
Forward
0 new messages