Skip to content

jhaayushkumar/physanim

Repository files navigation

PhysAnim

PhysAnim is a Python library for physics simulations and animations.

Installation

pip install physanim

For Jupyter support:

pip install physanim[interactive]

Usage

Simple Animation

import physanim
from physanim.systems import DoublePendulum

sim = DoublePendulum()
physanim.animate(sim)

Interactive Sliders (Jupyter)

from physanim import interact
from physanim.systems import DoublePendulum

interact(DoublePendulum, L1=(0.5, 3.0), m1=(1.0, 5.0))

Links

License

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

About

A lightweight Python library for simulating and animating chaotic physics systems like double pendulums and N-body orbits.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors