Skip to content

openPMD viewer: visualize AMR simulation #4725

Answered by RemiLehe
kli-jfp asked this question in Data Analysis
Discussion options

You must be logged in to vote

Thanks for the question.

Regarding visualizing the fields with MR, there are two options:

  • Having WarpX write the data in plotfile format, and then using yt (see here), which does have extensive support for MR visualization.
  • Having WarpX write the data in openPMD format, and then using openPMD-viewer. In that particular case, you can use the fact that, for refined levels, the fields outside the MR patch are seen as NaN (openPMD/openPMD-viewer#334)
    So, if you call get_field with plot=True, and call the fields in the order going from low-level to high level, you will automatically see the right thing. (since, in matplotlib's imshow, NaNs are just transparent):
ts.get_field('E', 'x', plot=T…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kli-jfp
Comment options

kli-jfp Feb 27, 2024
Collaborator Author

Answer selected by kli-jfp
Comment options

You must be logged in to vote
1 reply
@kli-jfp
Comment options

kli-jfp Feb 27, 2024
Collaborator Author

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