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.3.0.tar.gz (11.2 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.3.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dymion-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f47a325c7f2b51a23a24e2be20e0073e1196d77bc408e40467c6002ad933dd4e
MD5 8c7d8ff3ce0f54b78eefba303e84d00e
BLAKE2b-256 31e5dd1292b9a30f2c5b1580293b79c0e9840f84d7fc3a7e1a5ec3a7ab368a8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dymion-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8da1eb943657cbe99374435d9dabaa4fad5356bfcff192af61a58aa0ccdc30
MD5 c4503e8bc6b506046e4de45851d41307
BLAKE2b-256 9bcc17d22dcdac8b809caeb853008d09307f756f2ec4120b5a6ed9eb13796ae7

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