build_model.m
SYNTAX: build_model
PURPOSE: Generate data objects which can be used to construct complete
system model, based on linearized plasma response.
INPUT:
shot = shot number
tmodel = time to derive model from (in ms)
tokamak = name of device to build model for
tok_data_struct = vacuum data objects for this device
output_irzresp = irzresp for output equation object generation
eqdir = directory where efit equilibrium files are located
efit_source = tree in mdsplus to get equilibrium from
(only one of either eqdir or efit_source should be specified)
outflag = flag to determine what output files to produce
0 = none
1 = run plasma_output, save results
2 = run plasma_output2, save results
3 = run both plasma_output, plasma_output2 - save (default)
Rp = plasma resistance (only needed if outflag>0)
OUTPUT: files =
drzdi_<shot>_<tmodel>.mat
out_objs_<shot>_<tmodel>.mat
out2_objs_<shot>_<tmodel>.mat
Dependencies