Ir a versión en español
Paticle dynamics simulation with three.js (WebGL)
Author: Jose Manuel Sanz. (june 2014) Source code under Licencia H
Chrome, Firefox or Explorer 11 browser required. Doesn't work on systems without WebGL support (IOS, for example).
Keyboard commands:
- Forward: W, up cursor or left mouse button
- Backward: S, down cursor or right mouse button
- Left: A or left cursor
- Right: D or right cursor
- Up: R
- Down: F
- Q: camera point of view follows mouse movements (press Q again to deactivate)
- P: stops or resumes the simulation
- Note: actions associated to mouse movements and clicks are not active on the upper part of the window
Parameters menu
- Velocidad: simulation speed
- Sombras: activate shadows on the floor
- Suelo: visible floor
- Lineas: visible lines between objects
- Flechas: velocity vectors visible
- Para: stops simulation
t is the simulation time
e is the total kinetic energy
w is total work W, with dW=m*v*dv (not an exact value due to Euler integration method)
e+w sum of kinetic energy and work. Should be constant with conservative systems, with small errors due to Euler integration method
References
Javascript three.js library, for easy WebGL development
Book about three.js.
If the simulator is not running on another tab, you can load it here.