Skip to content

mut_rec2recX.m

Basic Information

  SYNTAX:  mut = mut_rec2rec(zphis,thetas,rs,tilts,dzphis,hs, ...
                Rref,nfils,iplot)

  PURPOSE:  Calculate mutuals between 2 rectangular picture frame coils
        in cylindrical or toroidal geometry (with straight legs parallel
        to axial or toroidal direction respectively but not necessarily
        at same minor or major radius).

  INPUTS: (vectors are all 1x2)
    zphis = vector of z (axial) (OR phi=toroidal angle) positions of frame
        *centers*. If Rref=0, zphis specifies z positions. If Rref=1,
        zphis specifies phi toroidal angles.  [m if z, rad if phi]
    thetas = vector of theta (angular) positions of frame centers [rad]
        (absolute cylindrical angle if Rref=0, or poloidal angle
        relative to the major axis of the torus at R=Rref for Rref~=0)
    rs = vector of r (minor radial) positions of frame centers for Rref=0,
        or R (major radial) positions of frame centers for Rref~=0 [m]
    tilts = angle made by normal vector to picture frame (generated by
        right hand rule from coil current) rel to minor radius if
        Rref=0, or relative to major radius R if Rref~=0 [rad]
        (If Rref=0, when coil frame is tangent to cyl the tilt = 0)
        (If Rref~=0, when coil frame is *vertical* the tilt = 0)
    dzphis = vector of full widths of frames (linear width in [m] for Rref=0
        and angular width dphi in [rad] for Rref~=0)
    hs = vector of full heights of frames [m]
    Rref = (opt) Reference major radius for toroidal case AND flag to specify
        whether cylindrical (=0, default) or toroidal (NOT =0) (units
        of [m] in toroidal case, and used only as flag in cylindrical)
        (def = 0)
    nfils = (opt) vec of # of sub-filaments to split legs into (def=10)
    iplot = (opt) if =1, plot 3D geometry (def=0)

  OUTPUTS:
    mut = mutual inductance [uH]

  RESTRICTIONS:
    Presently set up for only 2 coils...

  METHOD:
    Uses Jim Leuer's mut_fil_fil.m (3d filamentary segment to filamentary
    segment mutual calculator). For cylindrical geometry, r,theta plane in
    this code correspond to x,y plane in mut_fil_fil, and z = z (axial
    direction of cylinder). For toroidal geometry, r,phi in this code
    correspond to x,y plane in mut_fil_fil (which is the plane defined by
    major radius and toroidal angle phi in torus), and theta is poloidal
    angle in tokamak convention. The z direction is thus the same as the
    usual convention for tokamak geometry: poloidal, or "vertical" z.
    Rref is used as ref major radius of torus for applying poloidal angles.

Dependencies