Running Propeller Analysis over Python API

212 views
Skip to first unread message

Efe Egemen Şen

unread,
Oct 30, 2024, 5:48:45 AM10/30/24
to OpenVSP
Hello,

For the last couple days I have been struggling with running propeller analysis over the Python API to sweep an array of free-stream velocities. 

However, the problem I am encountering is whenever some of the runs finish,  ExecAnalysis just prints "Done" and gets stuck even though the results are exported to a xxxx.rotor.n file. This just stops the iteration and prevents the for loop from moving on to the next iteration.

Is there any way to work around this? I am okay with some of the cases to fail but at least I don't want them to stop the iteration all together.

Best regards,
Efe
apc_bem_10x10.vsp3
calc_prop_vlm.py

Rob McDonald

unread,
Nov 1, 2024, 9:05:49 PM11/1/24
to OpenVSP
After VSPAERO runs the flow solution, it is trying to take a velocity survey slice through the solution.  It looks like this does not work for unsteady cases.

If you open up the *.vsp3 file, go to the VSPAERO GUI, then to the Advanced tab.

Delete the Y=0 slice.

Then save the *.vsp3 file -- your script should work better then.

Rob

Kun Drew

unread,
Jul 2, 2025, 7:38:33 AM7/2/25
to OpenVSP
Hi.
Which function should I use to cancel Cpslice when I use the Python API for analysis.
Follow the instructions of this post:OpenVSP does not work with python
I made the following attempt but it didn 't work:
vsp.SetIntAnalysisInput("VSPAEROSweep", "CpSliceFlag", [0])
What is the correct function How to set the parameters to cancel the Cpslicer.
Best regards,

Kang
Reply all
Reply to author
Forward
0 new messages