sft2d.calculate_advection
- sft2d.calculate_advection(field, differential_rotation, meridional_flow, grid)[source]
Computes the advection of the magnetic field due to differential rotation and meridional flow.
- Parameters:
field (np.ndarray) – The magnetic field on the grid (2D array).
differential_rotation (np.ndarray) – Angular velocity profile (1D array).
meridional_flow (np.ndarray) – Meridional flow profile (1D array).
grid (dict) – Dictionary containing grid information (‘theta’, ‘phi’, and their spacings).
- Returns:
Updated magnetic field after applying advection.
- Return type:
np.ndarray