The Results Manager has two connotations -- in the GUI, it is the
visualization window that VSPAERO displays to look at results.
Under the hood in VSP, it is a common framework for accessing the
results of built-in analyses. It works hand-in-hand with the analysis
manager. Before the analysis and results managers, every analysis had
its own API and its own file formats. AM&RM were added to provide a
common API as new analyses were added. It mainly works on a
name/value pair system for inputs and outputs...
VSPAERO writes its results to a set of files. OpenVSP parses those
files and places the results into a RM data structure. The Results
Manager GUI displays them -- and the button 'export to CSV' really
calls a generic CSV export method on the corresponding results.
That code called when you push that button happens here...
https://github.com/ramcdona/OpenVSP/blob/master/src/geom_core/VSPAEROMgr.cpp#L2166
Most of that routine is just about safely getting a pointer to the
results object we want to dump out. Then, the real action happens on
this line...
https://github.com/ramcdona/OpenVSP/blob/master/src/geom_core/VSPAEROMgr.cpp#L2195
That is the routine that dumps a generic set of 'results' to a CSV file.
The Python API should be a 1:1 match of what is available through C++
or through AngelScript -- however, it is sometimes easiest to look at
what has been registered with AngelScript to see what is intended by
the API. In this case, you can look here to see what API calls exist
to work with the results manager...
https://github.com/ramcdona/OpenVSP/blob/master/src/geom_core/ScriptMgr.cpp#L1673
It should be pretty obvious how to mimic what the button-press code
does using these API calls -- which should equally be available
through Python.
When you run VSPAERO through the API, you will use analysis manager --
the results will be parsed and end up in results manager.
The analysis manager API calls can be used to query what is available
to your version of OpenVSP. Or you can look here if you prefer to
look under the hood:
https://github.com/ramcdona/OpenVSP/blob/master/src/geom_core/AnalysisMgr.cpp#L407
Hope this helps,
Rob
> --
> 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.