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

Generalize differential luminosity for photons #5222

Merged
merged 18 commits into from
Oct 10, 2024

Conversation

RemiLehe
Copy link
Member

@RemiLehe RemiLehe commented Sep 6, 2024

The differential luminosity diagnostic was not valid for particles with mass 0.

This PR generalizes the code for photons by expressing the center-of-mass energy with the 4-momentum:
Screenshot 2024-09-06 at 9 27 33 PM
which is valid for photons as well.

I also slightly simplified the code that computes the term
Screenshot 2024-09-06 at 9 30 45 PM

I also added a test using photons. This is done by extracting an base input script from the existing luminosity test involving electrons and positrons, and creating an input script involving photons that leverages the base input script.

@RemiLehe RemiLehe marked this pull request as ready for review September 6, 2024 20:18
@RemiLehe RemiLehe closed this Sep 6, 2024
@RemiLehe RemiLehe reopened this Sep 6, 2024
@RemiLehe RemiLehe changed the title [WIP] Generalize differential luminosity for photons Generalize differential luminosity for photons Sep 7, 2024
@RemiLehe RemiLehe changed the title Generalize differential luminosity for photons [WIP] Generalize differential luminosity for photons Sep 13, 2024
@RemiLehe RemiLehe changed the title [WIP] Generalize differential luminosity for photons Generalize differential luminosity for photons Oct 4, 2024
@RemiLehe RemiLehe enabled auto-merge (squash) October 4, 2024 22:16
@RemiLehe RemiLehe merged commit a716670 into ECP-WarpX:development Oct 10, 2024
37 checks passed
dpgrote pushed a commit to dpgrote/WarpX that referenced this pull request Oct 23, 2024
The differential luminosity diagnostic was not valid for particles with
mass 0.

This PR generalizes the code for photons by expressing the
center-of-mass energy with the 4-momentum:
<img width="334" alt="Screenshot 2024-09-06 at 9 27 33 PM"
src="https://github.com/user-attachments/assets/1100fce4-7043-44f7-91e9-73f6c9272799">
which is valid for photons as well.

I also slightly simplified the code that computes the term
<img width="244" alt="Screenshot 2024-09-06 at 9 30 45 PM"
src="https://github.com/user-attachments/assets/7816da3a-196e-4645-8bc5-aed1bcd897c0">

I also added a test using photons. This is done by extracting an base
input script from the existing luminosity test involving **electrons and
positrons**, and creating an input script involving photons that
leverages the base input script.
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.

2 participants