17 | | When '''bmt_precession=1''' an initial polarization vector is generated for each particle. Let be '''n''' the '''normed''' vector with the same direction as the vector (polar_x, polar_y, polar_z), with does not need to be normed. Let be R, the norm of this last vector. The initial polarization vector is generated as a normed vector parallel to '''n''' in the same direction as '''n''' with the probability R, in the opposite direction with the probability (1-R). So, if R=1, the whole beam will be polarized in the '''n''' direction. |
| 17 | When '''bmt_precession=1''' an initial polarization vector is generated for each particle. Let be '''n''' the '''normed''' vector with the same direction as the vector (polar_x, polar_y, polar_z), which does not need to be normed. Let be R, the norm of this last vector. The initial polarization vector is generated as a normed vector parallel to '''n''' in the same direction as '''n''' with the probability R, in the opposite direction with the probability (1-R). So, if R=1, the whole beam will be polarized in the '''n''' direction. |