bgreens_distrib.m
SYNTAX: [brgreens,bzgreens,bpgreens] = ...
bgreens_distrib(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.
(Use mutind_distrib with bcoil_data = filaments to compute Greens
functions for flux.) 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):
bpdata(1:5,:)=[Z;R;Ang;length(m);Ip coeff]
(5th row is ignored, so 4 x number probes also works)
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:
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.
Dependencies