Skip to content

ohmic_dist.m

Basic Information

  USAGE:
        [i_ohmic,fl,br,bz,rbs,zbs,err] = ...
     ohmic_dist(rbs,zbs,rcc,zcc,drcc,dzcc,mk_bs_uniform,minimize_i)

   Also can be called as script:
         ohmic_dist

  PURPOSE: Calculates the Best Ohmic current distribution for a set of F coils
           to a plasma boundary to generate 1Vs in boundary

  INPUTS: [default]

     rbs, zbs=          R,Z Plasma boundary Points   (m)
     rcc,zcc,drcc,dzcc= Rectangular Coil center and widths (m)
     (e.g. use the 2nd, 1st, 4th, and 3rd rows of standard fcdata object)
     mk_bs_uniform=     Makes rbs, zbs a uniform poloidal grid scale [1]
                        if >1 then makes mk_bs_uniform number of points
                        if =1 then makes length(rbs) number of uniform points
     minimize_i =       =0.1;  Includes currents in opts. to reduce +-I [0]
                        The value of minimize_i weights how much I smooting
                        Value of 0.1 reasonably balances I. err~ 0.25
  OUTPUTS:
     i_ohmic =       Optimum Ohmic Current Dist. for 1Vs on Boundary (A-Turns)
     fl      =          Flux on Boundary (Vs)
     br      =          Br-field on Boundary (T)
     bz      =          Bz-field on Boundary (T)
     rbs zbs =          R,Z boundary points used in analysis (m)
                        NOTE: rbs,zbs changed to uniform version of input
     err     =          Average Error in booundary flux value (Delta_Vs/Vs)

  RESTRICTIONS:
     uses square coil for all d3d type trapazoidal coils (small effect)
     Produces Amp-Turns. Use c_ohmic./fcnturn to convert to coil terminal Amp


  METHOD:
     Determine optimum Coil current distribution using least square technique to
     produce a uniform 1 Vs flux on the boundary

Dependencies