make_PCS_V_trajectory.m
SYNTAX: Vtraj= ...
make_PCS_V_trajectory(Ictraj,Iptraj,xtraj,Vlimits,diag_objects)
PURPOSE: Make voltage trajectory from user-defined current
trajectories for SC coils - prototype for implementation in PCS.
This version uses polynomials to represent sections between vertices
in PCS waveforms.
INPUT:
Ictraj = current trajectories specified by user, each column represents
a different coil - PF [1,2,3,4,5,6,7,8,11,12,13,14]
Iptraj = plasma current trajectory
xtraj = x values of waveform vertices for coil trajectories
Vlimits = nx2 matrix = [Vmin, Vmax], voltage limits for coil circuits
diag_objects = structure, contains mutual inductances Mcc,Mcp,Mcv,Mvp
with rows/cols corresponding to Ictraj,Ivtraj currents
OUTPUT:
Vtraj = voltage trajectories in same (PCS) order
RESTRICTIONS: Assumes coils are superconducting, so coil resistance is
not accounted for in voltage trajectory calculation.
Dependencies