ParaView
| Affiliation | OMNI Cluster |
| Billing |
Free of charge |
|
Documentation |
|
| Pre-installed on the cluster |
5.9.0 & only on the login node |
General
ParaView is an open-source, multi-platform data analysis and visualization application.
Caution: Although ParaView is available accross all nodes, the application works only on the login nodes.
ParaView version 5.9.0 is installed on the OMNI cluster. To use it, you need to load the module paraview :
module load paraviewThe ParaView documentation can be found here.
ParaView Desktop
ParaView provides a powerful graphical user interface (GUI) to explore and filter simulation data. It is capable of rendering images and videos with user defined color and configuration settings.
In order to use ParaView Desktop on the OMNI cluster, the login must be done via SSH with X support, i.e. with the -X option. The ParaView GUI can then be called up as follows:
module load paraview
paraview --mesa &The option --mesa is required because Mesa support is necessary.
Also note that in this example ParaView is started in the background by appending &. This is not necessary, but allows you to continue working with the same console while the ParaView window is open. You can find more information on foreground and background processes in our Linux tutorial, for example.
Python interface
ParaView offers a Python application programming interface (API) to automate more extensive data processing or reoccuring tasks. You can either write such a python script yourself (see ParaView’s Python API documentation) or record the sequence from a ParaView session.
Caution: When running a script, keep in mind that you share the login nodes with everyone and do not run compute-intensive tasks for longer periods of time. We reserve the right to kill long-running processes without prior warning if we find that they slow down the login nodes.
Example script
The following example script uses the ParaView Python API to generate a sphere and save an image:
from paraview.simple import *
sphere = Sphere()
rep = Show()
ColorBy(rep, ("POINTS", "vtkProcessId"))
Render()
rep.RescaleTransferFunctionToDataRange(True)
Render()
WriteImage("parasphere.png")To run this example, save the code on the cluster as DistributedSphere.py and call the script on one of the cluster login nodes with the following commands:
module load paraview
pvbatch --mesa DistributedSphere.pyThe ParaView Python API also supports parallel execution using MPI, in the following example 4 parallel processes are used:
module load paraview
mpiexec -np 4 pvbatch --mesa DistributedSphere.py