Skip to content

make_pf_trajectory.m

Basic Information

  SYNTAX:  [Ictraj,Vtraj,tItraj]=make_pf_trajectory(tok_system,vacuum_objs,...
                                 pfcoils_oh,PFmax,Ipref,PF_init,figure_num)

  PURPOSE:  Construct PF coil current and voltage trajectories.

  INPUT:
    tok_system = model of tokamak system produced by build_tokamak_system.m
    vacuum_objs= vacuum model objects for this tokamak
    pfcoils_oh = indices from PF coils [1:ncc] to use for Ip ("ohmic") drive
    PFmax      = maximum current allowed in PF coils, must correspond
          to order of currents represented by tok_system.cc0
    Ipref      = 2 column matrix, 1st col=time(s), 2nd = Ip reference (amps)
    PF_init    = approximate PF coil initial conditions (length ncc)
    figure_num = figure number to start plotting from (default = no plots)

  OUTPUT:
    Ictraj = trajectory of all coil currents
    Vtraj  = trajectory of voltages to produce those currents
    tItraj  = time values corresponding to data in Ictraj, Vtraj

  RESTRICTIONS: Code computes initial condition closest to PF_init and
    compatible with trajectory.

  METHOD:  See M.L.Walker, Calculation of Feedforward Current and Voltage
        Trajectories for Shape and Plasma Current Control, Engineering
        Physics Memo, EPM???

Dependencies