mutind_near.m
SYNTAX: mutual = mutind_near(rcurr,zcurr,rdim,zdim,rpsi,zpsi)
PURPOSE: Calculate mutual inductance from current flowing in a loop
of rectangular cross-section to a filamentary loop which is nearby.
This function is meant to handle carefully the evaluation of mutual
inductances for loops which are very close to one another.
INPUT:
rcurr= radius of centroid of current source (m)
zcurr= z-dimension (height) of centroid of current source (m)
rpsi = radius of point at which induced flux will be measured (m)
zpsi = z-dimension (height) of point where induced flux is measured (m)
rdim = r dimension of rectangle in which current flows (m)
zdim = z dimension of rectangle in which current flows (m)
nsplit = number of pieces to split each coordinate (z,r) of current
source into for calculation (optional, default=[8,8])
Variables rcurr,zcurr, rpsi, and zpsi must be same size (scalar or vector).
Variables rdim, zdim must be scalar or same size as rcurr.
OUTPUT:
mut = calculated mutual inductance (Henries) from the current source
at each (rcurr(i),zcurr(i)) to measurement at (rpsi(i),zpsi(i))
Dependencies