pygame
PyOpenGL
PyOpenGL_accelerate
A simple example of a time-dependent vector field can be found in the example.py
file. To quickstart this example, run:
pip install vis3dvf # installs vis3dvf (and dependencies)
git clone https://github.com/LukasDrsman/vis3dvf.git # fetches repo with example.py
cd vis3dvf
python3 example.py # runs example.py
- Figure constructor, necessary for rendering.
- "Public" methods:
add(plot)
- adds plot object to the render que (plot object must have an implementedrender()
method)show()
- creates a window and starts rendering
- Static vector field plot object constructor
- Parameters:
u = u(x,y,z)
- the x component of the vector field at (x,y,z) (function)v = v(x,y,z)
- the y component of the vector field at (x,y,z) (function)w = w(x,y,z)
- the z component of the vector field at (x,y,z) (function)
- Time-dependent vector field plot object constructor
- Parameters:
u = u(x,y,z,t)
- the x component of the vector field at (x,y,z) and time t (function)v = v(x,y,z,t)
- the y component of the vector field at (x,y,z) and time t (function)w = w(x,y,z,t)
- the z component of the vector field at (x,y,z) and time t (function)