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

Particle filters in OpenPMD #1004

Closed
MaxThevenet opened this issue May 11, 2020 · 1 comment · Fixed by #1632
Closed

Particle filters in OpenPMD #1004

MaxThevenet opened this issue May 11, 2020 · 1 comment · Fixed by #1632
Assignees
Labels
component: diagnostics all types of outputs component: openPMD openPMD I/O

Comments

@MaxThevenet
Copy link
Member

The AMReX writer functions for the plotfile format take a particle filter, i.e., a lambda function that is evaluated on each particle and returns 0 (do not dump this particle) or 1 (dump this particle).

Class ParticleDiag holds the the general properties of these filters (provided by the user), and the filters are constructed in FlushFormatPlotfile::WriteParticles, and a lambda function containing all these filters is passed to amrex::ParticleContainer::WritePlotFile.

It would be useful to have this feature working for OpenPMD output.

@MaxThevenet MaxThevenet added component: openPMD openPMD I/O component: diagnostics all types of outputs labels May 11, 2020
@ax3l ax3l self-assigned this Jul 30, 2020
@ax3l
Copy link
Member

ax3l commented Jul 30, 2020

Memo to myself - see signatures of:

  • WarpXOpenPMDPlot::DumpToFile
  • amrex::ParticleContainer<...>::WritePlotFile

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 component: openPMD openPMD I/O
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants