Skip to main content

A professional physics library for kinematics and dynamics. Remake of Cinetica.

Project description

🪐 Dymion

Dymion is a modern, high-performance Python library designed for professional physics simulations, focusing on Kinematics and Dynamics.

Built with a hybrid approach, it offers both a clean Object-Oriented API for complex simulations and a Functional API for quick mathematical calculations.


🚀 Key Features

  • Vector-Centric: Built-in 2D/3D Vector engine with native math operator support.
  • Kinematics Engine: Easily simulate linear motion (MRU, MRUA) using the Particle class.
  • Dynamics Core: Implementation of Newton's Laws with the Body class, supporting mass and multiple force accumulation.
  • Professional Standards: Fully type-hinted, follows the src layout, and is ready for integration with scientific stacks like NumPy.
  • Scalable Architecture: Designed to be easily extended with Circular Motion, Work, and Energy modules.

📦 Installation

To install Dymion in development mode, run:

git clone https://github.com/Elabsurdo984/dymion.git
cd dymion
pip install -e .

💡 Quick Start

1. Simple Kinematics (The Functional Way)

If you just need a quick calculation without managing state:

from dymion import Vector, calculate_position

initial_pos = Vector(0, 0, 0)
initial_vel = Vector(0, 20, 0)
gravity = Vector(0, -9.81, 0)

# Calculate position after 2 seconds
final_pos = calculate_position(initial_pos, initial_vel, time=2.0, acceleration=gravity)
print(f"Position at 2s: {final_pos}")

2. Full Physics Simulation (The OOP Way)

For complex scenarios involving masses and forces:

from dymion import Vector, Body

# Create a 10kg body at rest
crate = Body(mass=10.0, position=Vector(0, 0, 0))

# Apply multiple forces
crate.apply_force(Vector(50, 0, 0))   # A push
crate.apply_force(Vector(0, -98.1, 0)) # Gravity (10kg * 9.81)

# Step the simulation
crate.update(dt=0.1)
print(f"Crate Velocity: {crate.velocity}")

🛠 Project Structure

dymion/
├── src/
│   └── dymion/
│       ├── core/          # Base Vector engine
│       ├── kinematics/    # Motion study (linear, circular)
│       └── dynamics/      # Forces, Mass, and Newton's Laws
├── tests/                 # Unit tests (Pytest)
└── pyproject.toml         # Modern build configuration

⚖ License

This project is licensed under the MIT License - see the LICENSE file for details.


Developed with ❤️ for the physics community.

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

dymion-0.5.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

dymion-0.5.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file dymion-0.5.0.tar.gz.

File metadata

  • Download URL: dymion-0.5.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dymion-0.5.0.tar.gz
Algorithm Hash digest
SHA256 cece83fdfe71b0059db8c379966b3092e2b85292ed01a9f203bc875f743560b7
MD5 e0812efd765ace2d125a10fd191ce541
BLAKE2b-256 11dcc942c5fe1cdba3668e6f725ef841b2cc6fcba8152aecffc13366c10c3ecb

See more details on using hashes here.

File details

Details for the file dymion-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: dymion-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dymion-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a27390e286b8c42783c786ea35fa3aabaa82b49445bf71f7b6303059e3857b7e
MD5 a9517dc06db2fcaa6b8d916c60451749
BLAKE2b-256 36309701d6f9f80126b893dcd728e8c38255a416c54a2d577221fab8d1e033ca

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