TALK=T;RUN(1,1)
  photon use
  p
  parphi
  1 1 1000
  0.20443E+04 0.15633E+04 CR
  msg The Grid. type return to see Pressure contours.
  gr y 1;pause;cl
  msg Pressure contours in the X-T plane. Type return
  con p1 y 1 fi;1;pause;cl
  msg Axial velocity in the X-T plane. Type return
  con u1 y 1 fi;1;pause;cl
  msg Temperature contours in the X-T plane.
  con tmp1 y 1 fi;1
  enduse
  DISPLAY
  The case considered is 1d transient compressible flow in a
  shock tube. The flow is generated by the rupture of a diaphragm
  separating a driver gas at high pressure (region 4) from a
  gas at low pressure (region 1). This rupture results in the
  movement of a shock wave into the low-pressure gas, and the
  movement of an expansion wave into the high-pressure gas.

  The tube length and time period are chosen so that the
  computation ends before the two waves reflect from the ends of
  the shock tube.

          ------------------------|------------------------
             P4=1.E6 Pa, T4=20 C  |  P1=1.E5 Pa, T1=20 C
          ------------------------|------------------------

  Provision is made for the use of the Van Leer higher-order scheme
  (when HOS = T) and for use of stagnation enthalpy as a variable
  (when HSTAG = T), but both are defaulted = F.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(1D Transient Shock Tube                 )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =1.25E-03
 FSTEP = 1 ;LSTEP = 50
 TFRAC(1)=0.02 ;TFRAC(6)=0.12
 TFRAC(11)=0.22 ;TFRAC(16)=0.32
 TFRAC(21)=0.42 ;TFRAC(26)=0.52
 TFRAC(31)=0.62 ;TFRAC(36)=0.72
 TFRAC(41)=0.82 ;TFRAC(46)=0.92
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 181
 XULAST =1.8
 XFRAC(1)=5.524863E-03 ;XFRAC(21)=0.116022
 XFRAC(41)=0.226519 ;XFRAC(61)=0.337017
 XFRAC(81)=0.447514 ;XFRAC(101)=0.558011
 XFRAC(121)=0.668508 ;XFRAC(141)=0.779006
 XFRAC(161)=0.889503 ;XFRAC(181)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =0.1
 YFRAC(1)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =1.
 ZFRAC(1)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(3)=U1
 NAME(14)=H1 ;NAME(147)=PRPS
 NAME(148)=MACH ;NAME(149)=TMP1
 NAME(150)=DEN1
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(P1,Y,Y,N,N,N,Y)
 SOLUTN(U1,Y,Y,N,N,N,Y)
 SOLUTN(H1,Y,Y,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 SOLUTN(MACH,Y,N,N,N,N,Y)
 SOLUTN(TMP1,Y,N,N,N,N,Y)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 DEN1 = 150
 TEMP1 = 149
 PRPS = 147
 ************************************************************
  Group 8. Terms & Devices
    * Y in TERMS argument list denotes:
    * 1-built-in source 2-convection 3-diffusion 4-transient
    * 5-first phase variable 6-interphase transport         
 TERMS(P1,Y,Y,Y,N,Y,Y)
 TERMS(U1,Y,Y,Y,Y,Y,Y)
 TERMS(H1,Y,Y,Y,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWRH1 = T
 NEWENL = T
 HUNIT =1.
 UCONV = T
 ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
 DENPCO = T
 ************************************************************
  Group 9. Properties used if PRPS is not
  stored, and where PRPS = -1.0 if it is!
 RHO1 = GRND5 ;TMP1 = GRND2
 EL1 =0.
 TSURR =0. ;TEMP0 =0.
 PRESS0 =1.0E+05
 DVO1DT =3.33E-03 ;DRH1DP = GRND5
 RHO1A =0. ;RHO1B =3.4843E-03
 RHO1C =0.71429
 TMP1A =0. ;TMP1B =9.96016E-04
 TMP1C =0.
 TMP2A =0. ;TMP2B =0.
 TMP2C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL = GRND2 ;ENUT =0.
 ENULA =-4.94679E-06 ;ENULB =4.58394E-08
 ENULC =8.0974E-11
 PRNDTL(U1)=1. ;PRNDTL(H1)=-0.0263
 PRT(U1)=1. ;PRT(H1)=1.
 CP1 =1004. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(U1)=1.0E-10
 FIINIT(H1)=2.94465E+05 ;FIINIT(PRPS)=-1.
 FIINIT(MACH)=1.0E-10 ;FIINIT(TMP1)=1.0E-10
 FIINIT(DEN1)=1.0E-10
 
 PATCH(INIHIGH ,INIVAL, 1, 90, 1, 1, 1, 1, 1, 1)
 INIT(INIHIGH ,P1 ,0. ,9.0E+05 )
 INIADD = F
 FSWEEP = 1
 NAMFI =CHAM
 ************************************************************
  Group 12. Patchwise adjustment of terms
  Patches for this group are printed with those
  for Group 13.
  Their names begin either with GP12 or &
 ************************************************************
  Group 13. Boundary & Special Sources
 
 PATCH(LOWP ,HIGH , 181, 181, 1, 1, 1, 1, 1, 50)
 COVAL(LOWP ,P1 ,1000. ,0. )
 COVAL(LOWP ,H1 ,0. , SAME )
 
 PATCH(HIGHP ,LOW , 1, 1, 1, 1, 1, 1, 1, 50)
 COVAL(HIGHP ,P1 ,1. ,9.0E+05 )
 COVAL(HIGHP ,H1 ,0. , SAME )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 100 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=5
 LITER(H1)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-06
 ENDIT(H1)=1.0E-06
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,0.1)
 RELAX(H1,FALSDT,0.1)
 RELAX(PRPS,LINRLX,1.)
 RELAX(MACH,LINRLX,1.)
 RELAX(TMP1,LINRLX,1.)
 RELAX(DEN1,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(MACH)=1.0E+10 ;VARMIN(MACH)=-1.0E+10
 VARMAX(TMP1)=1.0E+10 ;VARMIN(TMP1)=-1.0E+10
 VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 NAMGRD =CONV
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,DOMAIN,PHASE_1_MAT,I,2)
 SPEDAT(SET,GXMONI,TRANSIENT,L,F)
 ************************************************************
  Group 20. Preliminary Printout
 ************************************************************
  Group 21. Print-out of Variables
 INIFLD = T ;SUBWGR = F
    * Y in OUTPUT argument list denotes:
    * 1-field 2-correction-eq. monitor 3-selective dumping      
    * 4-whole-field residual 5-spot-value table 6-residual table
 OUTPUT(P1,Y,N,Y,Y,Y,Y)
 OUTPUT(U1,Y,N,Y,Y,Y,Y)
 OUTPUT(H1,Y,N,Y,Y,Y,Y)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 OUTPUT(MACH,Y,N,Y,N,N,N)
 OUTPUT(TMP1,Y,N,Y,N,N,N)
 OUTPUT(DEN1,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 110 ;IYMON = 1 ;IZMON = 1
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NTPRIN = 5 ;ISTPRF = 1 ;ISTPRL = 100000
 NXPRIN = 20 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 1 ;IPLTL = -1 ;NPLT = 2
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 3 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.4
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
   No PATCHes yet used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
 IDISPA = 1 ;IDISPB = 0 ;IDISPC = 0
STOP