!filetype trxsrc !fileversion <yyyymmdd> !filedate <dow> <mmm> <dd> <hh>:<mm>:<ss> <yyyy> # # Comment # { !particle <projectile> !energy [ <E> [ <prob> ] ] [ <E> <dN/dE> ... ] !direction { "*" | <theta> <phi> | <thmin> <thmax> <phmin> <phmax> | {(theta=<expr>) (phi=<expr>)} } [ <dN/dOmega(theta,phi)> ... ] { !cylinder <cx> <cy> <cz> [ record ] !height <height> !radius [ <rmin> ] <rmax> [ !phi <min> <max> ] [ !rotate <axis> <angle> ] | !sphere <cx> <cx> <cx> [ record ] !radius [ <rmin> ] <rmax> [ !theta <min> <max> ] [ !phi <min> <max> ] | !box <cx> <cx> <cx> [ record ] !size <dx> <dy> <dz> [ !rotate <axis> <angle> ] | }
<projectile>
specifies the primary particle type.
As of TRAX
version >= 1102,
multiple projectiles are possible and will be sampled from their cumulative
distributions.
!energy
tag specifies either a monoenergetic source
or an energy distribution given as a pair of numbers
<E> <dN/dE>.
From this distribution the actual energy will be sampled.
TRAX
version >= 1102).
!direction
tag allows to specify
*
2 numbers
4 numbers
<expr>
is either a list of numbers or an expression like 1 TO 90 BY 1
.
This defines a 2-dimensional angular distribution.
Their data values are given as
<dN/dOmega(theta,phi)>
.
From this distribution the actual direction will be sampled.
NOTE: this feature is not yet implemented.
!cylinder
,
!sphere
,
!box
keywords define the spatial source distribution,
the meaning is the same as for the
geometry volumes.
They might be used to implement volume, area, and
line sources with the given geometry.
!rotate
specifies a source volume rotated around the <axis>
(x,y,z
) by <angle>
.
All lengths are in cm, angles in degree.
Energies are in keV, except for ions, for which it is in MeV/u.
The usual file name extension is .src
.
An example with an energy distribution is
here.