OpenVSP Python API Documentation¶
OpenVSP includes an API written in C++ that exposes all of the functionality of the GUI to a programming interface. This allows OpenVSP modeling and analysis tools to be run on headless systems, directly integrated with external software programs, and automated for trade studies and optimization purposes. The OpenVSP API & MATLAB/Python Integration presentation from the 2020 OpenVSP Workshop is a good resource to learn more about the API. For specific API questions, the OpenVSP Google Group is available.
Examples¶
OpenVSP API examples are available in the scripts directory of the distribution. These example scripts are written in AngelScript, but map very closely for the Python API. CustomGeom examples, also written in Angelscipt, are available in the CustomScripts directory. An example for using the Python API can be found in python/openvsp/openvsp/tests. The matlab_api directory includes examples for the MATLAB API in the form of test suites.
Python API Instructions¶
View the README file in the python directory of the distribution for instructions on Python API installation. Note, the Python version must be the same as what OpenVSP was compiled with. For instance OpenVSP 3.21.2 Win64 requires Python 3.6-x64. If a different version of Python is desired, the user must compile OpenVSP themselves.
Improvements¶
Users¶
Users are encouraged to make use of the GitHub Issue Tracker if they have a suggestions, feature request, or bug report for the OpenVSP developers. Please add an issue if an API function or capability is missing, not working correctly, or poorly documented.
Links¶
Contents¶
- OpenVSP Config
- API Functions by Group
- Advanced Link Functions
- Analysis Manager Functions
- API Error Functions
- Attributes Manager Functions
- AuxiliaryGeom Functions
- Background3D Functions
- BOR Functions
- CFD Mesh Functions
- Design File Functions
- Edit Curve XSec Functions
- Enumerations
- FEA Mesh Functions
- File Input and Output Functions
- Fit Model Functions
- Functions for Sets
- GearGeom Functions
- General API Utility Functions
- General Computation Functions
- Geom Functions
- Geom Surface Query Functions
- Group Modification Functions
- Matrix4d Functions
- Measure Tool Functions
- Mode Functions
- Parasite Drag Functions
- Parm Container Functions
- Parm Functions
- Parm Link Functions
- Point Cloud Functions
- Propeller Blade Curve Functions
- Results Manager Functions
- RoutingGeom Functions
- Snap-To Functions
- StackGeom Functions
- Sub-Surface Functions
- Variable Preset Functions
- Vec2D Functions
- Vec3D Functions
- Vehicle Functions
- Visualization Functions
- VSPAERO Actuator Disk and Propeller Functions
- VSPAERO Control Surface Group Functions
- VSPAERO Functions
- XSec and Airfoil Functions
- XSecSurf Functions
- openvsp package