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

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)
 

Detailed Description

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.

Function Documentation

◆ compare_results()

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

Definition at line 35 of file test.py.

◆ expected()

eb_tests.spec_vox.test.expected (   e)

Definition at line 30 of file test.py.

Variable Documentation

◆ BIN_WIDTH

float eb_tests.spec_vox.test.BIN_WIDTH = 0.001

Definition at line 17 of file test.py.

◆ EGSINP

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

Definition at line 14 of file test.py.

◆ EMAX

eb_tests.spec_vox.test.EMAX

Definition at line 18 of file test.py.

◆ EMIN

eb_tests.spec_vox.test.EMIN

Definition at line 18 of file test.py.

◆ N_BINS_IN_RANGE

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

Definition at line 24 of file test.py.

◆ R1

eb_tests.spec_vox.test.R1

Definition at line 19 of file test.py.

◆ R2

eb_tests.spec_vox.test.R2

Definition at line 19 of file test.py.

◆ SCORED_IN_BIN

tuple eb_tests.spec_vox.test.SCORED_IN_BIN = TRACK_LENGTH/N_BINS_IN_RANGE

Definition at line 26 of file test.py.

◆ TIME_LIMIT_S_PER_MHZ

int eb_tests.spec_vox.test.TIME_LIMIT_S_PER_MHZ = 7/2993.

Definition at line 15 of file test.py.

◆ TRACK_LENGTH

eb_tests.spec_vox.test.TRACK_LENGTH = R2 - R1

Definition at line 22 of file test.py.

◆ VOLUME

int eb_tests.spec_vox.test.VOLUME = 4/3.*math.pi*(0.2**3-0.1**3)

Definition at line 28 of file test.py.