Running Analysis via Python API Gives Errors

171 views
Skip to first unread message

zac...@gmail.com

unread,
Feb 27, 2018, 10:01:27 AM2/27/18
to OpenVSP
My script is provided in the attached file. I have seen a variety of errors, but they generlly consist of "Invalid Analysis ID analysis_name". It seems my code and previous attempts followed the AngelScript code, but doesn't want to run the analysis. Everything else works. thanks.


wing.py

zac...@gmail.com

unread,
Feb 27, 2018, 10:12:55 AM2/27/18
to OpenVSP
A more specific example is: "Error Code: 5, Desc: SetIntAnalysisInpt::Can't Find Name Analysis Method"

Rob McDonald

unread,
Feb 27, 2018, 10:50:15 AM2/27/18
to ope...@googlegroups.com
I am not a Python person, but I bet it is an issue of single quotes
vs. double quotes in this line...

analysis_name = 'VSPAERODegenGeom'

Rob


On Tue, Feb 27, 2018 at 7:12 AM, <zac...@gmail.com> wrote:
> A more specific example is: "Error Code: 5, Desc: SetIntAnalysisInpt::Can't
> Find Name Analysis Method"
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenVSP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openvsp+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

zac...@gmail.com

unread,
Feb 27, 2018, 11:17:13 AM2/27/18
to OpenVSP
Rob,

Thanks. I think it is running without errors now. I have changed the quotes as you suggested. I also noticed that I had to place a "vsp.ClearVSPModel()" in the main() as the geom output files were including all the previous geometries and it was getting excessively large. 

I have another question if it isn't too much. I have the analysis results file being written to a csv, but this doesn't seem to be the "results" I am looking for. There isn't any data in it just a time-stamp and some details about the designation of the geometry. Can you offer any insight into getting the data file? Thanks again.

zac...@gmail.com

unread,
Feb 27, 2018, 2:37:35 PM2/27/18
to OpenVSP
I now have two posts which seem like the same issue. despite errors disappearing after clearing the old geometry, using a print error script displayed the same error regarding analysis_method. So, for whatever reason it doesn't understand the analysis_method I am passing it and never attempts to do an analysis. 
Reply all
Reply to author
Forward
0 new messages