Viper
From The FEniCS project
Viper is a minimalistic scientific plotter and run-time visualization module. Viper has support for visualizing meshes and solutions in DOLFIN:
Contents |
[edit]
Examples
from dolfin import *
# Plot a mesh
mesh = UnitCube(16, 16, 16)
plot(mesh)
# Plot a scalar function
u = Function("poisson.xml")
plot(u)
# Plot a vector function as a displacement field
d = Function("elasticity.xml")
plot(d, mode="displacement")
# Save as png
p = plot(mesh)
p.write_png("mesh.png")
# Save as VTK
p = plot(u)
p.write_vtk("poisson.vtk")
|
|
|
[edit]
Features
- Light-weight and minimalistic
- Extended keybindings
- Interactive
- Save as png, VTK
- 2D and 3D
- Scalar, vector, and displacement fields
- Multiple input formats
- In PyCC mode; direct plotting of numpy arrays over DOLFIN meshes
- Can be used as standalone plotting application, or used as part of PyDOLFIN
[edit]
Main Author
[edit]
License
Viper is licensed under the GNU LGPL.
[edit]
Dependencies and requirements
Viper depends on VTK with Python support.




