Skip to content

read_mhdin.m

Basic Information

  USAGE:  >>read_mhdin

  PURPOSE: reads efit file mhdin.dat. All variables are added in UPPER CASE

  INPUTS: [default]
     filename = ['mhdin.dat'];  EFIT mhdin.dat file name Can contain directory

   Note: below dimensions are needed only if geometry is read below namelist
         defaults for D3D

     nfcoil = [18];  # of F-coils; must be specified for non-D3D (Opt.)
                        defaults to D3D values of nfcoil=18
     necoil = [122]; # number of E-coils elements specify for non-D3D (Opt.)
                        defaults to D3D value of nesum=6
     nsilop = [41];  # flux loops, needed if not read in namelist (opt.)
     nvesel = [24];  # vessels, needed if not read in namelist (opt.)

  OUTPUTS:
    all name list items: IGRID, RLEFT, RRIGHT, ... FCID, FCTURN, ...
    PF coil geometry if nfcoil>0,
    E-coil geometry if nesum>0
    ireadok = flag to report good read of gfile (0=bad, 1=good)

  CAUTION: Namelist is read with to_upper=+1 which makes all variables UPPER
           CASE.
           New read_namelist in /thor/leuer/matlab/util/read_namelist.m
           allows change of case. We want to read and make all variables UC

  To change UPPER CASE to lower case use:
  mhdin_list= mk_uc_lc_var;  makes all lower case variables (nothing to UPCASE)
  mhdin_list= mk_uc_lc_var('-remove_upper','*');  remove upper case

Dependencies