Skip to content

crect2bprobe.m

Basic Information

 PURPOSE:
 Generated B-field at magnetic probe located at rp,zp with angle theta and
 length l from circular coil locatd at rc,zc with rectanular width and height
 dr and dz and carrying current cur.
 Note: All Units are MKS (meters, Amps, Tesla)

 SYNTAX:
        [b]= crect2bprobe(rc,zc,dr,dz,i,r,z,theta,leng)

 INPUT:
       rc,zc=        coordinates of center of rectangular coil
       dr,dz=        width and height of coil
       cur=            current in coil (+=counter clockwise)
       rp,zp=        coordinates of the center of the probe
       angle=        Angle of the coil with the horozontal (deg)
       leng=         length of the probe in the theta direction

 OUTPUT:
       [b] ==        B field at probes

 CAUTION: Present version does not use leng. It computes field only at center

 NOTE: uses magnetics routing fine.m which is single precision

Dependencies