wiki:ChomboVis

Version 8 (modified by trac, 12 years ago) ( diff )

***
This page discusses the old ChomboVis/BearToChombo process. Since neither of these are used anymore, this page should be considered deprecated.
***

BearToChombo

The current architecture for generating CHOMBO-type data from AstroBEAR's HDF5 format, BearToChombo, is designed to work similarly to the bear2fix utility. It requires the following files from a run's out directory:

  • gd.data
  • t*.h5
  • q*.h5

Running the executable produces ch*.hdf5 files in the directory.

GIF Movies

You can generate movies via the script movie.py in the ChomboVis examples folder. This script requires the environmental variable CHOMBOVIS_HOME to be set. For example, if the ChomboVis is kept in ~/local/ChomboVis-4.16.9-and-everything/, then

CHOMBOVIS_HOME = /home/userid/local/ChomboVis-4.16.9-and-everything/usr

With the above definition of CHOMBOVIS_HOME, the movie script itself is located in CHOMBOVIS/../ChomboVis-4.16.9/examples, and is invoked via

  python {path}/movie.py -n -s saved.state  out/ch*

where saved.state is a state of ChomboVis that will be applied to each frame. The -n argument disables the default behavior of recreating a ChomboVis window for each frame. The script creates ch*.ppm files which may be converted to a gif in the same manner as a set of *.png files.

Known Issues with Movies

It does not appear that one can use the movie.py script to create a movie with a saved state for a 2d-plane generated by a Slice. In fact, attempting to restore a state at all with such a saved state does not appear to work, with ChomboVis generating the error message "Bad, nonexistent, or inapplicable state file. Try again?"

Note: See TracWiki for help on using the wiki.