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.ex2file.
- 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 - displaysettings regarding use of- ctrlto 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+0to reset).
- Export a pdf scene of the clipped - disk_out_ref.ex2as- disk.pdfand submit it.
- Export a pdf scene of the plot as - plot.pdfand 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.ex2file.
- Color it by the equivalent plastic strain - eqpsscaled 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 - sequencewith- 100frames, and then add a- temporal interpolatorfilter to interpolate the 100 from the original 42.
- Add a - annotate timesource 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.ex2file.
- Color it by the equivalent plastic strain - eqpsacross all time steps, adjust the view to see the inside of the can, and advance to the final frame.
- Enable the - find dataview, 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- eqpsgreater or equal to this value.
- Plot the distribution of - eqpsvalues for this selection over time by adding a- plot selection over time(the- plot selection over timeis a shortcut for manually adding the filter), and think about why this only shows a distribution for the final six frames.
- Select the - freezeoption 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 timefliter with this selection via the- copy active selectionfilter- propertiesbutton.
- 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.vtifile.
- 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 - informationtab (beside the- propertiestab) for the- headsq.vtisource 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 - animationview, pick the- sequencemode 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 - newbutton and set it to be- 185.99from- 0s to- 2s and- 185.99to- -0.01from- 2s to- 6.65s.
- View the - headsq.vtisource 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 - scaleto- 20, and the- shiftto- -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- :.0fto specify zero decimal places) in order to show the data slice.
- Save an 20fps 512x512 - animation video calledslices.avi- (orslices.mp4- ,slices.ogv`, etc.) and submit it.