FieldAnimation Python Package Documentation¶
Foreword¶
FieldAnimation has been developed by two programmers working in the Aerial Operations group of the IRI Research Section at OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale.
Python is their favourite programming language since 2006.
The authors:
Nicola Creati, Roberto Vidmar
What is FieldAnimation?¶
It 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 in a nutshell¶
- create a
fieldanimation.FieldAnimation
instance- call its
fieldanimation.FieldAnimation.draw
method in the main rendering loop
Dependencies¶
It 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.
More¶
Warning
This code has been tested only on Linux (Ubuntu 18.04.1 LTS and Ubuntu 17.10) but should work also on Mac and Windows.
Warning
This is work in progress!