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

Functions

 compare_results (egslst, inp_name)
 

Variables

str EGSINP = "brem_cyl.egsinp"
 
int TIME_LIMIT_S_PER_MHZ = 20/2993.
 
list DOSRZ_NRC_DOSES
 
dict expected_doses
 

Detailed Description

A test for ensuring x-ray sources mode is working.  The test consists of a
1cm^2 beam of electrons incident on a thin cylindrical disc with dose
being calculated in cylindrical slabs behind the target.  The egs_brachy
energy deposition doses are compared with values calculated by dosrznrc.

Function Documentation

◆ compare_results()

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

Definition at line 43 of file test.py.

Variable Documentation

◆ DOSRZ_NRC_DOSES

list eb_tests.brem_cyl.test.DOSRZ_NRC_DOSES
Initial value:
1= [
2 (3.0107E-013, 0.0002),
3 (1.0088E-016, 0.0040),
4 (5.6843E-017, 0.0042),
5 (3.8797E-017, 0.0041),
6]

Definition at line 18 of file test.py.

◆ EGSINP

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

Definition at line 14 of file test.py.

◆ expected_doses

dict eb_tests.brem_cyl.test.expected_doses
Initial value:
1= {
2 "tlen": [
3 (3.702E-16, 2.84),
4 (1.042E-16, 2.90),
5 (5.933E-17, 3.04),
6 (4.064E-17, 3.14),
7 ],
8 "edep": [
9 (3.002E-13, 0.41),
10 (1.073E-16, 3.15),
11 (5.943E-17, 3.66),
12 (3.912E-17, 4.20),
13 ]
14}

Definition at line 26 of file test.py.

◆ TIME_LIMIT_S_PER_MHZ

int eb_tests.brem_cyl.test.TIME_LIMIT_S_PER_MHZ = 20/2993.

Definition at line 15 of file test.py.