source | items
/ prefix()
import() list centre(0,0,0) debug
export() delete energy()
read display dir(0,0)
write inspect
Purpose
Handles source setup
Parameters
- items
-
For read
specifies the name of the source file to be read.
Otherwise specifies the primary particle
(projectile) type.
- prefix(prefix)
-
For output options only: file name is prefixed with
<prefix>
.
- import()
-
Not yet implemented.
- export(fmt)
-
Not yet implemented.
- read
-
Read source data file specified by items
- write
-
Not yet implemented.
- list
-
List source data.
- delete
-
Delete source data.
- display
-
Not yet implemented.
- inspect
-
Show some internal info about the current source data.
- centre(x,y,z)
-
Specifies the source position (cm).
- energy(e)
-
Specifies the
primary particle
energy
(electrons and photons in keV, ions in MeV/u).
- dir(thmin[,thmax],phmin[,phmax])
-
Specifies emission direction,
polar and azimuth angles in degree.
If two numbers,
thmin,phmin
, are given they are interpreted as single
polar and azimuth angle, respectively.
If four numbers, are given they are interpreted as
polar and azimuth angular range, with isotropic emission.
A single *
denotes isotropic emission
in all directions.
- debug
-
Debug switch. Lots of output !
This command implements a simple point source.
More spatial distributions are possible using
external source files.
Examples
source edist.src / read
Read an external source file
-
source H1+ / dir(0,0) e(1.0) centre(0,0,-1E-4)
Specifies protons of 1 MeV/u energy, starting at z=-1E-4 cm (1 micron)
in z-direction.
-
source e- / dir(*) e(1.0) centre(0,0,0)
Specifies electrons of 1 keV energy, starting at 0,
emitted isotropically in all directions.
Last updated: M.Kraemer,
$Id: traxcmdsource.html,v 1.7 2019/03/17 22:57:49 kraemer Exp $