Skip to content

Commit 512df2f

Browse files
Skip atomic relaxation if binding energy is larger than photon energy (#3391)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
1 parent a921280 commit 512df2f

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

src/photon.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,9 @@ void PhotonInteraction::pair_production(double alpha, double* E_electron,
770770

771771
void PhotonInteraction::atomic_relaxation(int i_shell, Particle& p) const
772772
{
773-
// Return if no atomic relaxation data is present
774-
if (!has_atomic_relaxation_)
773+
// Return if no atomic relaxation data is present or if the binding energy is
774+
// larger than the incident particle energy
775+
if (!has_atomic_relaxation_ || shells_[i_shell].binding_energy > p.E())
775776
return;
776777

777778
// Stack for unprocessed holes left by transitioning electrons
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
k-combined:
2-
2.272421E+00 4.418825E-02
2+
2.270911E+00 4.568134E-02
33
tally 1:
4-
2.665301E+00
5-
2.369839E+00
4+
2.663476E+00
5+
2.366726E+00
66
0.000000E+00
77
0.000000E+00
8-
2.665301E+00
9-
2.369839E+00
8+
2.663476E+00
9+
2.366726E+00
1010
0.000000E+00
1111
0.000000E+00
1212
0.000000E+00
@@ -18,52 +18,52 @@ tally 1:
1818
0.000000E+00
1919
0.000000E+00
2020
tally 2:
21-
2.637532E+00
22-
2.320051E+00
23-
4.231377E+08
24-
5.971498E+16
21+
2.636709E+00
22+
2.318646E+00
23+
4.230052E+08
24+
5.967879E+16
2525
0.000000E+00
2626
0.000000E+00
27-
2.637532E+00
28-
2.320051E+00
29-
4.231377E+08
30-
5.971498E+16
27+
2.636709E+00
28+
2.318646E+00
29+
4.230052E+08
30+
5.967879E+16
3131
0.000000E+00
3232
0.000000E+00
3333
0.000000E+00
3434
0.000000E+00
35-
2.448745E+06
36-
2.005297E+12
35+
2.455009E+06
36+
2.015314E+12
3737
0.000000E+00
3838
0.000000E+00
3939
0.000000E+00
4040
0.000000E+00
41-
2.448745E+06
42-
2.005297E+12
41+
2.455009E+06
42+
2.015314E+12
4343
0.000000E+00
4444
0.000000E+00
4545
tally 3:
46-
2.660000E+00
47-
2.358558E+00
48-
4.231377E+08
49-
5.971498E+16
46+
2.660004E+00
47+
2.358564E+00
48+
4.230052E+08
49+
5.967879E+16
5050
0.000000E+00
5151
0.000000E+00
52-
2.660000E+00
53-
2.358558E+00
54-
4.231377E+08
55-
5.971498E+16
52+
2.660004E+00
53+
2.358564E+00
54+
4.230052E+08
55+
5.967879E+16
5656
0.000000E+00
5757
0.000000E+00
5858
0.000000E+00
5959
0.000000E+00
60-
2.448745E+06
61-
2.005297E+12
60+
2.455009E+06
61+
2.015314E+12
6262
0.000000E+00
6363
0.000000E+00
6464
0.000000E+00
6565
0.000000E+00
66-
2.448745E+06
67-
2.005297E+12
66+
2.455009E+06
67+
2.015314E+12
6868
0.000000E+00
6969
0.000000E+00

0 commit comments

Comments
 (0)