green_near.m
SYNTAX: [br,bz,dbrdr,dbrdz,dbzdr,dbzdz] = ...
green_near(rcurr,zcurr,rdim,zdim,rb,zb,nsplit)
PURPOSE: Calculate green function 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 green
functions 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)
rb = radius of point at which induced field will be measured (m)
zb = z-dimension (height) of point where induced field 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 (option, default=[8,8])
Variables rcurr,zcurr, rb, and zb must be same size (scalar or vector).
Variables rdim, zdim must be scalar.
OUTPUT:
br = calculated green function for br (Tesla/Amp)
bz = calculated green function for bz (Tesla/Amp)
RESTRICTIONS:
METHOD: Break up rectangle into small pieces. Use standard method
to calculate
values for pieces not containing measurement point. Use some other
approximation (what?) for piece containing measurement point. Add up all
values and divide by number of pieces (i.e. divvy up current evenly
into the small pieces).
Dependencies