For the complete documentation index, see llms.txt. This page is also available as Markdown.

Paraview with Alamo and HDF5

With the HDF5 capability of Alamo, we can now visualize results using Paraview rather than VisIt (although we can still use VisIt if that is your preference). However, there are some nuances:

  • When opening .h5 files via the GUI, files that should be grouped in a "time series" are opened individually, thus each time step has its own pipeline for filters, etc.

  • Vector variables are not automatically defined based on x/y/z suffixes, so each directional variable is only accessible as scalar quantities.

In order to assist with these limitations, below is a python script that will force the grouped .h5 files to load in a single time series and will automatically search for variables with x/y/z suffixes and build corresponding vector variables for them.

The script can used by either passing it as an argument if opening Paraview from the command line or as a macro within the GUI itself.

Command line option

To run the script from the command line, first enter the directory containing the Alamo output file you wish to visualize.

cd /path/to/celloutput.visit

Then, assuming Paraview is accessible in PATH , simply open with the --script flag followed by the path to the Python script.

paraview --script /path/to/paraview_load_alamo.py

Macro option

To run the script as a macro, first open Paraview from the directory containing the Alamo output file you wish to visualize.

cd /path/to/celloutput.visit
paraview

and from the top menu select Macros->Import new macro...

Locate the Python script and select Ok.

Then once again from the top menu, select Macros->paraview_load_alamo

paraview_load_alamo.py

Last updated

Was this helpful?