It seems the Plot3D reader is unable to correctly read function files. I have a Plot3D grid file grid.xyz (binary, multi-grid, with IBlanks, double precision and written in Fortran) and a function file volume.f containing 6 scalar fields. The two files open just fine on other software such as Tecplot. Any idea what could be going on? paraview_p3d_bug.tar.gz (1.1 MB)
The grid file is written in Fortran unformatted format, meaning it includes byte counts before and after each record. The function file is written in C binary format (or Fortran with access=âstreamâ), so it doesnât have byte counts. Paraviewâs reader needs it to be consistent. You can use the attached script to remove byte counts from the grid file.
Thanks for the reply Eric, this indeed worked on my end. One feature that would be worthwhile to add is the ability to input several function files (one for each timestep) similar to what is possible for .q solution files. Is there a workaround for this?
You can use a âPLOT3D meta file.â This is a JSON file that specifies a sequence of PLOT3D files to load. A nice bonus of this is that you can provide names for the variables in your function file rather than Function0, Function1, etc. Create a file with a .p3d extension that looks like:
Iâve only ever used this for AMR cases where the grid was changing. If you have the same grid for all time steps, I assume you have to repeat the âxyzâ entry. I donât know if the reader is smart enough to avoid re-reading the grid when it hasnât changed.
More documentation on the meta file format is available here. Most of the entries are optional.