CERN homepage INFN homepage
FLUKA: BOX Previous Index Next

2. General Rectangular Parallelepiped. Code: BOX

      A BOX is also a Rectangular Parallelepiped, but with arbitrary
      orientation in space. Its use is generally not recommended, since it
      can be replaced by a suitable combination of infinite planes (PLA,
      XYP, XZP, YZP). Planes are easier to define, make tracking more
      accurate and often only a few are needed in a region description.
      A BOX is defined by 12 numbers in the following order:
      V_x, V_y, V_z (coordinates of a vertex), H1_x, H1_y, H1_z,
      H2_x, H2_y, H2_z, H3_x, H3_y, H3_z (x, y and z components of three
      mutually PERPENDICULAR vectors representing the height, width and
      length of the box). Note that it is the user's responsibility to
      ensure perpendicularity. This is best attained if the user has chosen
      high-accuracy input fixed format (IDBG = -10 or -100 in the CG Title card,
      see above), or free format, and the value of each vector component is
      expressed with the largest available number of significant digits.
      A BOX definition extends over 2 cards in default fixed format, or
      over 4 cards in high-accuracy body fixed format.

      Example in default fixed format:
*...+....1....+....2....+....3....+....4....+....5....+....6....+....7..
BOX 18 0.0 0.0 0.0 7.0710678 7.0710678 0.0 -14.142136 14.142136 0.0 0.0 0.0 30.0
* (a parallelepiped with a corner on the origin, with edges 10, 20 and
* 30 cm long, rotated counterclockwise by 45 degrees in the x-y plane)
The same example in high-accuracy body fixed format:
*...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+.
BOX 18 0.0 0.0 0.0 7.071067811865475 7.071067811865475 0.0 -14.14213562373095 14.14213562373095 0.0 0.0 0.0 30.0 The same, in free format: BOX tiltslab 0.0 0.0 0.0 7.071067811865475 7.071067811865475 0.0 -14.14213562373095 14.14213562373095 0.0 0.0 0.0 30.0

Previous Index Next