plot selection over time crash
Hello. Using results from openfoam with both paraview version 5.6.0 64 bit and version 5.9.1. I define a scalar boundary for a species concentration. Calculate the volume, integrate variables and then plotselectionovertime. Over the time, that volume (defined by the scalar boundary) may reach zero (depending upon the assigned concentration). If this volume at any time step is zero, paraview crashes/exits. To prevent this occuring i have to eliminate the data files for all time steps when the volume is zero - then paraview doesn’t crash/exit. This is a rather laborious workaround, especially when the subsequent calculations use a different scalar (concentration) boundary and i have to restore/eliminate other time step data files accordingly.
An example dataset is here (should be able to download it). There’s also a pdf with some steps.
Sequence to reproduce the crash:
- Open the file xyz.foam in paraview
- Press “Apply”
- Add “clip” filter
- Select “scalar” from the drop-down
- From “scalars” choose “C3H8”
- Unselect “invert”
- Input a value of “0.024”
- Press “apply”
- Add “calculator” filter
- Attribute type to “cell data”
- In the calculator input (line below “result array name”) insert “1”
- Press “apply”
- Add “integrate variables” filter
- Press “apply”
- Select/highlight the values row in the (newly appeared) spreadsheet view box
- Add “plot selection over time” filter
- Press “apply”
If you repeat it with a much lower concentration (e.g., input value of say, 0.0001), so that there is always a volume for the duration of the time steps, then the crash doesn’t occur.
Mathieu Westphal (Kitware), @mwestphal:
I reproduce. This is caused because CopyTuple is called on an array where CopyAllocate has not been called. This would require further investigation to understand why, probably the usecase where the “volume is zero” as @Danno stated.