Skip to content

bld_isoflux_response.m

Basic Information

  SYNTAX:  [Gcntl,Gcntlbetap,Gcntlli] = bld_isoflux_response(isoflux_defns, ...
            tok_system,RX,ZX,good_X_pt,do_model_validation,output_objs)

  PURPOSE:  Build the Greens functions to isoflux segments and grid to
    incorporate into output equation of state space model.

  INPUT:
    isoflux_defns = structure containing:
    nsegments = number of segments in isoflux control
    ngrids    = number of segments in isoflux control
    segment_resp_flag = scalar or vector value. If vector, this is the
        set of indices in each control segment to use to define response.
        If scalar, 1=average over segment, otherwise use center point.
       bgrid_resp_loc = scalar or vector.  If vector, these are the (R,Z)
        target location(s) ([R,Z] or [R1,Z1,R2,Z2]).  If scalar, 1=
        average over grid, 2=use pt nearest equil Xpt, else use grid center.
    tok_system = data structure created by build_tokamak_system.m
    RX,ZX = if only 1 Xpt grid, these define Xpt location for calculation
        of shape response; for DND, these are length 2 vectors, first
               entry for bottom Xpt,2nd for top (used only if bgrid_resp_loc=2)
    good_X_pt = set to 1 if values of RX, ZX are known good, else 0
    do_model_validation =
    output_objs = data structure created by plasma_output.m

  OUTPUT:
    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). Units = A.
    Gcntlbetap = response of betap to same conductors
    Gcntlli    = response of li to same conductors

Dependencies