Overview¶
FieldAnimation is a Python package to represent vector fields through particles that move along the flow lines of the field at a speed and color proportional to its modulus.
A background image can be shown to add information for the interpretation of the results.
An example application with interactive control of speed, color and number of animated particles is available in the examples direcory.
FieldAnimation is written in Python and supports 3.6+
Requirements¶
The current version of FieldAnimation relies on PyOpenGL and numpy. The rendering of the OpenGL image must be carried out by a library that handles windows, input and events like GLFW or PyQt
This version of FieldAnimation relies on the following packages:
$ cat ../../requirements.txt
# Requirements automatically generated by pigar.
# https://github.com/damnever/pigar
# Following packages are needed to run the example application
#Pillow >= 5.1.0
#imgui >= 0.1.0
#glfw >= 1.6.0
PyOpenGL >= 3.1.0
numpy >= 1.14.3
pip >= 9.0.1
setuptools >= 39.0.1
Getting started¶
To see how FieldAnimation looks like install it from PyPi or download / clone it from https://bitbucket.org/bvidmar/fieldanimation and install it using pip.
For the impatient:
$ pip3 install fieldanimation
To run the example application install also Pillow, imgui and glfw:
$ pip3 install Pillow imgui glfw
$ python3 -m fieldanimation.examples.app -g
The source code of FieldAnimation is available at https://bitbucket.org/bvidmar/fieldanimation.