gtsimulation.functions#
Functions
|
|
|
|
|
|
|
|
|
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]#
- gtsimulation.functions.CalcLarmorRadii(Hm: ndarray, T: float, pitchd: float, M: float, Z: int) ndarray[source]#
- Parameters:
- 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