gtsimulation.functions#

Functions

CalcGuidingCenter(coo, V, H, T, pitch_deg, M, Z)

CalcLarmorRadii(Hm, T, pitchd, M, Z)

CalcPitchAngles(H, V)

GetLastPoints(RetArr_i, s)

jit([signature_or_function, locals, cache, ...])

This decorator is used to compile a Python function into native code.

gtsimulation.functions.CalcGuidingCenter(coo: ndarray, V: ndarray, H: ndarray, T: float, pitch_deg: float, M: float, Z: int) ndarray[source]#
Parameters:
  • coo (ndarray [m], shape(m,3))

  • V (ndarray, shape(m,3))

  • H (ndarray [nT], shape(m,3))

  • T (float)

  • pitch_deg (float)

  • [MeV] (M)

  • [p+] (Z)

Return type:

center [m]

gtsimulation.functions.CalcLarmorRadii(Hm: ndarray, T: float, pitchd: float, M: float, Z: int) ndarray[source]#
Parameters:
  • Hm (ndarray of float [T], shape(N,) - module of magnetic induction Bm)

  • T (float [MeV] - kinetic energy)

  • pitchd (float [degree] - pitch angle)

  • M (float [MeV] - mass)

  • Z (int [p+] - charge)

Returns:

  • larmor (ndarray of float [m], shape(N,) - larmor radius)

  • Used formulas

  • ————-

  • p = np.sqrt((T+M)**2 - M**2)

  • r = p * sin(pitch) / (q * B)

gtsimulation.functions.CalcPitchAngles(H: ndarray, V: ndarray) ndarray[source]#
Parameters:
  • H (ndarray of float [nT], shape(3,) or (N, 3) - magnetic field vectors)

  • V (ndarray of float [m/s], shape(3,) or (N, 3) - velocity vectors)

Returns:

PitchAngles

Return type:

ndarray [degrees], shape() or (N,) - pitch angles in degrees

gtsimulation.functions.GetLastPoints(RetArr_i, s)[source]#