Skip to content

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

Open
RemiLehe wants to merge 1 commit into
openPMD:devfrom
RemiLehe:p_momentum
Open

[WIP] Extend API so as to extract the real momentum p#315
RemiLehe wants to merge 1 commit into
openPMD:devfrom
RemiLehe:p_momentum

Conversation

@RemiLehe

@RemiLehe RemiLehe commented Apr 7, 2021

Copy link
Copy Markdown
Member

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')

@ax3l ax3l Apr 7, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown

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