-
Notifications
You must be signed in to change notification settings - Fork 147
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
Issue with Particle Emission in SPRRZnrc Using IAEA Phase Space Files #1253
Comments
The first place to check is in the .IAEAheader file. Are there any electrons saved in the file, and they're just not being read? There should be a section in the header that tells you how many particles of each type there are. Take a look in the output from the SPRRZnrc simulation, and see if you can find where it prints out information about the phase-space. Does it say that it's reading all types of particles from the file (I don't recall off hand if it prints this, you can copy/paste the output here if you like). |
Thank you very much. $IAEA_INDEX: $TITLE: $FILE_TYPE: $CHECKSUM: $RECORD_CONTENTS: $RECORD_CONSTANT: $RECORD_LENGTH: $BYTE_ORDER: $ORIG_HISTORIES: $PARTICLES: $PHOTONS: $ELECTRONS: $POSITRONS: $TRANSPORT_PARAMETERS: $MACHINE_TYPE: $MONTE_CARLO_CODE_VERSION: $GLOBAL_PHOTON_ENERGY_CUTOFF: // OPTIONAL INFORMATION $BEAM_NAME: $FIELD_SIZE: $NOMINAL_SSD: $MC_INPUT_FILENAME: $VARIANCE_REDUCTION_TECHNIQUES: $INITIAL_SOURCE_DESCRIPTION: $PUBLISHED_REFERENCE: $AUTHORS: $INSTITUTION: $LINK_VALIDATION: $ADDITIONAL_NOTES: $STATISTICAL_INFORMATION_PARTICLES: $STATISTICAL_INFORMATION_GEOMETRY: |
The egslst file is quite long, so I will include only the source section.
Particles will be recycled 1 times before moving on to next one. \f
|
This is the input file used in the SPRRZnrc simulation. TITLE= sprrznrc_template ########################## IWATCH= off :stop I/O control: ########################## NUMBER OF HISTORIES= 100000000 :stop Monte Carlo inputs: ########################## METHOD OF INPUT= groups DESCRIPTION BY= planes :stop geometrical inputs: ########################## INCIDENT PARTICLE= all :stop source inputs: ########################## Global ECUT= 0.521 :stop MC transport parameter: ########################## :stop media definition: ########################## ELECTRON RANGE REJECTION= off :stop variance reduction: |
It seems that electrons might not be irradiated in this simulation. |
Fix missing initialization of variables for IAEA phase-spaces in the RZ codes. While this didn't result in a crash, it did result in a bug where all particles were assigned a charge of 0 during the transport.
Fix missing initialization of variables for IAEA phase-spaces in the RZ codes. While this didn't result in a crash, it did result in a bug where all particles were assigned a charge of 0 during the transport.
Please give my fix #1256 a try and let me know if it solves the issue for you. Thanks for reporting this! |
Thank you very much for the fix! |
Fix missing initialization of variables for IAEA phase-spaces in the RZ codes. While this didn't result in a crash, it did result in a bug where all particles were assigned a charge of 0 during the transport.
Hello,
I conducted a simulation of stopping-power ratio (SPR) using SPRRZnrc with the Varian_9MeV phase space file downloaded from IAEA. However, the results differed significantly from the SPR calculated manually. Upon investigation, I found that when using an IAEA-format phase space file as the source in SPRRZnrc, even if the particle type is set to "all," only photons are being emitted.
To verify this, I used Beamnrc with the same settings and generated two types of phase space files: one in egsphsp1 format and the other in IAEA format (IAEAphsp). Then, I performed the same calculations using SPRRZnrc with these two phase space files.
To use EGS_window, I set IWATCH to "graph" and set the source particle type to "all."
(Since setting IWATCH to "graph" in SPRRZnrc does not generate a .egsgeom file, I created my own .egsgeom file.)
The images are as follows:
① IAEAphsp
② IAEAphsp with photons hidden in EGS_window
③ egsphsp1
④ egsphsp1 with photons hidden in EGS_window
Color representation in the images:
Yellow: Photons
Blue: Electrons
Red: Positrons
The beam is incident from right to left.
Do you have any solutions for this issue?
Additionally, I have encountered frequent errors when using IAEA-format phase space files.
Is there a way to convert an IAEA-format phase space file to egsphsp1 format?
Thank you!
Operating system
EGSnrc version
2025ver
The text was updated successfully, but these errors were encountered: