Download MCNelectron User`s Manual

Transcript
and it is determined that the value of the control variable (energy in the above example) is less than
or equal to the upper limit of that bin and greater than the lower limit of that bin. If the control
variable is not the incidence angle or its cosine (“THETA” or “MU”, respectively), the count is
increased by 1 when the tallying plane is crossed in the direction of its normal vector, and decreased
by 1 when the tallying plane is crossed in the opposite direction. If the control variable is the
incidence angle or its cosine, then the count is always increased by 1, because the value of that
variable already indicates the direction of crossing.
In order to specify a set of parallel equidistant tallying planes, two additional spacedelimited numbers must be inserted before the list of ranges: the number of planes and the interplane distance (in cm). For example, the following line defines 100 tallies, each corresponding to
one of 100 planes, which are at a distance of 0.1 cm from each other:
ETALLY1 0 0 0 0 0 1 100 0.1 E1
In the latter case, the first three numbers define a point that is on the first plane in the set. All other
planes in the set are “stacked” in the direction of the normal vector (defined by the fourth, fifth and
sixth numbers).
It is possible to group any two ranges in the specification of a plane-crossing tally by
enclosing their notations with parentheses, for example:
ETALLY1 0 0 0 0 0 1 100 0.1 E1 (X1 Y1) (E1 MU2)
Each such pair of ranges corresponds to a two-dimensional tally, which is represented by a table
with rows numbered by the first (or “primary”) variable of the pair, and with columns numbered by
the second (or “secondary”) variable of the pair. There can be up to 20 one-dimensional tallies and
up to 20 two-dimensional tallies defined in a single specification of a plane-crossing tally. Thus, the
maximum possible number of tallies defined in a single line of the input file is 40 (multiplied by the
number of planes in the “stack”).
Any of the mentioned seven variables can be limited by specifying its bounds (i.e.,
minimum and maximum values) in the definition of a tally. This is achieved using the keyword
“LIM”, followed by notation of the variable (“E”, “THETA”, “MU”, “R”, “PHI”, “X” or “Y”),
followed by two space-delimited values of the bounds. Those four components may be inserted
anywhere after the geometric parameters (i.e., after the first six numbers in the case of a singleplane tally, or after the first eight numbers in the case of a multi-plane tally). For example, in the
case of the following tally, “scoring” will be possible only for electrons and positrons that cross a
ring-shaped area with inner and outer radii equal to 10 cm and 12 cm, respectively, and with
energies between 0.05 MeV and 0.1 MeV:
ETALLY1 0 0 0 0 0 1 100 0.1 LIM R 10 12 (MU1 PHI1) LIM E 0.05 0.1
Those limits apply to all tallies defined on the same line of the input file. The lower bound is
excluded from allowed values, whereas the upper bound is included in allowed values.
Usage of the variables “R”, “PHI”, “X”, and “Y” requires defining the coordinate system on
the tallying plane (i.e., position of the origin and directions of the coordinate axes X' and Y'). The
origin of that coordinate system is the same point that is specified by the first three numbers in the
specification of a tally (or projection of that point for other planes in the “stack”). If the tallying
plane is not normal to the X axis of the “main” coordinate system, then direction of the X' axis is the
same as direction of the projection of the “main” X axis to the tallying plane. This means that if the
tallying plane is not parallel to the X axis, then direction of the X' axis is the same as direction of the
vector with components (A', B, C), where A' = A − (1 / A) and A, B, C are the components of the
tallying plane’s normal vector with length 1. If the tallying plane is normal to the X axis of the main
coordinate system, then the X' axis is the one that is either the same direction as the Y axis of the
main coordinate system (if the normal is directed in the positive X direction), or opposite to the Y
axis (if the normal is directed in the negative X direction). In any case, direction of the Y' axis on the
tallying plane is such that the X' axis, the Y' axis and the normal vector of the tallying plane are
oriented relative to each other according to the right-hand rule (for example, if the tallying plane is
normal to the X axis, then, according to the previously-defined direction of the X' axis, the direction
of the Y' axis is the same as the direction of the Z axis of the “main” coordinate system). Having
18