approx_B.m
SYNTAX: [figure_num] = approx_B(Psi0,BR0,BZ0,rgrid,zgrid,figure_num)
PURPOSE: Compare BR0 and BZ0 on X point grid with approximation
derived from Psi0 on X point grid.
INPUT:
Psi0 = flux on X point grid
BR0 = Br on X point grid
BZ0 = Bz on X point grid
rgrid = r coordinates of Xpoint grid
zgrid = z coordinates of Xpoint grid
figure_num = last figure plotted
Psi0,BR0,BZ0 all stored in vector (length nrb*nzb) form
OUTPUT:
figure_num = last figure plotted (updated for figures produced here)
RESTRICTIONS: ASSUMES grid intervals of 3 cm in both r and z.
Dependencies