Physics Demonstration Suite is a group of physics demonstrations using the Flask architecture and maplotlib.animations to bring to physics concepts. An explanation and follow up questions are provided with each maplotlib.animation. Updates will be provided as more demonstrations are created.
To run the suite locally, make sure you have the latest Python distribution installed on your computer. In an empty director, follow these steps:
- Run
git clone https://github.com/asec22/physicsdemos.git. - Run
python -m venv ./venvto create virtual environemnt. - Run
./venv/scripts/activateto activate the virtual environment. - Change into the physicsdemos directory. Run
python demo.pyto start the server and application. - Open and browser and open http://127.0.0.1:5000/.
The suite will open to a list of demonstrations avaialable. Click on the one you want to explore. Enter the variables and click Submit. The demonstration will render, use the buttons on the bottom of the demonstration to see the action of the object in the physics demonstration. Below the demonstration, an explanation of the motion of the objects and some questions for thought are included.
With adjustments, you can deploy this to external cloud server. Just follow the instructions for the server you wish to deploy the demostrations. A current deployment example is on an Apache cPanel deployment: https://app.lifespectralsurvey.com/physicsdemo.