API Reference
Note
This section documents the main API of the sft2d package.
Top-level functions exposed by sft2d/__init__.py:
|
Computes the advection of the magnetic field due to differential rotation and meridional flow. |
|
Computes the diffusion of the magnetic field using a second-order central difference scheme. |
|
Calculates the maximum allowable time step based on the CFL condition for advection and diffusion. |
|
Creates a uniform grid in spherical polar coordinates (theta, phi). |
|
Creates initial condition based on user choice (Dipole/Read from fits file). |
|
Creates meridional circulation profile based on the solar latitude. |
|
Creates differential rotation profile based on the solar latitude. |
|
Calculates the total unsigned magnetic flux of the surface magnetic fields for a given time duration. |
|
Calculates the axial dipole moment for a given time duration. |
|
Calculates the polar magnetic flux for a given time duration. |
|
Compute the total polar flux in Maxwell (Mx) near the polar caps (20-degree extent). |
|
Plots the butterfly diagram of the surface magnetic field. |
|
Plots the magnetic field strength at the solar surface. |