Monte-carlo dispersion analysis in the browser, powered by OpenRocket.
10K+
Monte-carlo dispersion analysis in the browser, powered by OpenRocket. Created by and for MIT Rocket Team.
.ork file somewhere accessible..ork file, and mark any additional variables you want Cassandra to keep track of.Run Simulation.This should bring you to a new page, with a blank grid on the right. Give Cassandra a couple seconds to start plotting points. Once you've got a few, you can download a CSV report and open it in Excel, or a full report to analyse using a tool like Python.
Rather than running on bare metal, Cassandra instead runs on Docker. This is because Cassandra relies on strange hackiness for its integration with OpenRocket, and thus benefits from the control Docker provides. This also makes running Cassandra very easy.
docker run -e PASSWORD=mypassword -p 4000:80 nanogru/cassandra, where mypassword is the password you want and 4000 is the port you want to run Cassandra on.http://localhost:4000/ in your web browser (if you chose another port number, replace it here too).If you have any issues with the installation process, post an issue in this repo. If you'd like to deploy Cassandra to a cloud VM, I recommend using Google Compute Engine, as it lets you easily deploy a Docker container on one of their VMs.
If you want to modify/develop on Cassandra rather than just pulling the latest version, you can build the container froms scratch using the following steps.
docker build -t mcda ..docker run -e PASSWORD=mypassword -p 4000:80 mcda.Cassandra is written in Python 2.7, and works by communicating with OpenRocket using JPype. The webapp functionality is written in Flask and primarily contained in app.py. Simulation related functionality lives in monte_carlo.py, OpenRocket integration in orhelper.py, and HTML templates in templates/.
Every time a simulation is requested, Cassandra starts a simulation in a new thread, which incrementally outputs the results of each simulation in JSON to a .cass file. To generate the highlights CSV and dispersion plot, Cassandra incrementally reads this .cass file and extracts relevant information. After the simulation is aborted or restarted, the .cass file is deleted, and all record of the simulation lost.
Cassandra is open source software. The Python and OpenRocket integration is distributed under the GPL v3 license, while the frontend is distributed under the MIT license.
Content type
Image
Digest
Size
1.3 GB
Last updated
over 8 years ago
docker pull nanogru/cassandra