plasma_response_vst.m
USAGE: vst_data = plasma_response_vst(equil_data,iefit,tokamak,tok_data_struct,ichooseq)
PURPOSE: Calculate plasma response objects using vst in corsica
INPUTS:
eq_file = name of an efit gfile or a saved corsica equilibrium
tokamak = device to construct model objects for (e.g. 'NSTX','KSTAR',etc)
vac_objs = structure containing:
mcc, mvv, mcv, mpc, mpv, resc, resv, zg, rg, ecdata
(Note that imks and iterminal in this structure define the
units of the data objects to be produced. imks=1 gives MKS
units, otherwise units are MA,uH,uOhms. iterminal=1 gives
terminal mode, 0 gives lumped.)
ichooseq= equilibrium file type:
1 = efit_gfile
2 = corsica generated flat files
3 = saved corsica equilibrium
OUTPUTS:
vst = structure containing:
METHOD: The matlab script generates a basis script file and invokes corsica
with this file to generate plasma response objects with vst.
After that execution returns to matlab.
VERSION: @(#)plasma_response_vst.m 1.2 06/25/09
Dependencies