![]() ![]() This is a fairly lightweight module which has been written for these examples to take care of some of the more cumbersome aspects of scripting OpenRocket with jpype.Īt the time of writing the orhelper module contains: These scripts all make use of a python package orhelper (below). The numpy, scipy, matplotlib libraries are required (these usually come together). To run the following examples you will need Python 3.6 or later and OpenRocket-15.03.jar. ![]() Nevertheless, they do provide a nice way to prototype new OpenRocket features. However, because scripts require external software they can not be integrated into a stand-alone OpenRocket distribution. An important advantage to this approach over something like embedded Jython scripting is that you have full access to all the python ecosystem, crucially numpy, scipy, matplotlib and other cpython only libraries. It is also probably the best approach if you are interested in making use of OpenRocket as part of something larger. This approach provides a very rapid development environment for optimizing rocket designs, enhancing and exploring the simulation. Using Python and the JPype library it is possible to write external scripts which run outside of OpenRocket, but make use of OpenRocket much like any other python library. This article demonstrates one approach to the problem. The ability to script OpenRocket and enhance it with user written code is an often discussed topic among the OpenRocket community. Scripting openrocket with Python and JPype Overview 1 Scripting openrocket with Python and JPype.
0 Comments
Leave a Reply. |