EGS Brachy
An egs++ user code for rapid brachytherapy calculations
|
Functions | |
expected (e) | |
compare_results (egslst, inp_name) | |
Variables | |
str | EGSINP = "spec_eflu.egsinp" |
int | TIME_LIMIT_S_PER_MHZ = 6/2993. |
EMIN | |
EMAX | |
int | NHIST = 1 |
float | BIN_WIDTH = 0.001 |
tuple | AVG_E = (EMAX+EMIN)/2. |
tuple | TOTAL_E = AVG_E * NHIST |
tuple | N_BINS_IN_RANGE = (EMAX-EMIN)/BIN_WIDTH |
int | SCORED_IN_BIN = NHIST/N_BINS_IN_RANGE |
int | SCORED_IN_BIN_PER_MEV = SCORED_IN_BIN / BIN_WIDTH |
A test for comparing the calculated energy fluence spectrum on the surface of a source with the expected value. A uniform spectrum between 15keV-25keV in a near-vaccuum source is used so the expected spectrum can easily be calculated analytically.
int eb_tests.spec_eflu.test.SCORED_IN_BIN = NHIST/N_BINS_IN_RANGE |
int eb_tests.spec_eflu.test.SCORED_IN_BIN_PER_MEV = SCORED_IN_BIN / BIN_WIDTH |