VDI nodes

Two large memory graham remote desktop machines pre/post-processing

access to all files (don’t have to transfer data back and forth)

full details on docs.computecanada.ca [https://docs.computecanada.ca/wiki/VNC]

Accessing

Connect via VNC (TigerVNC viewer recommended) to gra-vdi.computecanada.ca

Windows and OS X

Download latest version from TigerVNC website [https://tigervnc.org/]

releases (at top) -> binaries are available from sourceforge (end of changes list)

Linux

Install with your package manager

Debian and Ubuntu: sudo apt-get install tigervnc-viewer

Fedora: sudo yum install tigervnc

Software

Compute Canada stack is not loaded by default

Compute Canada stack: module load CcEnv StdEnv

Nix stack: module load nix

Limited number of local-only packages: module load clumod

ParaView

Personal computer

Available for Windows, OS X, and Linux

Windows and OS X

Download latest version from ParaView website [https://www.paraview.org/download/]

MPI means in can use multiple CPUs (non-MPI is available on Windows so you can use it and not have to install the separate MS-MPI package unless you want to)

AMD64 and x86_64 are synonyms that both means 64bit version for AMD or Intel chips (AMD is just a refernce to the fact that AMD developed the x86_64 instruction set)

arm64 means 64bit version for ARM chips (currently just the Mac M1)

older version may work if newer fails on older OS or graphics card

Linux

Install with your package manager (can also download as above)

Debian and Ubuntu: sudo apt-get install paraview

Fedora: sudo yum install paraview

VDI

Available in the Compute Canada StdEnv after loading the gcc module

$ module load CcEnv StdEnv gcc paraview

or install in your personal Nix environment (this only has to be done once)

$ module load nix
$ nix-env -iA nixpkgs.paraview

Tutorial

Working through the ParaView tutorial [https://www.paraview.org/Wiki/The_ParaView_Tutorial] is one of the quickest and easiest ways to get up-to-speed on ParaView.

basic usage (what we will be going over)

batch python scripting

visualizing large models

$ cp -r /home/tyson/ParaView .

Basis of visualization

map raw data to visual data

spacial and temporal data

topology and types of grids

User interface

menu bar

tool bars

pipeline browser

properties panel

view

Basic interface

creating a source

interacting with a 3d view

modifying visualization parameters (filter, display, view)

undo and redo (regular vs camera)

Loading data

opening file (selecting which variables to load)

representation and field coloring

scaling

Filters

selecting filters (toolbar, menu, and search)

applying a filter (contours, slices)

Multiview

creating a multiple views

linking cameras

re-arranging the views

Vector visualization

streamlines

tubes and glyphs

surface LIC

Volume rendering

Enabling

Transfer function

Time

Loading temporal data

Temporary interpolation

Output

Annotations

Screenshots

Video

Plotting

histogram plot

plot over a line in space

plot over a curve

plot over time

Selections

Query and view based selections

Data vs spatial selections

Selection labels

Extract selection and spreadsheet

Animation

Properties

Keyframes

Tracks

Exercises

Plotting Exercise

The purpose of this exercise is to practice using paraview by duplicating this visualization of the temperature above disk, and this plot of pressure and temperature above disk.. The steps required to do this are as follows:

Load the disk_out_ref.ex2 file.

Clip it with a plane through the origin in the +X direction.

Display the temperature and the grid on it.

Change the color map to black-body radiation to better represent temperature and label the scale Temperature.

Plot pressure and temperature one grid point above the center point (note directions in filter display settings regarding use of ctrl to snap plot line to grid points) with proper labels (remember you have to set different chart axis to separate scales).

Add a text source to add Submission: <Your Name> (note that you can work around an export scene centering bug by switching to coordinates after positioning it using the window location).

Try saving both a screenshot and exporting a pdf scene and then zoom in on them both to see what the difference is (on gra-vdi you can use the browser to view them by going to file:///home/<username>/ and using ctrl-+ to zoom in and ctrl+0 to reset).

Export a pdf scene of the clipped disk_out_ref.ex2 as disk.pdf and submit it.

Export a pdf scene of the plot as plot.pdf and submit it.

Time Exercise

The purpose of this exercise is to practice using paraview by duplicating this interpolated movie showing the can being crushed. The steps required to do this are as follows:

Skim the section in the paraview tutorial on time (pg. 51-56) and load the can.ex2 file.

Color it by the equivalent plastic strain eqps scaled across all steps, adjust the view to see the inside of the can, and use the VCR toolbar to step through/play the data series.

Enable the animation view, set the mode to sequence with 100 frames, and then add a temporal interpolator filter to interpolate the 100 from the original 42.

Add a annotate time source to put <Your Name>: <Time> in the corner.

Save an 5 second (5s x 20fps = 100frames) 1024x512 animation video called crush.avi (or crush.mp4, crush.ogv, etc.) and submit it.

Selection Exercise

The purpose of this exercise is to practice using paraview by duplicating this distribution plot of equivalent plastic strain over time in top 20% of cells at end. The steps required to do this are as follows:

Skim the section in the paraview tutorial on selection (pg. 63-69) and load the can.ex2 file.

Color it by the equivalent plastic strain eqps across all time steps, adjust the view to see the inside of the can, and advance to the final frame.

Enable the find data view, use it to find the maximum ‘eqps’ value from the can.ex2 data producer, calculate 80% of this value by hand, and change in to find all cells with eqps greater or equal to this value.

Plot the distribution of eqps values for this selection over time by adding a plot selection over time (the plot selection over time is a shortcut for manually adding the filter), and think about why this only shows a distribution for the final six frames.

Select the freeze option to lock the selection to set of cells selected on the final step (instead of the set of cell matching the criteria on each frame, answering the prior question), and update the plot selection over time fliter with this selection via the copy active selection filter properties button.

Cleanup the plot label, use the view properties to label the chart Submission: <Your Name>, export a scene pdf selection.pdf, and upload it as your submission.

Note that not all pdf viewers properly show the quartile region (darker grey) in the generated pdf file for this exercise, so do not be concerned if appears to be missing in your pdf scene export.

Animation Exercise

The purpose of this exercise is to practice using paraview by duplicating this animated movie of MRI head slices. The steps required to do this are as follows:

Skim the section in the paraview tutorial on animation (pg. 70-76) and load the headsq.vti file.

Add a clip filter in the -Z direction, display the Scalars_ property, and orient the display with Y up and X left.

We want an animation showing all the Z slices of the data in this file, so we look at the information tab (beside the properties tab) for the headsq.vti source to see that the Z bound goes from 0 to 186 and the extent goes from 0 to 93 (i.e., there are 94 X-Y planes of data, with a new plane every 2 units of Z).

Adding a 2s delay, at 20fps, the 0 to 93 extent would go from frame 40/20fps = 2s to frame (40+93)/20fps = 6.65s, so open the animation view, pick the sequence mode and set the end time to 6.65s and the number of frames to 40+94 = 134 (i.e, giving a mapping of frames 0-39 and 40-133 to to times 0-1.95s and 2-6.65s).

Select the clip type - origin (2) property in the clip filter as the parameter to vary below the timeline and press the blue + button to add it.

Double click on the default ramp mapping of 0 to 255, add an intermediate point with the new button and set it to be 185.99 from 0s to 2s and 185.99 to -0.01 from 2s to 6.65s.

View the headsq.vti source properties while using the green VCR control arrows it the toolbar to single step through a few timesteps to verify the clipping plane steps through the data extent as expected (i.e., starting at 2s, it should go 183.99, 181.99, 179.99, …, 0.99, -0.01).

Add an annotated time filter, set the scale to 20, and the shift to -40 (confusingly the scale is applied before the shift despite their order) then, after verifying it is making integer steps, set the format string to <Your name>: {time:.0f} (note the :.0f to specify zero decimal places) in order to show the data slice.

Save an 20fps 512x512animation video calledslices.avi(orslices.mp4, slices.ogv`, etc.) and submit it.

Index

Table of Contents

VDI

Accessing

Windows and OS X

Linux

Software

ParaView

Personal computer

Windows and OS X

Linux

VDI

Tutorial

VDI nodes

Accessing

Software

ParaView

Personal computer

VDI

Tutorial

Basis of visualization

User interface

Basic interface

Loading data

Filters

Multiview

Vector visualization

Volume rendering

Time

Output

Plotting

Selections

Animation

Exercises

Plotting Exercise

Time Exercise

Selection Exercise

Animation Exercise