Skip to content

postpr_jfit_dev.m

Basic Information

  USAGE:  >> postpr_jfit_dev

  PURPOSE: Script to post-process JFIT results to get q, Ihalo, etc...
        (replaces old jfit_postpr script; updated for 2009 JFIT)

  INPUTS:
       jfit_file = JFIT data file written by jfit_fun
       tipsit = time for plotting of equilibrium flux/field [s]
               (tipsit takes precedence over ipsit if exists)
       ipsit = (optional) index for time to plot eq flux/field if tipsit
               doesn't exist...
       ilcfs=flag to select LCFS finding algorithm. 1=anglebased, 2=line segment
              intersection alg., 0=omit lcfs calc (psi only; AlHyatt flag)
    idopsit = flag to accumulate psi_grid(t) in Wb/rad (1=do, 0=skip)
    savetype = (optional) 'MAT' for standard (present Matlab version) format,
               or (e.g.) 'V13' for R13 format
    isave = save postpr*.mat file
    qelim = max plot limit for qa, qe (def=20)

    Defined in jfit_file data:
       jfit_obj_file = file containing tok_dat_struct (must match JFIT calc)

  OUTPUTS:
       Save file "postpr_tmp_<shot>.mat" and plots...

  RESTRICTIONS:
       Object file must match objects used in JFIT calculation.

  METHOD:

Dependencies