Skip to content

Latest commit

 

History

History
99 lines (77 loc) · 2.52 KB

File metadata and controls

99 lines (77 loc) · 2.52 KB

Physics Simulation Engine

A physics-based simulation engine that models and animates fundamental classical systems using numerical methods and real-time visualization.


Purpose

This project serves as a structured implementation of core physics concepts through code. Each simulation represents a different physical system built from first principles and solved numerically.


Learning Approach

  • Understand the physics behind each system
  • Translate equations into code
  • Simulate using time-step integration
  • Visualize results through animation
  • Iterate and refine for accuracy

Simulations

  • Projectile Motion — 2D motion under gravity
  • Simple Pendulum — Angular oscillatory motion
  • Spring-Mass System — Harmonic motion using Hooke’s Law

Core Concepts

  • Time-based simulation (dt stepping)
  • Numerical integration (Euler / Semi-Implicit Euler)
  • State modeling (position, velocity, acceleration)
  • Trigonometry in motion systems
  • Oscillatory dynamics

Features

  • User-defined input parameters
  • Real-time animation using Matplotlib
  • Multiple physics systems in one program
  • Clear separation of logic and visualization

Tech Stack

  • Python
  • Matplotlib
  • Time taken to make this project: 2 days


Goals

  • Build strong intuition in physics simulation
  • Develop ability to model real-world systems
  • Strengthen problem-solving through implementation
  • Prepare for advanced domains like simulation, AI, and systems

Future Improvements

  • Add damping and friction
  • Energy visualization (Kinetic + Potential)
  • Phase space plots (position vs velocity)
  • Double pendulum (chaotic motion)
  • Convert into a modular engine architecture

Author

Master-Zero1