build_isoflux_response.m
SYNTAX: isoflux_response = build_isoflux_response(isoflux_input)
PURPOSE: Build isoflux response for elements listed in isoflux_input. Response
objects include plasma response if vacuum_model=0 in iso_presp_in.
INPUT:
isoflux_input = (structure)
tokname = Tokamak name
segment_resp_flag = Cell array of flags determining how response on
ctrl segments computed
(see compress_isoflux_response.m)
segment_alg = Segment algorithm (1:Flux 2:Br 3:Bz)
segment_usage = Segment usage (0: Ignored, 1-4:with reference #N, 5:no ref)
(returned by get_isoflux_segment_data)
grid_resp_flag = Cell array of flags determining how response on grid computed
(see compress_isoflux_response.m)
grid_usage = Grid " "
(returned by get_isoflux_grid_data)
ref_flux_source = Sources for reference flux, maximum 4 elements.
Sources specificed by an index number,
where indices access the array:
[segments[1:nseg] grids[1:ngrid].
iso_presp_in = Isoflux plasma response input structure
(see calc_isoflux_plasma_response.m, excludes
response_data and rtefit_def)
use_pcs_isoflux = (WHAT DOES THIS DO??) default 0
Optional inputs:
exe_dir = Path to compiled pcs executable directory (how does this get set?)
segment_names = Cell array of isoflux segment names (defined by ?? if use_pcs_isoflux=1)
grid_names = Cell array of isoflux grid names (defined by ?? if use_pcs_isoflux=1)
post_proc = Statements to evaluate at end of function (not used if not set?).
OUTPUT:
isoflux_response = structure
isoflux_input = Input structure (see above)
rtefit_defns = rtEFIT definition structure (see define_rtefit_objects.m)
nseg = # segments
ngrid = # grids
isodata = Array of response_data structures [nseg + ngrid]
(see read_response.m)
Gcntl = Response of flux at isoflux control points and field at Xpts
to changes in conductor currents. Outputs =
[nsegments fluxes(Wb),flux,Br,Bz at Xpt1(Wb,T),
flux,Br,Bz at Xpt2(Wb,T)...]
Inputs = currents conductors (E,F,vv,Ip) corresponding
to conductors in iso_presp_in.vacuum_objs. Units = A.
Gcntlbetap = Isoflux response to betap disturbance
Gcntlli = " " " li "
Gcntl_err =
Gcntlbetap_err=
Gcntlli_err =
all_response = cell array of all PCS response structures processed during calculation
METHOD:
Dependencies