Repository navigation
Developer guide: update for #106; add a gold-nanoparticle tutorial - #107
Open
kavyawadhwa134 wants to merge 1 commit into
Open
kavyawadhwa134 wants to merge 1 commit into
kavyawadhwa134 wants to merge 1 commit into
Conversation
#106 restored atomic de-excitation and made app.generator work with n_threads > 0. The guide still described the old limits. - Section 28 now says the source is configured the same way in both modes: generator settings made before initialize() are kept and applied at initialization, so a mistyped /gun/ command is reported there. Section 17's example uses app.generator with n_threads=4 instead of initialize() plus /gun/ commands. - Section 32 limits the generator entry to 0.2.0 and adds an entry on missing fluorescence (the 0.2.0 bug, and production cuts with the reference lists). Section 75 (Generator) drops "serial only". - New tutorial 71: dose enhancement in a tumour loaded with 1-2% gold (a GDML mixture of A-150 and G4_Au) for 50 keV-1 MeV photon beams, with batch uncertainties and a comparison with NIST mu_en/rho. Sections 71-86 become 72-87. - Test list mentions tests/test_physics.py. PDF rebuilt. All changed snippets were run against a build of main (Geant4 11.4.3).
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings
PYTHON_DEVELOPER_GUIDE.mdand its PDF in line with #106 (atomic de-excitation restored;app.generatorworks withn_threads > 0).Rewritten for #106
app.generatorundern_threads=4. Theinitialize()and/gun/workaround is gone.initialize()are kept and applied at initialization. A mistyped/gun/or/gps/command issued that early is reported byinitialize()or the firstrun().deexcitationIgnoreCut,/run/setCut,fluofor FTFP_BERT).tests/test_physics.py.New tutorial 71: dose enhancement by gold nanoparticles
G4_A-150_TISSUEandG4_Au), 1 cm deep in an A-150 block.docs/images/gold_nanoparticles.png.Before #106, 1% gold at 100 keV gave about 2.7. With fluorescence switched off after
initialize(), this setup gives 2.87 ± 0.02.The enhancement (ratio − 1) is 4–7% above the estimate at 50 and 100 keV:
Adding the tutorial renumbers sections 71–86 to 72–87, and their cross-references were updated with them.
Finding (Geant4 11.4.3): a GDML mixture with a
0.0000gold fraction does not behave like plain A-150 at 1 MeV. Its tumour dose is about 40% higher (10.2 vs 7.2 keV/g per photon), in serial and multithreaded runs. So the reference tumour usesG4_A-150_TISSUEdirectly, and the tutorial says so.Verification
Built main from source against Geant4 11.4.3 (MT) in a fresh venv:
tests/test_physics.pyandtests/test_run.pypass: 9 passed, 1 skipped (the skip is an existing MT skip).n_threads > 0.tools/build_guide_pdf.py(663 KB).🤖 Generated with Claude Code