Skip to content

Commit

Permalink
Fix photo-electron emission with relaxation (#298)
Browse files Browse the repository at this point in the history
Emit a photo-electron with the photon energy (instead of depositing the
photon energy locally) when $EADL_RELAX = true and the photon interacts
with a shell below L3.

Likewise, emit a photo-electron (instead of depositing energy locally)
when $EADL_RELAX = true and the photon energy falls below the binding
energy of the M2 shell, i.e., binding_energies($MXSHELL,iZ).
  • Loading branch information
mainegra authored and ftessier committed May 31, 2017
1 parent 5bcb09b commit af4a48a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions HEN_HOUSE/src/egsnrc.mortran
Original file line number Diff line number Diff line change
Expand Up @@ -5092,9 +5092,16 @@ IF( iedgfl(irl) ~= 0 ) [ " User requested atomic relaxations "
" is interacting with. "
" left for now as before, to be changed!!! "
IF( peig <= binding_energies($MXSHELL,iZ) )
[ "Below N-shell -> local energy deposition "
edep = peig;
e(np) = pzero; "wt(np) = 0;"
[ "Outer shells, no atomic relaxation"
IF ($EADL_RELAX)[
"EADL relax: Below M2-shell -> just emit e- "
iq(np) = -1;
e(np) = peig + prm;
]
ELSE["Default: Below N-shell -> local energy deposition "
edep = peig;
e(np) = pzero; "wt(np) = 0;"
]
]
ELSE ["Above N-shell -> sample the shell the photon is interacting with"
$RANDOMSET br; /* ftot = 1; */
Expand All @@ -5111,9 +5118,9 @@ IF( iedgfl(irl) ~= 0 ) [ " User requested atomic relaxations "
"**************** from previous EGSnrc approach as it doesn't"
" generate e- nor x-rays from <M> and <N> shells."
IF ($EADL_RELAX & k > 4)[
"No interaction below L3 with EADL"
edep = peig;
e(np) = pzero;
"No initial vacancy below L3 for now, just emit e-"
iq(np) = -1;
e(np) = peig + prm;
]
ELSE["EADL: Interacts with K,L1..L3 shells"
"default: Interacts with K,L1..L3,<M>, and <N> shells"
Expand Down

0 comments on commit af4a48a

Please sign in to comment.