Skip to content

calc_GpxX.m

Basic Information

  SYNTAX:  [Gpxr,Gpxz,Gpxt] = calc_Gpx(pts,tlt,XXpaths,XXfracp)

  PURPOSE:
    Calc Green function matrix between conductor set X whose paths are
    described by cell array XXpaths (see mut_paths2paths),
    and set of points pts given as npts x 3 matrix (columns are R,Z,phi;
    R,Z in m; phi=tor angle in radians).

  INPUTS:
    pts = array specifying points: npts x 3 matrix (cols=R,Z,phi)
    tlt = vector of tilt angles (upward pointing probe has tilt = 0 rad,
        probe on R+1 has tilt = + some rad)
    XXpaths = cell array of paths
    XXfracp = fraction of current in each path (see mut_paths2paths)

  OUTPUTS:
    Gpxr = Green function matrix for Br [T/MA]
    Gpxz = Green function matrix for Bz [T/MA]
    Gpxt = Green function matrix for Btor [T/MA]

  RESTRICTIONS:
    X and Y cannot be the same conductors (use calc_Mxx for that).
    Both Xand Y Paths cell arrays must contain filament matrices in FILC
    convention...
    In a single (contguous) path specified by Paths{ii}, all the fracs
    must be the same as frac(1).

  METHOD:
    Uses green_paths2pts.m (which will call mag_fil_pt.m)

Dependencies