Lab visualization tutorial: Difference between revisions
Jump to navigation
Jump to search
(Created page with "This is a guide to using ParaView on a lab computer to create plots. It is just the basics in how to get started. See other resources ([https://www.paraview.org/Wiki/The_ParaV...") |
m (Update location of data) |
||
Line 8: | Line 8: | ||
# Open the ParaView app. | # Open the ParaView app. | ||
# Click the button with two computers connected by a green dot (in top left of the toolbar). | # Click the button with two computers connected by a green dot (in top left of the toolbar). | ||
# Select the Onyx server<br /> If none present, create it: | # Select the Onyx server and click Connect.<br /> If none present, create it: | ||
#* Click Add Server | #* Click Add Server | ||
#* Give it the name Onyx | #* Give it the name Onyx | ||
Line 19: | Line 19: | ||
===Open data files=== | ===Open data files=== | ||
# Click the Open button (Folder with a white paper in it in top left of the toolbar). | # Click the Open button (Folder with a white paper in it in top left of the toolbar). | ||
# Click output_..nc in | # Click output_..nc in C:\Users\ddeepwel\Documents\Graham data\kh_billow | ||
# Select NetCDF files generic and CF conventions. | # Select NetCDF files generic and CF conventions. | ||
# Unselect the checkbox for Spherical Coordinates (it's in the Properties tab). | # Unselect the checkbox for Spherical Coordinates (it's in the Properties tab). |
Latest revision as of 12:29, 2 May 2018
This is a guide to using ParaView on a lab computer to create plots. It is just the basics in how to get started. See other resources (Paraview tutorial) for more in depth tutorials.
This tutorial will open a Kelvin-Helmholtz billow in a publicly available directory.
Open ParaView
Run in parallel on Onyx
- Run
mpiexec -np N "C:\Program Files\ParaView 5.5.0-RC3-Qt5-MPI-Windows-64bit\bin\pvserver"
in Command Prompt. Change N to a number less than or equal to 12. - Open the ParaView app.
- Click the button with two computers connected by a green dot (in top left of the toolbar).
- Select the Onyx server and click Connect.
If none present, create it:- Click Add Server
- Give it the name Onyx
- Click Configure
- Click Save
Run in serial on Onyx
- Open the ParaView app.
That's it. There is nothing more. However, ParaView will likely be slow for large data sets.
Open data files
- Click the Open button (Folder with a white paper in it in top left of the toolbar).
- Click output_..nc in C:\Users\ddeepwel\Documents\Graham data\kh_billow
- Select NetCDF files generic and CF conventions.
- Unselect the checkbox for Spherical Coordinates (it's in the Properties tab).
- Click Apply (it's in the Properties tab).
If your data is mapped then you must follow the steps here to adjust your grid from the rectilinear grid to the correct curvilinear one.
Plot something
We will plot contours of the y-component of vorticity (vorty).
- Click the Contour button (it's beside the calculator button in the top left of the toolbar).
- Select vorty in the "Contour By" drop-down menu.
- Unselect Compute Normals.
- Select Compute Scalars.
- Unselect Generate Triangles.
- Chose contours -1 and 1 as two different isosurfaces.
- Click Apply.
- Select vorty in the drop-down menu of variables (it might currently be showing "Solid Color").
Move the data
The following are useful commands to move the camera viewing the data:
- Hold right click and slide the mouse will adjust the zoom
- Hold left click and slide the mouse will rotate the plot.
- Hold x, y, or z and left/right click and slide the mouse will rotate about the x, y, or z axes.
- Hold the scroll wheel down and slide the mouse will pan across the plot (shift+control+ mouse movement will do the same).