Skip to content

calc_Ip_gains.m

Basic Information

  SYNTAX:  Ip_gains = calc_Ip_gains(tok_system,vacuum_objs,cccirc, ...
                        pfcoils,IPCS_to_Istates,figure_num)

  PURPOSE:  Calculate "ohmic distribution" of coil currents to use as
        gains to drive Ip in PCS control.

  INPUT:
    tok_system = model of tokamak system produced by build_tokamak_system.m
    vacuum_objs= vacuum model objects for this tokamak
    cccirc     = connection vector
    pfcoils    = subset of PF coils to use in ohmic calculation
    IPCS_to_Istates = mapping from coil indices in PCS to corresp. states
    in models contained in tok_system (examples: for KSTAR it's [1:7],
    for EAST it's [1 7 2 8 3 9 4 10 5 11 6 12])
    figure_num = figure number to start plotting from (default = no plots)

  OUTPUT:
    Ip_gains =  gains to enter into M-matrix in PCS

  RESTRICTIONS:

Dependencies