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

Monitor: Add Reference Particle Details #444

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Oct 19, 2023

Complete all reference particle attributes for our openPMD beam monitor. This is better than getting the details from ASCII, because we can exactly preserve all precision. Also, it belongs here.

In the future, we will update this to conform to the openPMD 2.0 BeamPhysics and SpeciesTypes extensions.

Read Example

import openpmd_api as io

series = io.Series("diags/openPMD/monitor.h5", io.Access.read_only)

for k_i, i in series.iterations.items():
    beam = i.particles["beam"]
    s_ref = beam.get_attribute("s_ref")
    print(f"step {k_i:>3}: s_ref={s_ref}")

@ax3l ax3l added the component: diagnostics all types of outputs label Oct 19, 2023
@ax3l ax3l force-pushed the topic-openpmd-ref branch 2 times, most recently from 8a3af43 to 30a6286 Compare October 19, 2023 03:46
Complete all reference particle attributes for our openPMD
beam monitor. This is better than getting the details from
ASCII, because we can exactly preserve all precision. Also,
it belongs here.

In the future, we will update this to conform to the openPMD 2.0
`BeamPhysics` and `SpeciesTypes` extensions.
Copy link
Member

@cemitch99 cemitch99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments on documentation.

@ax3l ax3l force-pushed the topic-openpmd-ref branch from f742a6b to dc758fa Compare October 20, 2023 16:29
ax3l and others added 2 commits October 20, 2023 09:32
Co-authored-by: Chad Mitchell <[email protected]>
@ax3l ax3l force-pushed the topic-openpmd-ref branch from 49d2d03 to ae10495 Compare October 20, 2023 16:32
@ax3l ax3l requested a review from cemitch99 October 20, 2023 16:34
@ax3l ax3l merged commit 50adc87 into ECP-WarpX:development Oct 20, 2023
13 checks passed
@ax3l ax3l deleted the topic-openpmd-ref branch October 20, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: diagnostics all types of outputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants