|
Peano
|
probe.py reads out the unknowns at one point of a Peano patch file over time and writes them into a csv file.
It is the counterpart of render.py (Offline (command-line) conversation into VTK file formats): it accepts the same meta files and snapshot options, but instead of whole VTU files, it yields one time series. The script does not rely on ParaView/pvpython or vtk.
The csv file holds one row per snapshot, sorted by time. The first column is the snapshot's time stamp, followed by all unknowns of all data sets within the file. If the description of a data set lists one name per unknown, e.g. description h, hu, the columns carry these names. ExaHyPE's solvers write such descriptions if you give their variables names. If two data sets use the same name, the columns are prefixed with the data set, e.g. SWEQ_h. Otherwise, the columns are named after the data set and the index of the unknown, e.g.
The postprocessing tutorial shows the probe with named unknowns.
The most important options are
There is no interpolation. Among all patches that contain the point, we take the finest one, i.e. coarser levels of an adaptive mesh are ignored if they are dumped, too. If the point sits exactly on a face between two patches, we take the patch to the right/top/front. Within the patch, we take
Cell data with a non-default mapping is not supported. If no patch in a snapshot contains the point, the script writes NaN and issues a warning.
The script parses only the offset and size of each patch and skips the values of all patches that do not contain the point. It therefore is considerably cheaper than a conversion into VTU. The I/O remains the same though, i.e. each snapshot file is still read once.