Skip to content

calc_iso.m

Basic Information

  USAGE: [isoresp,iso] = calc_iso(rziso,tok_data_struct,resp,eq)

  PURPOSE: Calculate flux, field and responses thereof at isoflux points

  INPUTS: rziso: R, Z of isoflux points arranged as [R(:) Z(:)] (unit: meters)
          tok_data_struct: toksys description of tokamak
          resp (optional): the output from a response model (gspert or rzrig)
          eq (optional): either equilibrium with field psizr or psizr itself

  OUTPUTS: isoresp: response structure with fields:
                    dpsidis: flux response to conductors [Wb/A]
                    dpsidip,*dli,*dbetap, etc: exogenous responses
                    dbrdis, dbzdis: Br, Bz responses to conductors [T/A]
                    dbrdip,dbzdip, etc: exogenous Br, Bz responses
               iso: equilibrium structure with fields:
                    psi: flux at rziso points
                    br, bz: Br, Bz at rziso points

  RESTRICTIONS: rziso must be within the grid

Dependencies