A ParaView tutorial

In this tutorial, we explain how you can use several cores with ParaView for a better interactivity when visualizing huge quantities of data

Article mis en ligne le 23 janvier 2018
dernière modification le 31 janvier 2018
logo imprimer

In ParaView, the prefix "Para" stands for "parallel" : How can we activate parallelism in ParaView ?

How to use this tutorial

  • This tutorial works only with the release 5.4.1 of ParaView
  • If you have data to be visualized by ParaView, you can use your data.
  • If you don’t have data yet, you can use some little scripts [1] written in python :
    • first, copy the scripts to your personal disk space :
    • When ParaView is started (see lower), you can read one script with the menu item : Tools/Python shell/Run script

Starting a graphics session

ParaView must be used from a graphics session. Because we want to visualize very big datasets, we probably need more memory than the default. We must also specify that we want more than 1 core.
The complete story is here. You can use the following command to start a graphics session :

  • using 25% of the graphics node’s cores
  • using 25% of the graphics node’s memory
  • with a comfortable display (if the width and the height of your workstation is sufficient)

Starting a visualization server

The ParaView gui [2] cannot use several cores. Only the readers and the visualization engines can use several cores. So we must start a server process, using mpi to make it to work in parallel. As we have 5 cores in this session, let’s dedicate 4 of them to server, keeping 1 core for the gui.
Open a terminal and type the following :

Starting the ParaView gui

Start ParaView version 5.4.1, using the main graphics menu : put the mouse over the root window, click with the right button, and choose the item Visualization_Applications/Paraview_5.4.1

Configuring the connection

The procedure described here should be done only the first time : the configured connection(s) will be kept from session to session.

  • When Paraview is started, click on the menu item : File/connect
  • A window entitled Choose Server Configuration opens, click the button Add Server
  • A window entitled Edit Server Configuration opens with several fields, all fields being already filled. Modify the value of the field Name, writing the name you choose for the connection : say my_pvserver, then click the button Configure
  • A window entitled Edit Server Launch Configuration opens, just click the button Save

Connecting to the pvserver

If not already done, start Paraview and click the menu item : File/connect, then select the my_pvserver line and click the Connect button. You are now connected to the pvserver, as PNGindicated in the Pipeline browser window (see figure). Besides, if you look at the window from which you launched pwserver, you should see this message :

Loading and displaying data

Figure obtained with 4 processors, using the python script rectilinear.py

You can now load your datafiles, your state files, your python scripts, exactly as usual.
Warning : to read a python script, you must use the menu item : Tools/Python shell/Run script.
Data will be read by pvserver, and rended and displayed by ParaView. You should have a new property available with your data : vtkProcessId

You can easily display the domain decomposition made pvserver for reading your data (see the figure).

If you execute a filter, it will be executed by pvserver, thus using several cores, which can lead to faster execution if you have a huge quantity of data to treat

Notes :

[1We thank M. Jean Favre, from CSCS, who authorized us to share those scripts

[2gui = Graphics User Interface




pucePlan du site puceContact puceEspace rédacteurs puce

RSS Valid XHTML 1.0 Strict

2004-2018 © CALMIP - Tous droits réservés
Site réalisé sous SPIP
avec le squelette ESCAL-V3
Version :
Version Escal-V4 disponible pour SPIP3.2 Hébergeur : INP Toulouse