Skip to content

ntm_field.m

Basic Information

  SYNTAX:   [g, dgdphi, phi, rq, zq] = ntm_field(equ, q, tok, dphid, iplot)

  PURPOSE:  Calculate fields from NTM measured by magnetic probes
            For examples of use cases type >> ntm_field

  INPUTS:   equ, structure with TokSys equilibrium
            q, safety factor of surface (should be rational value!)
            tok, TokSys description of tokamak or just bpdata(1:5,1:nbp)
            dphid, toroidal degrees between contour points
                   On first call default = 5, then previously used value
            iplot, plot geometry of filament and probes (default = 0)

  OUTPUTS:  g(i,j) = field at probe i, when rq(j), zq(j) is at phi = 0
            dgdphi = derivative of g w.r.t. phi
            rq, zq, phi-phi(j) = toroidal coordinates for current path #j

  RESTRICTIONS: The effect of the NTM is modeled as a 1-A current filament
                running along a field line on the rational surface.
                If I_deficit [A] is current missing because of NTM then
                magnetic probe signals = -sign(jphi)*g*I_deficit [T]

Dependencies