Closed ordinary-slim closed 7 months ago
As mentioned in: https://fenicsproject.discourse.group/t/how-to-write-binary-data-with-vtk-xdmffile/14095/6?u=dokken
There are multi-block data sets that are pointing to the same h5
file. I.e. the storage is minimized. How Paraview chooses to display multi-block data is not an issue of DOLFINx.
You need to use the Extract Block
filter in Paraview when working with multiblock datasets.
For the VTKFile
issues, see: https://github.com/FEniCS/dolfinx/pull/3120
Summarize the issue
Beyond the first call of
write_function
, postfiles have repeated data.How to reproduce the bug
Writing two scalar functions u1 and u2 using
VTKFile.write_function
will result in the following pvtu in serial:where the line
<Piece Source="dolfinx_out_p0_000000.vtu" />
should only have appeared once. When read from Paraview, this results in double the elements in theInformation
window. The issue also happens withXDMFFile.write_function
, with one block of data hiding the other one. I use Paraview 5.11.Minimal Example (Python)
Output (Python)
No response
Version
main branch
DOLFINx git commit
920e91f2a253e43c2e5bcb229a4f9a3274504c70 (25 of January)
Installation
Development docker image
Additional information
No response