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.4.0.tar.gz (12.7 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.4.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dymion-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b066563b624ec3abd1cc8936e753e348f0fa0ac9e99c303e7dda4313d7360fb5
MD5 20ac413a6c17da820d1eadb1655123d3
BLAKE2b-256 fdf0269190ecf5896993d1fe313d1f2fac3da78454fa1850b0c48c9ecf2bfa9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dymion-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d57ede4ca0e68dde4bb4994bc41dfec9e31bac4078e3a243c454473c741db5
MD5 c11023e71ac0e8ed7d161cfa00028345
BLAKE2b-256 703d71c8e1f84e3e7e3f374077661181f7f3051c0bc84aea5bb4e3180862fed0

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