spectre.field
Module Contents
- spectre.field.bfield_flow_nonsing(d_sth, phi, sth, Aze, Ate, Azo, Ato, im, in_, lrad, mpol)
- Calculates magnetic field direction at the given point (sth[0], sth[1], phi) in a non-singular volume.
For use in CyRK field integration. Outputs [sdot = Bs / Bz, thetadot = Bt / Bz].
- Args:
d_sth (List[float]): placeholder for the caculted field direction phi (float): phi coordinate sth (List[float]): s and theta coordinates Aze (ndarray[float]): A_z vector potential cosine coefficients Ate (ndarray[float]): A_t vector potential cosine coefficients Azo (ndarray[float]): A_z vector potential sine coefficients Ato (ndarray[float]): A_t vector potential sine coefficients im (ndarray[int]): indices for poloidal modes in_ (ndarray[int]): indices for toroidal modes lrad (int): radial resolution mpol (int): poloidal Fourier resolution
- spectre.field.bfield_flow_sing(d_sth, phi, sth, Aze, Ate, Azo, Ato, im, in_, lrad, mpol)
- Calculates magnetic field direction at the given point (sth[0], sth[1], phi) in a singular volume.
For use in CyRK field integration. Outputs [sdot = Bs / Bz, thetadot = Bt / Bz].
- Args:
d_sth (List[float]): placeholder for the caculted field direction phi (float): phi coordinate sth (List[float]): s and theta coordinates Aze (ndarray[float]): A_z vector potential cosine coefficients Ate (ndarray[float]): A_t vector potential cosine coefficients Azo (ndarray[float]): A_z vector potential sine coefficients Ato (ndarray[float]): A_t vector potential sine coefficients im (ndarray[int]): indices for poloidal modes in_ (ndarray[int]): indices for toroidal modes lrad (int): radial resolution mpol (int): poloidal Fourier resolution