Skip to content

calc_vv_eddy.m

Basic Information

  @(#)calc_vv_eddy.m    1.3 04/21/08

  SYNTAX:  [ivv,t_ivv] ...
          = calc_vv_eddy(shotnum,tok_data_struct,t,icoils,options,plasma)

  PURPOSE: Calculates VV eddy currents from PF coil ramps, with plasma
           effects optionally included.

  INPUT: [default]
       shotnum         = shot number
     tok_data_struct = TokSys vacuum object
     t               = time vector for current waveforms
     icoils          = coil current matrix (A) (dim = [ntimes,ncoils]
     options
        cutoff       = Cutoff frequency for filtering I_dot (Hz) [100Hz]
        cor_offdrf   = dI/dt data correction (0=none 1=offset 2=drift) [0]
        idxvv        = indices of VV elements to use in calculation [1:nv]
        inc_pl       = include Ip effects (1=yes 0=no) [0]
                          (requires plasma structure if 1)
        ivv0         = initial vv currents (size = length(idxvv)) (A) [0]
        n_offdrf     = # points to use for offset or drift correction [100]
        pause_it     = pause after plots for inspection (1=yes 0=no) [0]
        ploted       = plot eddy current analysis (1=yes 0=no) [1]
        resv_fac     = multiplication factor for VV resistance [1]
        t0           = starting time for VV current integration (s) [0]
     plasma
        ip           = plasma current vector (A)
        r_pl         = plasma major radius (m)
        a_pl         = plasma minor radius (m)
        k_pl         = plasma elongations [1.0]
        d_pl         = plasma triangularity [0]
        n_pl         = # pts defining plasma edge [100]
        z_pl         = plasma vertical positions (m) [0]

  OUTPUT:
       ivv           = VV eddy current vectors (size = [nt,nv]);
       t_ivv         = VV eddy current time vector (size = nt)

  RESTRICTIONS:
     1. Assumes that all data is uniformly sampled & in same time intervals

  METHOD:

  WRITTEN BY:  Jim Leuer    ON  9/28/06     taken from calc_eddy_flux

  MODIFICATIONS:
     2008-03-03  NWE   generalized to use with any tokamak, removed data
                       retrieval
 =============================================================================

Dependencies