chombopy documentation¶
chombopy is a Python package for running, analysing, and plotting Chombo simulations.
To install:
$ pip install chombopy
Then to load a Chombo output file:
>>> from chombopy.plotting import PltFile
>>> plot_file = PltFile('/path/to/plt1234.hdf5')
>>> plot_file.comp_names
['Enthalpy', 'Bulk concentration', 'Temperature']
>>> plot_file.get_level_data('Temperature', level=0).mean()
<xarray.DataArray 'Temperature' ()>
array(1.19985756)
Coordinates:
level int64 0
See below for more examples and guides.
Getting Started
User Guide
Reference