Skip to content
Branch: master
Find file History
Latest commit 164008e Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md 3.4 Jun 24, 2019
airplanes.py 4.0 Jul 17, 2019
aspring.py jupyter support May 28, 2019
brownian2D.py jupyter support May 28, 2019
cell.py vers bump Mar 11, 2019
cell_main.py jupyter support May 28, 2019
doubleslit.py 4.3 Aug 19, 2019
gas.py 4.0 Jul 17, 2019
gray_scott.ipynb 4.2 Aug 13, 2019
gyroscope1.py 4.0 Jul 17, 2019
gyroscope2.py jupyter support May 28, 2019
hanoi3d.py 4.0 Jul 17, 2019
multiple_pendulum.py 4.1 Aug 4, 2019
particle_simulator.py 4.0 Jul 17, 2019
pendulum.py Removed trailing spaces in examples/simulations/pendulum.py May 21, 2019
run_all.sh fixes Jun 22, 2019
tunnelling1.py probepoints Apr 9, 2019
tunnelling2.py jupiter support May 28, 2019
turing.py 4.1 Aug 4, 2019
volterra.ipynb 4.2 Aug 13, 2019
volterra.py fixes Jun 22, 2019
wave_equation.py 4.0 Jul 17, 2019

README.md

Simulation examples

In this directory you will find a set of examples of a number of simulations.

git clone https://github.com/marcomusy/vtkplotter.git
cd vtkplotter/examples/simulations
python example.py  # on mac OSX try 'pythonw' instead

(click thumbnail image to get to the python script)

aspring
aspring.py
Simulation of a spring in a viscous medium.
brownian2d
brownian2D.py
Simulation of the Brownian motion of a large red particle in a swarm of small particles.
The spheres collide elastically with themselves and with the walls of the box.
cell_main
cell_main.py
Simulation of three bacteria types that divide at a specified rate. As they divide they occupy more and more space.
doubleslit
doubleslit.py
Simulation of the classic double slit experiment.
Any number of slits of any geometry can be described. Slit sources are placed on the plane shown as a thin grid.
Can simulate the Arago spot, the bright point at the center of a circular object shadow.
gas
gas.py
A model of an ideal gas with hard-sphere collisions.
gyro1
gyroscope1.py
Gyroscope hanging from a spring.
gyro2
gyroscope2.py
Gyroscope sitting on a pedestal at one end.
The analysis is made in terms of Lagrangian mechanics.
mpend
multiple_pendulum.py
Simulation of an elastic multiple pendulums with viscous friction.
hanoi
hanoi3d.py
Solve the Tower of Hanoi puzzle (contributed by G. Jacquenot).
airplanes
airplanes.py
Two acrobatic planes casting shadows and leaving a trail.
ruth
particle_simulator.py
Simulates interacting charged particles in 3D space.
tunneling1
tunnelling1.py
Quantum Tunnelling effect using 4th order Runge-Kutta method with arbitrary potential shape.
The animation shows the evolution of a particle of relatively well defined momentum (hence undefined position) in a box hitting a potential barrier. The wave function is forced to be zero at the box walls.
tunneling2
tunnelling2.py
Quantum-tunnelling effect integrating the Schroedinger equation with 4th order Runge-Kutta method. The animation shows the evolution of a particle in a box hitting a sinusoidal potential barrier.
turing
turing.py
Visualizing a Turing system of reaction-diffusion between two molecules.
grayscott
gray_scott.ipynb
A GPU simulation of system of reaction-diffusion between two species.
wave
wave_equation.py
Simulate a collection of discrete coupled oscillators. We use this as a model of a vibrating string and compare two methods of integration: Euler and Runge-Kutta4.
pianoplayer Finding and animating the optimal fingering to play a piano score with
pianoplayer 2.0
You can’t perform that action at this time.