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

confusions about the particle Calorimeter plugin #4946

Open
zwjlpi opened this issue Jun 18, 2024 · 5 comments
Open

confusions about the particle Calorimeter plugin #4946

zwjlpi opened this issue Jun 18, 2024 · 5 comments
Labels

Comments

@zwjlpi
Copy link

zwjlpi commented Jun 18, 2024

The particle calorimeter plugin was supposed to store the particles that leave the simulation box in the spatial-energy matrix. But when I add the codes in the example .cfg file and collect the particles at full solid angle, the energy spectrum obtained from the calorimeter seems almost the same with the histogram plugin result. Does the calorimeter plugin only reserved the data of particles that reach the absorbing boundary region at this output step interval, rather than all left particles from the begin of simulation to this instant? If not, how can I activate the function to record the data of all left or leaving particles?

@psychocoderHPC
Copy link
Member

Yes, the calorimeter plugin is only collecting particles those leafing the global domain on absorbing particle boundaries together with all particles within the domain.
Monitoring only leaving particles is not possible without code changes.
Particles copied from one domain to another will can not be monitored with the calocimeter.

We have a new generic binning plugin. https://picongpu.readthedocs.io/en/latest/usage/plugins/binningPlugin.html#usage-plugins-binningplugin

example:

https://github.com/ComputationalRadiationPhysics/picongpu/blob/dev/include/picongpu/param/binningSetup.param

In prinziple you can define any kind of filter to select particles within a region only. Currently it is not possible to describe very easy that only particles those passing a slice into one direction should be taken into account.

@ikbuibui We should provide the possibility to the flexible binning plugin that we can bin leaving particles only. There is a method in our plugin interface onParticleLeave where all plugins get notified if they leave the global domain.

@ikbuibui
Copy link
Contributor

👍 I will prioritize this over the other todos on the binning roadmap

@zwjlpi
Copy link
Author

zwjlpi commented Jun 21, 2024

@psychocoderHPC Thank you so much for these helpful reply and suggestions. I'm trying to use the filters that attach near the boundarys to extract the particles and dump them every simulation time step. According to the variation on id data between two neighboring outputs, the particles left the box at each step could be determined. This is not convenient but practical. The binning plugin is currently to complex for me, and we all look forward the formal binning plugin in the upcoming new picongpu release.

@steindev
Copy link
Member

@zwjlpi Do I get it right that your issue is resolved for now? If so please close the issue. Otherwise you can post another question or open a new issue

@psychocoderHPC
Copy link
Member

@zwjlpi @ikbuibui opened a PR to create histograms out of particles leaving the outer simulation box #5039

It is not collecting particles on periodic boundaries or reflective boundaries.

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

No branches or pull requests

4 participants