Version 27 (modified by 14 years ago) ( diff ) | ,
---|
VisIt Basics
Setting Up and Running VisIt
VisIt is currently installed on clover
and grass
. Clover
does not have modules installed, so a different setup process is required on each machine.
Clover
Since clover
doesn't have the modules
program installed on it, you will have to manually add the visit
executable's directory to your search path:
- Go to your home directory and open your
.bashrc
file. - Add the following line to your
.bashrc
:export PATH=/opt/visit2/bin:$PATH
- Close your
.bashrc
file and enter the commandsource .bashrc
to add the change to your environment. - Enter the command
visit
to start VisIt.
Grass
VisIt is installed as a module on grass
, so the setup is much more straightforward. The steps for making it part of your default environment, however, are very similar:
- Go to your home directory and open your
.bashrc
file. - Add the following line to your
.bashrc
:module load visit
- Close your
.bashrc
file and enter the commandsource .bashrc
to add the change to your environment. - Enter the command
visit
to start VisIt.
In either case, once you see a screen like the one below, you are ready to go.
Opening Files in Visit
Visit reads HDF5 files and can recognize them from the File open
screen, provided they have the .hdf
extension. If a collection of .hdf
files with the same numbering convention exists in a directory, Visit will group them together and open them as a batch, which makes producing images and animations easier. The process is as follows:
- Go to the directory containing the files you want to open. This is not strictly necessary, but will make your life easier in the long run.
- Enter the
visit
command to start VisIt (see the instructions above to make VisIt part of your environment, if you have not already done so).
- Click
File->Open file...
to bring up theFile open
screen.
- Enter the directory path of the files in the
Path
field.
- The grouped HDF5 files are listed as
.hdf
databases in theFile open
window, with the individual files under the group header. Select the group you want and make sure that the "Open as File Type" box is set to "Chombo".
Creating a Pseudocolor Plot
One of the most common and useful plots at our disposal is the pseudocolor plot, which presents the intensity of a scalar attribute as a color spectrum. In two dimensions, this is fairly straightforward; in three dimensions an additional slice operation (see below) is usually required to get any useful information.
To create a pseudocolor plot:
- Open a Chombo file or group of Chombo files (see above).
- Under
Plots
, clickAdd->Pseudocolor->
fieldname.
- Click the Draw button. This will draw a pseudocolor image in the VisIt window to the right of the control window. For high-resolution images, this may take several minutes.
If the Chombo file is one of a series, you can animate them by clicking the play buttons. You can advance or retreat a single frame by clicking the skip buttons.
3D Plots and the Slice Operator ==
Pseudocolor plots are opaque by default. This means that if you try to create a pseudocolor plot of a 3D dataset, you will get a large colored block. The boundary conditions of the dataset will be visible, but you will probably want to see some of the interior. This is where the slice operator comes in.
The slice operator creates a 2D plot by taking a planar slice of a 3D one. This is especially effective for problems with some kind of axial symmetry, where a cross section of a coordinate plane will give you a pretty good idea of what's going on throughout the simulation.
To obtain a slice of a 3D pseudocolor plot:
- Create a 3D pseudocolor plot (see "Creating a Pseudocolor Plot" above).
- Under
Plots
, selectOperators->Slicing-Slice
.
Making Movies in Visit
- Once you have drawn your plot, press the Play button on the main screen. This will give you a preview of your animation.
- Click
File->Save Movie
and follow the on-screen instructions. If saving frames as .png files, follow the next step to convert the images into a movie.
- Type "
convert -quality 100 file_name00*.png movie.gif
" from the command line within the directory the movie stills are located. This command strings together the .png files into an animated .gif file called "movie.gif". The asterisk indicates "all files that begin with…". message
Attachments (11)
- VisItPseudoColorCropped.png (157.6 KB ) - added by 14 years ago.
- VisItStartScreen.png (108.0 KB ) - added by 14 years ago.
- ChomboOpen.png (64.4 KB ) - added by 14 years ago.
- VisItPseudocolorMenu.2.png (85.3 KB ) - added by 14 years ago.
- VisItPseudocolorMenu.png (85.3 KB ) - added by 14 years ago.
- Bx2Dscreengrab.png (145.0 KB ) - added by 14 years ago.
- SliceOperatorSelect.png (62.9 KB ) - added by 14 years ago.
- Bx3Dunsliced.png (128.4 KB ) - added by 14 years ago.
- SliceOperatorApplied.png (72.8 KB ) - added by 14 years ago.
- SliceOperatorAttributes.png (45.8 KB ) - added by 14 years ago.
- Bx3Dsliced.png (138.6 KB ) - added by 14 years ago.
Download all attachments as: .zip