Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphabetical ordering of I/O binary files leads to Paraview visualization issue #126

Open
bahardy opened this issue Oct 21, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@bahardy
Copy link

bahardy commented Oct 21, 2024

Care should be taken when one chooses names for the binary files in the I/O files (out2d.90,out3d.h90).

The python script write_xdmf.py orders fields to be visualized in the xdmf file based on the name of the binary files. If the 3 components of a vector field (e.g. velocity) are not contiguous in terms of alphabetical ordering, xdmf will not recognize it as a vector field but instead as 3 independent scalar fields, with annoying consequences in further Paraview visualization.

As an example if 2-D slices binary files for the three velocity components are named as
u_slice_fld_*****.bin, v_slice_fld_*****.bin, w_slice_fld_*****.bin
and that, at the same time, we print vorticity components as
vox_slice_fld_*****.bin, voy_slice_fld_*****.bin,voz_slice_fld_*****.bin,
the three vorticity files will be printed in between v_slice_fld_*****.bin and w_slice_fld_*****.bin in the xdmf file, so that the 3 velocity components will be considered as 3 distinct scalar fields.

@p-costa p-costa self-assigned this Oct 21, 2024
@p-costa p-costa added the bug label Oct 21, 2024
@p-costa p-costa added this to the v3.0 milestone Oct 21, 2024
@p-costa
Copy link
Collaborator

p-costa commented Oct 21, 2024

Good catch. This needs to be fixed. Again, thanks a lot for finding and reporting it!

The workaround for now is to name the output binary files such that, when all files are ordered alphabetically, three vector field components always appear consecutively in the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants