-
Notifications
You must be signed in to change notification settings - Fork 149
A novel particle source 'egs_focal_spot_source' for egs++, an equivalent… #1251
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
base: develop
Are you sure you want to change the base?
A novel particle source 'egs_focal_spot_source' for egs++, an equivalent… #1251
Conversation
…to BEAMNrc's ISOURCE19
Great contribution! It'll be a while until we get around to reviewing this. Just so you know, when we do it will likely involve force pushing to your branch on your repository (to format commit style, etc). If you'd like to maintain your original work, just make a local renamed copy of your branch now. |
@Apelova this is great! What was the motivation for this implementation and for what kind of scenario did you find significant effects compared to a simplistic rectangular focal spot? |
@mainegra I appreciate the feedback. My original intent for writing this source was to approximate the properties of an electron beam impinging on a bremsstrahlung target (in BEAMnrc) and to investigate how a deviation in the angular spread along the X- and Y-directions affects the transverse dose profiles in a water phantom and whether this could be the root of discrepancies between LINAC simulations and measurements. I decided to implement the source in egs++ again because 1. I considered it to be useful for future investigations and 2. there is no source available that behaves like ISOURCE19 initially while also offering the features that this implementation does. The major improvement that this implementation offers is a better agreement between simulations and experiments along the Y-direction while maintaining identical agreement along the X-direction. This is best illustrated by the example below. The graphs show the gamma-index (DOI: 10.1118/1.1598711) calculated for the experimentally determined and simulated dose profiles. The red dashed line indicates the points where the gamma criterion is being breached. The blue curve shows the gamma-index using ISOURCE19, where the angular deviation (from the z-axis) along the X- and Y-directions is equivalent, while the green curve shows the performance of the simulation using the new "EGS_FOCAL_SPOT_SOURCE." Not only does the angular distribution of "EGS_FOCAL_SPOT_SOURCE", in comparison to a rectangular distribution (with no angular deviation) improve agreement tremendously, but the spatial gaussian distributions affects the penumbra region of the transverse dose profiles of the emerging photon beam. By adjusting the width of a rectangular distribution, one could achieve satisfactory agreement along the typical transverse dose profiles (X-profile at Y = 0, Z = 5 cm and Y-profile at X = 0, Z = 5 cm), but not along the diagonals. Additionally, I added features for rotating and translating the focal spot to observe the effect of a faulty adjustment in the bending magnets during experiments and to estimate this source of uncertainty. The effects of rotating the focal spot around the X-axis and translating the focal spot towards -Y within the bremsstrahlung target above the primary collimator are shown below. I’m happy to discuss this further if you have any additional questions. |
…to BEAMNrc's ISOURCE19
This pull request aims at adding a new particle source to EGS++ which could be used for modelling electron focal spots in linear accelerators or x-ray tubes. I have implemented a new particle source for EGS++, which serves as the EGS++ equivalent of the BEAMnrc ISOURCE 19. This source is designed to replicate the behavior of ISOURCE 19 entirely but offers some additional features such as a different angular spread (from the z-axis) along the x- and y-direction. As well as shifting and rotating the particles created (To understand the behaviour of the focal spot source an Input file for the usercode tutor7pp is attached).
An example Input file to test the source for tutot7pp is given below:
P.S. I do have an implementation for BEAMnrc available (entirely in the beamnrc.mortran file) which would probably require an additional change of the GUI to be usefull for most people, as for now it can only be used by editing the raw egsinp-files.