-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add reduced diagnostic: 2d differential luminosity #5545
Conversation
@@ -1,6 +1,6 @@ | |||
# Add tests (alphabetical order) ############################################## | |||
# | |||
|
|||
if(WarpX_FFT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change intentional? It seems unrelated to the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is intentional.
This example requires the compilation flag -DWarpX_FFT=ON
.
Without this, the related ctest
would fail.
Note that this has not been a problem in CI so far because the FFT compilation flag is on.
print("Relative error: ", error1) | ||
print("Tolerance: ", tol1) | ||
|
||
# Check that the 2D and 1D diagnostics match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, a stronger test would be to compute d2L_dE1_dE2_th
and to compare the values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right.
Adds a luminosity diagnostic differentiated in the energies of two colliding species, called
DifferentialLuminosity2D
.It is defined as follows:
where:
The 2D differential luminosity is given in units of$\text{m}^{-2} \ \text{eV}^{-2}$ .
The user must specify the minimum, maximum, and number of bins to discretize the$E_1$ and $E_2$ axes.
The computation of this diagnostic is similar to that of
ParticleHistogram2D
.The output is a folder containing a set of openPMD files.
The values of the diagnostic are stored in a record labeled
d2L_dE1_dE2
, with axesE1
andE2
.