Skip to content
Branch: master
Find file History
Latest commit 8d352cc Jan 20, 2020
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
airplanes.py
aspring.py
brownian2D.py 2020.0.1 Jan 8, 2020
cell_colony.py
doubleslit.py
gas.py
gray_scott.ipynb
gyroscope1.py
gyroscope2.py
hanoi3d.py
multiple_pendulum.py
particle_simulator.py
pendulum.py
run_all.sh
tunnelling1.py
tunnelling2.py 1.0 Dec 19, 2019
turing.py
volterra.ipynb
volterra.py
wave_equation.py

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-examples.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_colony
cell_clony.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.