Skip to main content

Simulator dynamic flight rocket

Project description

📄 About

PyRocketSim is an open-source trajectory analysis tool designed for post-flight simulation of rocket dynamics. Built with Python and C++ through pybind11, this library specializes in reconstructing flight paths after launch using predefined physical parameters. The core simulation implements 3DOF linear dynamics (position, velocity, acceleration) with variable mass calculations, accounting for thrust curves and basic aerodynamic drag. Unlike real-time systems, PyRocketSim operates in post-processing mode, enabling analysis through its visualization toolkit that generates trajectory plots, velocity profiles, and phase separation markers (thrust/coast/recovery).

The tool serves as an educational platform for aerospace students and rocketry enthusiasts, providing a sandbox for testing simplified physics models without actual launches. Its hybrid architecture combines Python's visualization (Matplotlib) with C++'s computational efficiency. Current modeling focuses on suborbital trajectories with fixed atmospheric density, ideal for demonstrating fundamental concepts like mass flow and drag. Future development may expand features while maintaining the educational focus on accessible post-flight analysis.

🚀 Features

  • Post-Flight Trajectory Reconstruction – Analyze completed launches using telemetry data or simulation parameters
  • 3DOF Flight Dynamics – Models linear motion (X-Y position, velocity) with thrust, drag, and gravity
  • Python Visualization – Generate plots of altitude, velocity, and flight phases
  • Educational Focus – Designed for teaching rocket dynamics, not mission-critical applications

💻 Installation

1. Pre-built binaries (recommended)

1.1. Windows 11

pip install PyRocketSim

Available for Python 3.10, 3.11, 3.12, and 3.13

1.2. Ubuntu 24.04

pip install PyRocketSim

Available for Python 3.10, 3.11, 3.12, and 3.13

2. From source

2.1. Windows 11

Prerequisites: Visual Studio 2022 with C++ tools

2.2. Ubuntu/Debian

Prerequisites: git, cmake, gcc/g++, make, python3, python3-pip (for point 2.2.3.)

2.2.1. Install Dependencies (if necessary)
sudo apt update
sudo apt install git cmake g++ make python3 python3-pip
2.2.2. Clone & Build Library
git clone --recursive https://github.com/LiptonVova/PyRocketSim.git
cd PyRocketSim
mkdir build
cd build
cmake ..
make
2.2.3. Install Python Package (editable mode)
cd ..
pip install -e .

🧪 Testing

Test.py you can find on GitHub

📌 System Requirements

  • OS: Windows 11 or Ubuntu 24.04
  • Python: 3.10 or higher

💡 Dependencies

  • NumPy
  • Matplotlib

💾 PyPI

You can find the project on PyPI here

📜 License

Project PyRocketSim is distributed under the MIT license

🔨 Support

For issues and questions, please open an issue on our GitHub repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrocketsim-1.0.1.tar.gz (4.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrocketsim-1.0.1-cp313-cp313-win_amd64.whl (99.9 kB view details)

Uploaded CPython 3.13Windows x86-64

pyrocketsim-1.0.1-cp312-cp312-win_amd64.whl (99.9 kB view details)

Uploaded CPython 3.12Windows x86-64

pyrocketsim-1.0.1-cp311-cp311-win_amd64.whl (99.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pyrocketsim-1.0.1-cp310-cp310-win_amd64.whl (98.3 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file pyrocketsim-1.0.1.tar.gz.

File metadata

  • Download URL: pyrocketsim-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pyrocketsim-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e41d762032f421656c4fccfd3e20bb7ff3f175aa3ee97ac1a0ff2372f00b0737
MD5 437b2810a67b821c2ec10f5f3ca257ba
BLAKE2b-256 c1f27ee8d2ee6494d6d7b306cec13d94379316d2d2032d318c0c16d98b977f43

See more details on using hashes here.

File details

Details for the file pyrocketsim-1.0.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pyrocketsim-1.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d1313c4fa0b3907e62d7b75ce3a921bcde59fa4d69f0db31de35a9dbd9b51f73
MD5 30ab082413fcd8652a9d419be025b85e
BLAKE2b-256 ca07256a4e007f6508a5225b6efe994228a05b09e10704691ae395888c2f7f97

See more details on using hashes here.

File details

Details for the file pyrocketsim-1.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pyrocketsim-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 584de95dd5b501eede30869b4ed762266fe758b73f086bafa307711a0604aa9b
MD5 4f224bf4c7cfd435690c7b1c1dccec54
BLAKE2b-256 e46ad292fa361e32ac64bc75870af7be8dd47be51d2bb215f1bc066ab482349d

See more details on using hashes here.

File details

Details for the file pyrocketsim-1.0.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pyrocketsim-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5b4ef4b5f19ecc3cbb624ff695d0b842f184111f86fc3b2882419b2e18263422
MD5 d60958b47d8a068e7e4ab3930fc33d18
BLAKE2b-256 0b51d1a24cd59320d6f5b5495c061a6f940999eea5df919fd1d6b6b0cf9a4ff5

See more details on using hashes here.

File details

Details for the file pyrocketsim-1.0.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyrocketsim-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 58a6f629da39db93063ddfa471c657eb54858e90e7e5cf9204fa8d70f540921a
MD5 1d01b38b8d6c912aaa4091929e4a6d4b
BLAKE2b-256 2aea96104334d66e41dd4828d56e89abbe4d3784b7d73c96859e2ca935b2adcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page