A bunch of simulations to try on PoCs distinct kinds of simulation editors.
https://jsanchezamai.github.io/simulator-lab/
This is a PoC on PhET. I just download the code and set a few sh scripts to run simulations.
It has been uploaded to gh-pages on github.
At this point, you can just see “Download a demo” section to get running sims.
Just HTML5 for interactive simulating things and stories. See online:
See a list of demos on: phet sims
Run download-sample.sh with proper repo name.
sh download-sample.sh graphing-lines
It will run build scripts after downloading. Then it will run the run script.
If there are dependencies, re-run build script after downloading (with download-smaple.sh) them.
At the end, you can always run builded simulations by:
Then run-created.
sh run-created-simulation.sh neuron
Use add_new_simulation.sh, then build_simulation.sh.
Then run-created.
Get general idea on Creating PhET Interactive Simulations Activities approach guided inquiry.
See PhET Development Overview.
See PhET Source code.
Source code and Dependencies
Our simulations and dependencies are hosted publicly on GitHub https://github.com/phetsims
We have 40+ repositories for the simulations and their dependencies, all of which can be found here: https://github.com/phetsims?tab=repositories.
Below is a list of some of the repositories that contain libraries and frameworks upon which the individual simulations depend.
Creating a New Sim After checking out the dependencies and installing grunt-cli in the preceding instructions, you can create your own simulation using the template.
cd phetsims git clone https://github.com/phetsims/simula-rasa.git
cd perennial npm install
grunt create-sim –repo=NAME –author=AUTHOR
For instance, if the simulation is going to be named Acceleration Lab and the author is Sam Reid from PhET Interactive Simulations, then you could put
grunt create-sim –repo=acceleration-lab –author=”Sam Reid (PhET Interactive Simulations)”
Once the environment is set, you can download plenty examples from:
Checking out the HTML5 code from GitHub
Our example-sim repository README.md includes a list of git clone commands that will check out the example simulation and all of its dependencies. https://github.com/phetsims/example-sim
And to clone some of our in-development sims: git clone git://github.com/phetsims/forces-and-motion-basics.git git clone git://github.com/phetsims/build-an-atom.git
All repositories should be cloned into the same directory so that relative paths will work.
Here is a full list of all phetsims repos. If the sim won’t launch due to a missing dependency, you may need to check out some more of these repos: https://github.com/phetsims?tab=repositories
Also note that this will check out the ‘master’ branch of all of our dependencies, which may create breaking changes intermittently if you remain up-to-date with them. If you run into any breaking changes, please notify us immediately. Also, we recommend developing your code on a public repo such as GitHub to enable us to test and update your simulations as common dependencies are changed.