VisIt-tutorial-basics
From VisItusers.org
Contents |
[edit] Starting VisIt
The way you start VisIt depends on the platform you are on:
- On Windows, double click on the VisIt icon
- On Unix & Mac, invoke: /path/to/visit/bin/visit
- Most people ultimately put /path/to/visit/bin in their $PATH and then just say "visit".
[edit] What you see
- The tall grey window on the left is called the "GUI". It is the primary mechanism for driving VisIt.
- The window on the right is called the "viewer". It displays results.
[edit] Opening files
The first thing to do is to select and open files.
- Go to the GUI and find File->Select File.
- Change the "Path" field to be "/path/to/visit/data"
- Click "Remove all" to clear out the files from the directory you started VisIt in.
- Click "Select all" to select all of the files in the "data" directory.
- Click "OK" on the bottom right.
- The top part of the GUI has a heading labeled "Selected files". This will now contain the files from the "data" directory.
- Highlight the file "noise.silo" and then click "Open"
- You can also double click noise.silo and will automatically open it.
You've opened a file!
[edit] Advanced file opening features
- In the file selection window:
- There is a field for "host". That is how you run client/server
- There is a "filter". That is provided to subset the file list to only the files VisIt may want.
- Example filter: "*.silo *.vtk"
- There is another mechanism for opening files under File->Open that opens a single file.
- This allows you to explicitly tell VisIt what type of file it is opening.
- VisIt uses heuristics otherwise (which are often successful).
- You can also open files on the command line: "visit -o file.ext"
[edit] Making a plot
- Go to Plots->Pseudocolor->hardyglobal.
- On Windows & Unix: the plots header is located two thirds of the way down the gui.
- On the Mac: the plots header is located along the top pulldown.
- You will see a green entry added the "Active plots list", which is located half way down the gui.
- This means VisIt will draw this plot after you click "Draw"
- Click draw.
- You should see a plot appear in the visualization window.
- Go to Plots->Mesh->Mesh
- Click draw.
- You should now see both a Pseudocolor and plot mesh.
- Highlight the Pseudocolor plot in the active plots list.
- Click "Hide/Show"
- (This will hide the Pseudocolor plot ... you should now see only the mesh plot.)
- Highlight the mesh plot and click Delete.
- You should now have an empty window.
- The Pseudocolor plot should now be selected.
- Click "Hide/Show"
- The Pseudocolor plot should reappear.
[edit] Modifying the Plot attributes
- Go to Plot Attributes->Pseudocolor.
- This should bring up a window for modifying the plot.
- Change the scale from "Linear" to "Log"
- Click Apply.
- (The colors changed)
- Click "Min" on and change the min to 3.
- Click "Max" on and change the max to 4.
- Click Apply.
- (The colors change again.)
- Change the opacity to be 50%.
- Click Apply.
- (You can now see through the plot. Note that you only see the external faces. If you want to see the data from the whole volume, that will be with the volume plot.)
- Change back the scale, limits, and opacity back to their original settings and click Apply.
- Dismiss the Pseudocolor plots window.
[edit] Applying an operator
- Go to Operators->Slice
- Operators is located next to Plots.
- You are now looking at a 2D slice.
- Go to Operator Attributes->Slice.
- There are many controls for setting the slice plane ... play with them.
- Operators can be removed by clicking on an expansion arrow in the plots list, then clicking on the red X icon next to an operator.
[edit] VisIt interaction modes
There are five basic interaction modes:
You always start in Navigate. Navigate allows you to pan and rotate the data set.
- Put the cursor in the visualization window from the viewer.
- Left click (or single click if you do not have a 3 button mouse) and move the mouse.
- The data set will pan with the mouse.
- In 3D, the data set rotates.
- The interaction mode is controlled by the toolbar, which is located at the top of the visualization window.
- The five interaction modes are all located together on the toolbar, towards the bottom.
- Click on the magnifying glass
, which corresponds to zoom.
- Go to the visualization window and left click (single click) and HOLD IT DOWN.
- Move the mouse a bit.
- You should see a rubber band.
- Lift up the mouse button.
- You should now be zoomed in so that the viewport matches what was previously inside the rubber band.
- Find the icon of a camera that has a green "X" around it. (The camera is mostly obscured by the X)
- Click it.
- This will reset your view.
- Click the icon next to the magnifying glass, which has red, blue, and black lines.
- This is for lineout.
- Put the cursor over the data and left click (single click) and HOLD IT DOWN.
- Move the mouse a bit.
- You should see a single line moving around.
- Lift up the mouse button.
- The window layout changes. You now have two windows. The first window is the same, but the second now contains a "Lineout", which has hardyglobal as a function of distance over the line.
- On the window that has the curve, find the icon on the toolbar of the window with a red circle with a line through it.
- Click this button.
- The new window should disappear.
- (You should only have one window now.)
- Click on the icon that has a '+' with a small Z.
This is "zone-pick".
- Put the cursor over the data set and left click (single click).
- This will bring up a new window ... the pick window.
- The pick window contains information about the zone (i.e. cell or element) that you just picked in.
- The pick contains variable information, intersection location, zone ID, and IDs of incident nodes (i.e. point or vertex).
Pick can return a lot more information than it did.
- Go to the Variables tab and add "shepardglobal"
- Turn on "Physical Coords" under "Display for Nodes"
- Turn on "Domain-Logical" under "Display for Zones"
- Click apply.
- Make another pick.
- You get info about shepardglobal, the coordinates of each node, and the logical coordinates for the zone.
[edit] Other plots
- We will experiment with the Contour, Filled Boundary, Label, Vector and Volume plots.
[edit] Other operators
- We will experiment with the Clip and Threshold operators.
[edit] Saving an image
- With a current plot, go to File->Save Window.
- This saves an image to the filesystem.
[edit] Saving a database
VisIt can be part of a larger tool chain.
- If you do not already have one, make a Pseudocolor plot of hardyglobal from the noise.silo database.
- Apply the Threshold operator and change the range to be 3->max.
- Draw.
- Go to File->Export Database.
- Change the file type to VTK
- Export.
- A file named visit_ex_db.vtk has been saved to the file system.
[edit] Subsetting
- Delete any plots in your window.
- Open up multi_ucd3d.silo
- Make a Subset plot of "domains(mesh1)"
- The plot is colored by "domains", which normally correspond to a simulation's processors.
- In the active plots list, find the four interlocking rings and click on it.
- This will bring up the Subset window.
- Turn off some domains and click apply
- You will see some of the domains disappear.
- (Subsetting works with any plot type.)
- Turn all the domains back on.
- Turn off materials 1 and 3.
- You will see material 2 only, colored by domain.
This mechanism is used to expose subsetting for materials, domains, AMR levels, and other custom subsettable parts.

