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.1.0.tar.gz (9.4 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.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dymion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87c2ef1c8b34c877289d32e2abac4b3c8d3d9d00ed788d652c7823711e7d5104
MD5 48043fe37bc8080e3774f5c03e7927cb
BLAKE2b-256 6367872848e88359c7d759e934ee4416f3d7e6a30b70fbf36185c7d3a97732f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dymion-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db6ca0f55591da341006dadd07635c43c122ce3308512ffd2ad80b2dffdf9aa7
MD5 5301174b458925d8f7ba84a001750844
BLAKE2b-256 158995718c8f8ff5eff557d83ef33dbda1c82d24f0cd160f68c1c88f9ecb3d26

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