Skip to content

Dqrshan/maglev-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maglev Train Simulation using Python & OpenGL

A 3D simulation of magnetic levitation (maglev) train physics using Python and OpenGL.

Overview

This project simulates the magnetic levitation physics of a maglev train system, visualizing the electromagnetic forces, train movement, and track interactions in a 3D environment.

Features

  • Real-time 3D visualization of maglev train dynamics
  • Physics simulation of electromagnetic levitation forces
  • Interactive camera controls to view the simulation from different angles
  • Adjustable parameters for magnetic field strength, train mass, speed etc.
  • Track editor to create custom maglev routes

Requirements

  • Python 3.7+
  • PyOpenGL
  • NumPy
  • PyGame (for window management)

Installation

  1. Clone the repository:

    git clone https://github/com/Dqrshan/maglev-simulation.git
  2. Navigate to the project directory:

    cd maglev-simulation
  3. Virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  4. Install the required packages:

    pip install -r requirements.txt
  5. Run the simulation:

Preview

Screenshot of Maglev Train Simulation Initialization

Screenshot of Maglev Train Simulation in Motion

About

High-performance OpenGL physics simulation with interactive controls and real-time 3D visualizations of magnetic levitation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages