Skip to content

mpolygon2point.m

Basic Information

  SYNTAX:  [M, Mr, Mz] = mpolygon2point(rpolygon, zpolygon, r, z, D)

  PURPOSE:  Calculate mutual inductances between coaxial loops
            First loop has cross section described by rpolygon, zpolygon
              which contain coordinates for the corners
            Cross section of second loop is a point (thin wire) at r, z

  INPUTS: rpolygon, zpolygon = coordinates of first current loop [meters]
          r, z = major radius, height of second loop [meters]
          D, choice of derivatives in Mr, Mz, see below

  OUTPUTS: M = mutual inductance between loops [H]
           Mr, Mz, derivatives w.r.t. r, z
           if D = 1, derivatives are w.r.t. rigid shifts of rp, zp
           if D = 2, derivatives are w.r.t. r, z

  RESTRICTIONS: The mutual M is for uniform current density across polygon

Dependencies