Skip to content

Fix BEAMnrc synchdmlc component module bugs #878

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

Merged
merged 14 commits into from
Jul 4, 2022
Merged

Conversation

blakewalters
Copy link
Contributor

@blakewalters blakewalters commented May 27, 2022

Fixed many small bugs in transport through leaf cross-sections. Some of these were introduced with the override of some cross-section dimensions necessary to accurately model the 120MLC and HD120 collimators back in 2018. However, some of these bugs predate that change.

This PR also includes new leaf orientation options for SYNCHDMLC, ORIENT=2,3, which automatically reflect leaves about the axis perpendicular to the leaf opening direction so that the MLC coordinate system matches that in the manufacturer (Varian) specs for 120MLC and HD120. This reflection reverses the order of leaf numbering, and so leaf opening sequences are automatically "flipped" so that the opening coordinate applied to leaf i is instead applied to leaf N-i+1, where N is the total no. of leaves. See the updated BEAMnrc manual for more details.

Many thanks to Dr. Jarkko Ojala without whose collaboration these fixes and enhancements would not have been possible.

@blakewalters blakewalters self-assigned this May 27, 2022
@blakewalters blakewalters requested a review from a team as a code owner May 27, 2022 22:24
@ftessier ftessier modified the milestone: Release 2022 Jun 27, 2022
@ftessier
Copy link
Member

@blakewalters this series of commits also include the radiative splitting ausgab object. Let me know if this is intentional, and I will split the pull request between synchdmlc and the ausgab object.

@ftessier
Copy link
Member

@blakewalters Oh I see, you already removed the changes related to radiative splitting in later commits...

@ftessier ftessier force-pushed the fix_synchdmlc_bugs branch from 941c867 to a84ffee Compare June 30, 2022 20:44
@ftessier
Copy link
Member

ftessier commented Jun 30, 2022

Extracted the ausgab object radiative splitting commits from this pull request branch, and put them on a new branch feature-radiative-splitting and draft pull request #884. Verified that there is no diff compared to the original branch head of this pull request.

@ftessier ftessier force-pushed the fix_synchdmlc_bugs branch from a84ffee to c825389 Compare June 30, 2022 20:48
@ftessier
Copy link
Member

ftessier commented Jun 30, 2022

Rebased on develop without conflict.

@ftessier ftessier force-pushed the fix_synchdmlc_bugs branch from c825389 to ef77128 Compare June 30, 2022 21:53
@ftessier
Copy link
Member

Adjusted commit messages, squashed some commits together. Verified that there is no diff with the original pull request head.

@ftessier ftessier force-pushed the fix_synchdmlc_bugs branch from ef77128 to db8b51b Compare June 30, 2022 21:59
@ftessier
Copy link
Member

Squashed a couple more commits, tweaked messages. Verified that there is no diff with the original pull request head.

@ftessier ftessier changed the title Fix synchdmlc bugs Fix BEAMnrc synchdmlc component module bugs Jun 30, 2022
@ftessier
Copy link
Member

Removed EOL whitespace in files modified by the pull request. No diff apart from whitespace, as confirmed with git diff -w

@ftessier
Copy link
Member

@blakewalters please confirm that you are ok with the cleaned up branch. @rtownson amd @mainegra please review when you get a change.

@blakewalters
Copy link
Contributor Author

Looks good, @ftessier! Thanks for cleaning it up.

Restore some code from DYNVMLC that seemed necessary to avoid changing
regions when the particle had not actually traveled as far as the region
boundary.
blakewalters and others added 11 commits July 4, 2022 11:00
Note that commented out debug write statements are still present in the
source code.
Note that commented out debug write statements are still present in the
source code.
Also comment out debug write statements.
Add $SYNCHDMLC_ORIENT options to flip leaf numbering and cross-sections
with respect to the axis perpendicular to the opening axis, so that the
MLC coordinate system matches that in the manufacturer (Varian) specs
for 120MLC and HD120.

This reflection reverses the order of leaf numbering, hence leaf opening
sequences are automatically "flipped" so that the opening coordinate
applied to leaf i is instead applied to leaf N-i+1, where N is the total
number of leaves. See the updated BEAMnrc manual for more details.

Also, add new ORIENT=2,3 options to SYNCHDMLC gui
Reverse leaf opening sequence definition for option
ORIENT_$SYNCHDMLC=2,3
Reorder cross section y boundaries when input restrictions are relaxed.
@ftessier ftessier force-pushed the fix_synchdmlc_bugs branch from 7d7f59e to 5e0b122 Compare July 4, 2022 15:01
@ftessier
Copy link
Member

ftessier commented Jul 4, 2022

Updated a couple commit messages and squashed one. No code change.

@ftessier ftessier merged commit c35eda8 into develop Jul 4, 2022
@ftessier ftessier deleted the fix_synchdmlc_bugs branch July 4, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants