Quick launch:
Last version:
News:
--
New Fluka Major Release
|
[ <--- prev -- ] [ HOME ] [ -- next ---> ] MGNFIELDsets the tracking conditions for transport in magnetic fields and
also may define an homogeneous magnetic field.
WHAT(1) = largest angle in degrees that a charged particle is allowed to travel in a single step Default = 57 (but a maximum of 30 is recommended!) WHAT(2) = upper limit to the error of the boundary iteration in cm. (minimum accuracy accepted in determining a boundary intersection). It also sets the minimum radius of curvature for stepping according to WHAT(1) Default = 0.05 cm WHAT(3) = minimum step length if the step is forced to be smaller because the angle is larger than WHAT(1). Default = 0.1 cm WHAT(4..6) = Bx, By, Bz components of magnetic field on the coordinate axes (in tesla). Default (Bx = By = Bz = 0.0): user-supplied subroutine MAGFLD is assumed to provide the actual values (see Notes 2 and 3 below) SDUM : not used Default (option MGNFIELD not given): the defaults indicated for WHAT(1-6) apply if a magnetic field exists in the current region because of an ASSIGNMA command. Notes:
Example (number based): *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 ASSIGNMAT 2.0 15.0 30.0 5.0 1.0 0.0 * A magnetic field is present in vacuum regions 15, 20, 25 and 30. MGNFIELD 20.0 0.2 0.10 0.0 0.0 0.0 STEPSIZE -0.05 0.0 20.0 25.0 0.0 0.0 STEPSIZE 0.3 0.0 15.0 0.0 0.0 0.0 * The maximum deviation angle due to magnetic field in any step is set * = 20 degrees, and boundary crossings must be identified with an error * not larger than 2 mm. If the max. angle constraint forces the step to * be shorter than 10 cm, the step will be set = 10 cm in region 20, 25, 30, * but will be set = 3 mm in region 15 (WHAT(1) of STEPSIZE overrides the * general setting due to WHAT(3) of MGNFIELD). Whatever the size of the * step, however, the accuracy of the boundary crossing position must be * equal or better than 0.5 mm in regions 20 and 25 (probably contiguous, * since the same accuracy must be set for regions on either side of a * boundary). The value of the magnetic field will be provided at each * step by the user routine MAGFLD. The same example, name based: *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 ASSIGNMAT VACUUM Reg15th Reg30th 5.0 1.0 0.0 MGNFIELD 20.0 0.2 0.10 0.0 0.0 0.0 STEPSIZE -0.05 0.0 Reg20th Reg20th 0.0 0.0 STEPSIZE 0.3 0.0 Reg15th 0.0 0.0 0.0 |
© FLUKA Team 2000–2024