Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thermodynamics Sandbox

An interactive 2D physics simulation built in C++ that visualizes kinetic theory and thermodynamic principles in real-time.

Features

  • Real-Time Particle Kinematics: Simulates elastic collisions, gravity, and momentum using custom 2D physics.
  • Interactive Dashboard: Powered by Dear ImGui to adjust system states dynamically.
  • Direct State Control: Force-set exact values for Temperature (T), Pressure (P), and Internal Energy (U) and watch the gas particles automatically scale their velocities to match.
  • Live Telemetry: Continuously calculates derived quantities including RMS Speed, Average Kinetic Energy, and Mean Free Path.
  • Environment Adjustments: Scale the container dimensions, tweak particle mass, alter the time scale, or adjust collision restitution on the fly.

Dependencies

  • C++17 Compiler
  • CMake (3.10+)
  • GLFW (Window management and OpenGL context)
  • Dear ImGui (Immediate mode UI)

Building from Source

Ensure you have CMake and your preferred C++ compiler installed (e.g., MSVC, GCC, or Clang).

  1. Clone the repository:
    git clone [https://github.com/YOUR_USERNAME/thermodynamics-simulation.git](https://github.com/YOUR_USERNAME/thermodynamics-simulation.git)
    cd thermodynamics-simulation
    

Acknowledgements

  • Disclaimer: Portions of the code and documentation in this project were generated and refined with the assistance of AI tools.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages