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

How to visualize the exported XMF and RAW files? #20

Open
Moxing529 opened this issue Oct 14, 2024 · 4 comments
Open

How to visualize the exported XMF and RAW files? #20

Moxing529 opened this issue Oct 14, 2024 · 4 comments

Comments

@Moxing529
Copy link

Dear Dr. Karnakov,When I was studying example 205, specifically in examples/205_multivof/clustering, I used the dumplist to output the pressure field, resulting in XMF and RAW format files. How can I view these two files? How can I visualize the pressure field? When I open them in ParaView, I encounter an error saying "incorrect dimensionality," and I'm not sure how to resolve this. Thank you very much!

@pkarnakov
Copy link
Collaborator

pkarnakov commented Oct 14, 2024

I've just tried a small case based on this example. I go to examples/205_multivof/clustering and create add.conf with the following parameters

set string backend native
set string linsolver_symm conjugate
set string dumplist p
set int dumppoly 0

and then run with

make m='48 32 48' np=2 cleanrun

This way it runs on 2 cores and uses the native backend, as opposed to the Cubism backend which has more dependencies.
Within a couple of minutes it creates files p_*.xmf and p_*.raw, which I can open in Paraview 5.10.0

paraview p_..xmf

Paraview will offer to select a reader, the correct one is "XDMF Reader", not the default Xdmf3ReaderS. Maybe that's the reason?

@Moxing529
Copy link
Author

Hello, Dr. Karnakov. Thank you very much for your reply! However, when I was researching examples/205_multivof/crystal, I used ParaView to open the XMF file with the 'XDMF Reader', but it only displayed a frame without the pressure field. When I opened the RAW file in ParaView, I received an error saying 'Incorrect dimensionality.' Also, could you please let me know if there is a visualization file or program for the traj*.csv files you output?

@pkarnakov
Copy link
Collaborator

Have you tried another representation such as Slice or Volume? The default Outline does show a frame only. And only XMF files can be read by Paraview, RAW files only contain raw binary data and cannot be opened directly.

@Moxing529
Copy link
Author

Thank you very much, Dr. Karnakov! My issue has been resolved!

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

No branches or pull requests

2 participants