viper

Langue: en

Version: 257952 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

Viper - the simple FEniCS run-time plotter

SYNOPSIS

viper [OPTIONS]

DESCRIPTION

Viper is a minimalistic scientific plotter and run-time visualization module. Some its the features includes:


* 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 

OPTIONS

-h, --help
Display help text and exit.
-i file, --input file
Specify input file.
-o file, --output file
Specify output file.
-l lut file, --lut lut file
Specify lookup table (LUT) file.
-d data file, --data data file
Specify data file.

EXAMPLE

Viper has support for visualizing meshes and solutions in DOLFIN:


       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")


BUGS

Send comments, questions, bug reports etc. to viper-dev@fenics.org.

LICENSE

Viper is licensed under the GNU LGPL Version 2.1.

AUTHOR

Viper is written by Ola Skavhaug <skavhaug@simula.no>. This manual page is written by Johannes Ring <johannr@simula.no>.