|
EGS Brachy
An egs++ user code for rapid brachytherapy calculations
|
Functions | |
| expected (e) | |
| compare_results (egslst, inp_name) | |
Variables | |
| str | EGSINP = "spec_vox.egsinp" |
| int | TIME_LIMIT_S_PER_MHZ = 7/2993. |
| float | BIN_WIDTH = 0.001 |
| EMIN | |
| EMAX | |
| R1 | |
| R2 | |
| TRACK_LENGTH = R2 - R1 | |
| tuple | N_BINS_IN_RANGE = (EMAX-EMIN)/BIN_WIDTH |
| tuple | SCORED_IN_BIN = TRACK_LENGTH/N_BINS_IN_RANGE |
| int | VOLUME = 4/3.*math.pi*(0.2**3-0.1**3) |
A test for comparing the calculated energy fluence spectrum in a phantom region with the expected value. A uniform spectrum between 15keV-25keV in a near-vaccuum geometry is used so the expected spectrum can easily be calculated analytically.
| tuple eb_tests.spec_vox.test.SCORED_IN_BIN = TRACK_LENGTH/N_BINS_IN_RANGE |