precice / aste

Artificial Solver Testing Environment
https://precice.org/tooling-aste.html
GNU General Public License v3.0
10 stars 12 forks source link

Paraview cannot open ASTE output .vtu files #189

Open MakisH opened 4 months ago

MakisH commented 4 months ago

I switched the preCICE exports from .vtk to .vtu and I used precice-aste-run to compute the mapping, outputting to a third Propagator-Mesh-out.vtu file. If I try to open this Propagator-Mesh-out.vtu in ParaView, ParaView crashes (5.12 crashes, 5.11.2 tells me it does not have a reader).

The preCICE exports (also vtu) work normally on ParaView.

One difference is that the file is binary: mesh.tar.gz

MakisH commented 4 months ago

Renaming the file to .vtk seems to work. Not sure if this is a ParaView issue, or if the files ASTE writes (via its VTK dependency) are broken.

Note that the .vtu files that preCICE exports are ASCII, while the .vtu files that ASTE writes are binary.

davidscn commented 4 months ago

Do you use a run script? Could you please provide the commands to use? The 'issue' here is that paraView selects a default reader according to the file prefix, which is wrong in our case.

MakisH commented 4 months ago

Do you use a run script? Could you please provide the commands to use? The 'issue' here is that paraView selects a default reader according to the file prefix, which is wrong in our case.

I am just executing the steps of the training course. Task 3 of the MAP module:

    precice-aste-run -p B --mesh Propagator-Mesh --data "Color" -c ../precice-config.xml \
    --output Propagator-Mesh-out