Skip to content

mrectangle2point.m

Basic Information

  SYNTAX: [M, Mr, Mz] = mrectangle2point(ri, ro, zl, zu, r, z)

  PURPOSE: Calculate mutual inductances between coaxial loops
           First loop has rectangular cross section with edges ri,ro,zl,zu
           Second loop is a thin wire at r, z
           To return only Mr or Mz, indicate which with 'r' or 'z' like this
           Mz = mrectangle2point(ri,ro,zl,zu,r,z,'z')
           Typical relative error is 1e-12, for more info type:
           mrectangle2point info
           Slow very accurate calculation can be made with:
           [M, Mr, Mz] = mrectangle2point('integral2',ri,ro,zl,zu,r,z)

  INPUTS: ri, ro = inner and outer radius of rectangles [meters]
          zl, zu = lower and upper height of rectangles [meters]
          r, z = major radius, height of thin wire [meters]
          Size mixing allowed, outputs are sized like ri+ro+zl+zu+r+z

  OUTPUTS: M = mutual inductance between loops [H]
           Mr, Mz, derivatives of M with respect to r, z