bgreens_fine.m
@(#)bgreens_fine.m 1.4 02/11/08
SYNTAX: [brgreens,bzgreens,bpgreens] = ...
bgreens_fine(coil_data,bprobe_data,nrect,verbose)
PURPOSE: Compute Greens functions from axisymmetric current carrying
conductors, each of whose cross-section is a parallelogram, to Br,
Bz, and angled probe measurement at a set of specified points.
This version of code is based on low level calculation using fine.m.
Can be used to compute Br,Bz Greens functions for arbitrary points in
space.
INPUT:
coil_data = data describing geometry of coil set
Format of this data has each column = [Z;R;dZ;dR;AC;AC2], where:
Z = z centroids of conductors (m)
R = r centroids of conductors (m)
dZ = height of conductors (m)
dR = width of conductors (m)
AC = angle between coil and horizontal (degrees)
AC2 = angle between coil and horizontal (degrees)
At most one of AC, AC2 is nonzero and indicates type of parallelogram:
xxxx
xxxx x
xxxx x
xxxx x --- xxxxxxxxxxxxx
xxxx x | xx xx
--- xxxx x | xx xx
| x X xxxx dZ xx xx
| x (R,Z) xxxx | xx X xx
dZ x xxxx | xx (R,Z) xx
| x xxxx | xx xx
| x xxxx | xx xx
_|_ xxxx ^ --- xxxxxxxxxxxxx ^
AC ) AC2 )
|----------dR----------| |---dR------|
bprobe_data = Bprobe data, 5 x number of probes (or any msmnt pts):
bprobe_data(1:6,:)=[Z;R;Ang;length(m);Ip coeff;width(m)]
(abs(4th row) specifies width if < 0)
(5th row is ignored, so 4 x number probes also works)
(6th row is optional, assumed 0.02m if not provided)
nrect = rectangle partitioning for conductor set (see header
documentation for bld_subelements.m)
verbose = print/display verbose info. 0 = no print/display. Numbers>0
give increasingly more information/displays.
OUTPUT:
brgreens = Br Greens function matrix, with rows corresponding to probes,
columns to conductors (Tesla/MA)
bzgreens = Bz Greens function matrix, with rows corresponding to probes,
columns to conductors (Tesla/MA)
bpgreens = Greens function matrix to field measured by bprobes, with
rows corresponding to probes, columns to conductors (Tesla/MA)
RESTRICTIONS:
If probe width is specified in 6 row bprobe_data AND there is length<0
in row 4, the row 4 specified length prevails. Probe will be treated as
flat if width specified in row 4 (6 row convention allows l & w)
METHOD: Each conductor is partitioned into a bunch of tiny rectangles. All
bgreens are computed for these rectangles, then combined at the end.
Calculation is done in 2 steps:
(1) use filament to filament calculation for all subelements
(2) replace those subelement calculations which would have inaccurate
results, based on geometric information, with more accurate calculation.
WRITTEN BY: Mike Walker ON 7/26/99
10/03/03 JAL1 remove one line commented below
10/30/07 NWE length=0 "saddle probes" treated as single point
02/08/08 NWE applies probe cross section width if specified in
bprobe_data(6,:) or length<0 in bprobe_data(4,:).
Dependencies