EGSnrc
EGSnrc copied to clipboard
Bug when using both material.dat and density files
When using both material.dat
and density correction files for pegsless materials, e.g.
material data file=C:\Users\Townsonr\EGSnrc\HEN_HOUSE\pegs4\data\material.dat
:start tungstenAlloy:
density correction file= tungsten
bremsstrahlung correction= KM
:stop tungstenAlloy:
many warnings appear during simulation like this:
***************** Warning:
lambda > lambda_max: 2.9842613669462573E-002 -93321139.574027747 eke dedx: 5.3731923031262800 -3.8219214568810129E-005 ir medium blcc: 55 4 10.228502850402988 position = 1.2027607932316573 -2.5481855660501274 47.227247945408415
I believe this is due to a bug that leads to an incomplete definition of the materials defined in the egsinp file (i.e. tungsten). It can be avoided by copying all the needed materials from the material.dat into the egsinp (or visa versa).