EGS Brachy
An egs++ user code for rapid brachytherapy calculations
Loading...
Searching...
No Matches
Functions | Variables
eb_tests.spec_eflu.test Namespace Reference

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
 

Detailed Description

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.

Function Documentation

◆ compare_results()

eb_tests.spec_eflu.test.compare_results (   egslst,
  inp_name 
)

Definition at line 35 of file test.py.

◆ expected()

eb_tests.spec_eflu.test.expected (   e)

Definition at line 30 of file test.py.

Variable Documentation

◆ AVG_E

tuple eb_tests.spec_eflu.test.AVG_E = (EMAX+EMIN)/2.

Definition at line 23 of file test.py.

◆ BIN_WIDTH

float eb_tests.spec_eflu.test.BIN_WIDTH = 0.001

Definition at line 22 of file test.py.

◆ EGSINP

str eb_tests.spec_eflu.test.EGSINP = "spec_eflu.egsinp"

Definition at line 15 of file test.py.

◆ EMAX

eb_tests.spec_eflu.test.EMAX

Definition at line 18 of file test.py.

◆ EMIN

eb_tests.spec_eflu.test.EMIN

Definition at line 18 of file test.py.

◆ N_BINS_IN_RANGE

tuple eb_tests.spec_eflu.test.N_BINS_IN_RANGE = (EMAX-EMIN)/BIN_WIDTH

Definition at line 25 of file test.py.

◆ NHIST

int eb_tests.spec_eflu.test.NHIST = 1

Definition at line 20 of file test.py.

◆ SCORED_IN_BIN

int eb_tests.spec_eflu.test.SCORED_IN_BIN = NHIST/N_BINS_IN_RANGE

Definition at line 27 of file test.py.

◆ SCORED_IN_BIN_PER_MEV

int eb_tests.spec_eflu.test.SCORED_IN_BIN_PER_MEV = SCORED_IN_BIN / BIN_WIDTH

Definition at line 28 of file test.py.

◆ TIME_LIMIT_S_PER_MHZ

int eb_tests.spec_eflu.test.TIME_LIMIT_S_PER_MHZ = 6/2993.

Definition at line 16 of file test.py.

◆ TOTAL_E

tuple eb_tests.spec_eflu.test.TOTAL_E = AVG_E * NHIST

Definition at line 24 of file test.py.