-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix charged particle fluence scoring in cavity
Although PIRS-898 states that cavity can calculate the e-/e+ fluence, this is not entirely correct. The quantity that is actually calculated seems to be something like the product of the fluence times the stopping power. Now the actual charged particle fluence is calculated using two methods: - Algorithm already in place in cavity, but dividing by the stopping power for the lower edge energy L(E_i) of bin i. - Algorithm used in FLURZnrc for comparison. The first one is more accurate as it does not assume that the stopping power is constant along the condensed history step, as opposed to the FLURZnrc algorithm. By default the first algorithm is used. To switch to a FLURZnrc-like calculation of the fluence, use the following input key in the fluence scoring input block: :start scoring options: ... :start fluence scoring: ... method = flurz # stpwr (default) or flurz ... :stop fluence scoring: ... :stop scoring options: Range rejection is disabled for a FLURZnrc-like calculation of the fluence and this calculation type relies on the knowledge of the particle step size. For the stpwr calculation type (using stopping powers), a warning is issued because a proper selection of ESAVE is required for accurate results. As a general rule, avoid using range rejection when calculating charged particle fluence!
- Loading branch information
Showing
1 changed file
with
177 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2d35318
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.
Yes, the original implementation does calculate fluence times stopping power and yes, it is by far more accurate than other approaches. One can divide by the stopping power at then end, and not during the simulation. The "fix" added here destroys the method. It is less accurate and also slower due to the added division (50 cycles) on every energy deposition event.