Skip to content

cfil_3d_b.m

Basic Information

 PURPOSE:
 Generates B-field in carthesian 3-space [X] == [x,y,z]
 produced by a circular filament with radius a located with center at 0,0,0
 and center line in +Z direction. Unit current (1A) in counter clockwise
 The coordinate system is centered about the geometric center of filament.
 Note: All Units are MKS (meters, Amps, Tesla)

 SYNTAX:
        [bx,by,bz]= cfil_3d_b(x,y,z,a)

 INPUT:
       [x,y,z] == [X]  vectors of coordinates, one point per row
       [a] ==          vector  of filament radius one filament per row

  Note: If x,y,z & a are matrix or vectors they must be same size.
        Any of the components can be a scalar.

 OUTPUT:
       [bx,by,bz] == [B] vectors of B-fields at point X

 NOTE: use cfilr_3b_b if [X] is inside the filament

Dependencies