freegs.gradshafranov.GSsparse4thOrder#
- class freegs.gradshafranov.GSsparse4thOrder(Rmin, Rmax, Zmin, Zmax)[source]#
Bases:
objectCalculates sparse matrices for the Grad-Shafranov operator using 4th-order finite differences.
Methods
__init__(Rmin, Rmax, Zmin, Zmax)Attributes
- centred_1st = [(-2, 0.08333333333333333), (-1, -0.6666666666666666), (1, 0.6666666666666666), (2, -0.08333333333333333)]#
- centred_2nd = [(-2, -0.08333333333333333), (-1, 1.3333333333333333), (0, -2.5), (1, 1.3333333333333333), (2, -0.08333333333333333)]#
- offset_1st = [(-1, -0.25), (0, -0.8333333333333334), (1, 1.5), (2, -0.5), (3, 0.08333333333333333)]#
- offset_2nd = [(-1, 0.8333333333333334), (0, -1.25), (1, -0.3333333333333333), (2, 1.1666666666666667), (3, -0.5), (4, 0.08333333333333333)]#