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 ofctrl
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 usingctrl-+
to zoom in andctrl+0
to reset).Export a pdf scene of the clipped
disk_out_ref.ex2
asdisk.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
with100
frames, and then add atemporal 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
(orcrush.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 thecan.ex2
data producer
, calculate 80% of this value by hand, and change in to find all cells witheqps
greater or equal to this value.Plot the distribution of
eqps
values for this selection over time by adding aplot selection over time
(theplot 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 theplot selection over time
fliter with this selection via thecopy active selection
filterproperties
button.Cleanup the plot label, use the view properties to label the chart
Submission: <Your Name>
, export a scene pdfselection.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 theproperties
tab) for theheadsq.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 thesequence
mode and set the end time to6.65
s 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 be185.99
from0
s to2
s and185.99
to-0.01
from2
s to6.65
s.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
to20
, and theshift
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 512x512
animation video called
slices.avi(or
slices.mp4,
slices.ogv`, etc.) and submit it.