-
Notifications
You must be signed in to change notification settings - Fork 146
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
egs_chamber dose output for cylinders inscribed in water phantom #1220
Comments
I can't reproduce the problem. Here is my input file, it gives identical dose in region 2 between ausgab dose scoring and a calculation geometry:
|
Hi Reid, thanks for the reply. I had a look into the problem today, and I was able to reproduce the problem when I had an ausgab definition, but no calculation geometry definition for a given geometry - it could be a definition that references any region in that geometry. Otherwise it works fine when you have both the ausgab and the geometry definition as you have above. I tested even putting the region number of the surrounding water envelope and scoring the ausgab of the inscribed regions and that works fine but the cavity dose in the surrounding water envelope is then 0. I also realised having two calculation geometries and one ausgab seemed to mess with the resulting values. So in summary I need one calculation geometry and one ausgab together referencing the same region to give nice results.
|
I tried with just an ausgab object in egs_app, and just a calculation geometry in egs_chamber, and the results agree within statistical uncertainty. Of course the results won't be identical, because the two apps take different logical paths which means the same random number seeds don't result it the same simulation. Do your results disagree outside the uncertainties? |
Thanks for the message. Yeah my results are slightly different between the ausgab and the scoring options value for dose, not by much at all and when I do a ratio of the dose D1/D2 for ausgab and D1/D2 for the scoring options value its practically identical for the same random numbers, in the same run. I'm not particularly worried about it. I realised that an issue was occurring because when I put a label on a water phantom, then moved it - the unmoved water phantom was being scored instead of the moved one, so my results were a little odd. Instead I fixed this by just waiting until I had my complete model, making sure to instantiate my water phantom first in the largest world geometry (so the region numbers were smallest), and finding these numbers in the world geometry, creating a label there, then getting output by referencing this world geometry and the corresponding label |
Well the label should certainly work when you put in directly in the lowest level geometry, not in the world geometry. That's the whole point of labels! So I'm not sure what the issue was there. To extract the local region numbers to use in the label, did you ensure you visualized only that specific geometry in egs_view, using the |
Describe the bug
Hi I have a 10 cm thick cylinder of 0.25 cm radius that is cut up into 1 mm sections along the z axis, and inscribed in a square water phantom of 15x15x15 cm^3. I want to score the dose in all the cylindrical volumes from an electron/photon beam.
The ausgab output, when I choose the same regions, is different from the scoring options output. For scoring options this would mean repeating :start calculation geometry: definition 100 times which may be painful.
Then the output is:
When I use the scoring options with start calculation geometry it gives good results. I don't have the command line output but can attach a csv - it's just a depth dose for photons of 6 MV.
To Reproduce
Expected behavior
Expect results to be consistent for dose between ausgab and scoring options versions of obtaining the dose in the regions
Operating system
EGSnrc version
Most recent - installed from Github on 18/11/24
Notes
https://www.reddit.com/r/EGSnrc/comments/fjkj8m/ausgab_vs_scoring_option_in_egs_chamber/
CC = /opt/homebrew/opt/gcc@14/bin/gcc-14 # was /Library/Developer/CommandLineTools/usr/bin/gcc
CXX = /opt/homebrew/opt/gcc@14/bin/g++-14 # was /Library/Developer/CommandLineTools/usr/bin/g++
LINK = /opt/homebrew/opt/gcc@14/bin/g++-14 #was /Library/Developer/CommandLineTools/usr/bin/g++
then I had to create aliases to the files in my ~/.zshrc:
alias egs_view=$HEN_HOUSE/bin/osx/egs_view.app/Contents/MacOS/egs_view
alias egs_gui=$HEN_HOUSE/bin/osx/egs_gui.app/Contents/MacOS/egs_gui
alias egs_inprz=$HEN_HOUSE/bin/osx/egs_inprz.app/Contents/MacOS/egs_inprz
So fixed a different problem here)
The text was updated successfully, but these errors were encountered: