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

[WIP] Extend API so as to extract the real momentum p #315

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

RemiLehe
Copy link
Member

@RemiLehe RemiLehe commented Apr 7, 2021

Fix #314

@@ -212,12 +212,15 @@ def simplify_record(record_comps):
if 'momentum/x' in record_comps:
record_comps.remove('momentum/x')
record_comps.append('ux')
Copy link
Member

@ax3l ax3l Apr 7, 2021

Choose a reason for hiding this comment

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

One could even go so far to only add u(x|y|z) aliases if the ED-PIC extension is set in the data series.

But saying that, we have also users that use relativistic beams in openPMD without PIC, so maybe that's a bad idea.

But saying that, we could add u(x|y|z) only if we also have a mass in record_comps :)

@kevinCassou
Copy link

Hello
Is there any chance to get this feature merged soon for output following the openPMD standard without a key "Mass" in the particle species group ?
Note that the "mass" does not appear in the standard, so it should be cool to read with the openPMD-viewer too!
Many thanks

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

Successfully merging this pull request may close these issues.

momentum w/o mass
3 participants