Skip to content

calc_Iq.m

Basic Information

  USAGE: [Iqresp,Iq,eqx] = calc_Iq(q,tok_data_struct,eq,options)

  PURPOSE: Calculate amount of current within q-surfaces and responses thereof

  INPUTS: q: q-values for surfaces
          tok_data_struct: toksys description of tokamak
          eq: equilibrium structure
          options (optional), do help gspert for description

  OUTPUTS: Iqresp: response structure with fields:
                   dIqdis: response of current inside q to conductor currents
                   dIqdip,*dli,*dbphi, etc: exogenous responses
               Iq: current within q-contours
              eqx: extra equilibrium information, help gspert for description

Dependencies