| Version 22 (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
.bashrcfile. - Add the following line to your
.bashrc:export PATH=/opt/visit2/bin:$PATH
- Close your
.bashrcfile and enter the commandsource .bashrcto add the change to your environment. - Enter the command
visitto 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
.bashrcfile. - Add the following line to your
.bashrc:module load visit
- Close your
.bashrcfile and enter the commandsource .bashrcto add the change to your environment. - Enter the command
visitto 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
visitcommand 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 openscreen.
- Enter the directory path of the files in the
Pathfield.
- The grouped HDF5 files are listed as
.hdfdatabases in theFile openwindow, 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.
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 Movieand 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

