Skip to content

read_response.m

Basic Information

  SYNTAX: response_data = read_response(filename,rtefit_defns)

  PURPOSE: Read response info for control segment or grid.

  INPUT:
     filename = root name of file containing response data (doesn't include
                    prefix "ef_psi", "ef_br", etc. or suffix ".dat").
     rtefit_defns = structure (see define_rtefit_objects.m)

  OUTPUT:
     response_data = structure
        isotype = String specifying grid ("G") or segment ("S")
        filename = Source file for raw response data
        cntl_pts= list of locations (r,z) of control points
        mutuals  = mutual inductances between conductors and control points
        brg      = greens function values from conductors to Br at control pts
        bzg      = greens function values from conductors to Bz at control pts

     First coordinate in data objects mutuals, brgreens, bzgreens corresponds
     to conductors, in the following order: F-coils, next E-coils,
     next vessel elts, last nz x nr = grid elements.
     UNITS are Amp-turns, Wb/rad, and Tesla. (NOTE!! RTEFIT treats E-coils as
     having only 1 turn, so returned data assumes that also.)

  METHOD:  Note that this function takes care of conversion from the rtefit
   convention, which uses a row-first indexing to the efit/matlab convention,
   which uses a column-first indexing.

Dependencies