TALK=T;RUN(1,1)
  photon use
  p
  parphi
  1 1 1000

  gr ou y 1
  msg velocity vectors of cooler gas; press return for hotter
  set vec comp
  1u v1 w1
  vec y 1 sh;pause;vec off;red
  msg velocity vectors of hotter gas; press return for pressures
  set vec comp 2u v1 w1
  vec y 1 sh;pause;vec off;red
  con p1 y 1 fi;0.01
  msg flow is upward at first; time is horizontal
  msg pressure contours; press return for hot-gas reactedness
  msg flow is upward at first; time is horizontal
  pause;con off;red;con rct2 y 1 fi;0.01
  msg hot-gas reactedness contours; press return for cold-gas
  msg flow is upward at first; time is horizontal
  pause;con off;red;con rct1 y 1 fi;0.01
  msg cold-gas reactedness contours

  enduse
  DISPLAY
  Intermingled fragments of burned and unburned combustible gas are
  set in relative motion by a shock wave. The increased entrainment
  rate leads to further chemical reaction, which, depending on the
  presumptions made for fragment size and reactivity, may lead to
  detonation. The following cases provide a parametric study of the
  influences of the interfluid friction factor (which increases as
  fragment size diminishes) and the inter-fluid entrainment factor
  (which is expected to be of the order of 1.0).
  PHOTON commands are provided to facilitate display.

    case 1  cfipc=0.0      ;cmdot=-1.0
    case 2  cfipc=1.0      ;cmdot=-1.0
    case 3  cfipc=1.0e1    ;cmdot=-1.0
    case 4  cfipc=2.0e1    ;cmdot=-1.0
    case 5  cfipc=5.0e1    ;cmdot=-1.0
    case 6  cfipc=1.0e2    ;cmdot=-1.0
    case 7  cfipc=1.0      ;cmdot=-1.0e1
    case 8  cfipc=5.0e1    ;cmdot=-1.0e1
    case 9  cfipc=1.0e1    ;cmdot=-1.0e1
    case 10 cfipc=1.0e2    ;cmdot=-1.0e1
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(1-D transient shock-induced prpgtn :W979)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =1.0E-03
 FSTEP = 1 ;LSTEP = 100
 TFRAC(1)=1.0E-02 ;TFRAC(21)=0.21
 TFRAC(41)=0.41 ;TFRAC(61)=0.61
 TFRAC(81)=0.81
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 100
 XULAST =1.
 XFRAC(1)=1.0E-02 ;XFRAC(11)=0.11
 XFRAC(21)=0.21 ;XFRAC(31)=0.31
 XFRAC(41)=0.41 ;XFRAC(51)=0.51
 XFRAC(61)=0.61 ;XFRAC(71)=0.71
 XFRAC(81)=0.81 ;XFRAC(91)=0.91
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =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 = F
 EQUVEL = F
 NAME(1)=P1 ;NAME(3)=1U
 NAME(4)=2U ;NAME(9)=COLD
 NAME(10)=HOT ;NAME(16)=RCT1
 NAME(17)=RCT2 ;NAME(150)=MDOT
    * 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(1U,Y,Y,N,N,N,Y)
 SOLUTN(2U,Y,Y,N,N,N,Y)
 SOLUTN(COLD,Y,Y,N,N,N,Y)
 SOLUTN(HOT,Y,Y,N,N,N,Y)
 SOLUTN(RCT1,Y,Y,N,N,N,Y)
 SOLUTN(RCT2,Y,Y,N,N,N,Y)
 SOLUTN(MDOT,Y,N,N,N,N,Y)
 INTMDT = 150
 ************************************************************
  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(1U,Y,Y,Y,Y,Y,Y)
 TERMS(2U,Y,Y,Y,Y,N,Y)
 TERMS(COLD,Y,Y,Y,Y,Y,Y)
 TERMS(HOT,Y,Y,Y,Y,N,Y)
 TERMS(RCT1,N,Y,Y,Y,Y,Y)
 TERMS(RCT2,N,Y,Y,Y,N,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWRH1 = T
 NEWRH2 = T
 EQDVDP = F
 ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
 ************************************************************
  Group 9. Properties used if PRPS is not
  stored, and where PRPS = -1.0 if it is!
 RHO1 = GRND3 ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =1.0E+05
 DVO1DT =0. ;DRH1DP = GRND3
 RHO1A =2.682695E-04 ;RHO1B =0.714286 ;RHO1C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 RHO2 = GRND3 ;TMP2 =0. ;EL2 =0.
 DVO2DT =0. ;DRH2DP = GRND3
 RHO2A =5.365391E-05 ;RHO2B =0.714286 ;RHO2C =0.
 ENUL =1.0E-05 ;ENUT =0.
 DRH2DP = GRND3
 PHINT(1U)=-2.022E+04 ;PHINT(2U)=-2.022E+04
 PHINT(COLD)=-2.022E+04 ;PHINT(HOT)=-2.022E+04
 PHINT(RCT1)=-2.022E+04 ;PHINT(RCT2)=-2.022E+04
 PRNDTL(1U)=1. ;PRNDTL(2U)=1.
 PRNDTL(COLD)=1. ;PRNDTL(HOT)=1.
 PRNDTL(RCT1)=1. ;PRNDTL(RCT2)=1.
 PRT(1U)=1. ;PRT(2U)=1.
 PRT(COLD)=1. ;PRT(HOT)=1.
 PRT(RCT1)=1. ;PRT(RCT2)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 CFIPS = GRND2
 RLOLIM =0. ;CMDOT =-1.
 CFIPA =0. ;CFIPB =0.
 CFIPC =0. ;CFIPD =0.
 CINT(P1)=1. ;CINT(1U)=1.
 CINT(2U)=1. ;CINT(COLD)=1.
 CINT(HOT)=1. ;CINT(RCT1)=1.
 CINT(RCT2)=1.
 PHINT(P1)=-2.022E+04 ;PHINT(1U)=-2.022E+04
 PHINT(2U)=-2.022E+04 ;PHINT(COLD)=-2.022E+04
 PHINT(HOT)=-2.022E+04 ;PHINT(RCT1)=-2.022E+04
 PHINT(RCT2)=-2.022E+04
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=0. ;FIINIT(1U)=10.
 FIINIT(2U)=10. ;FIINIT(COLD)=0.9
 FIINIT(HOT)=0.1 ;FIINIT(RCT1)=1.0E-10
 FIINIT(RCT2)=1. ;FIINIT(MDOT)=1.0E-10
   No PATCHes yet used for this Group
 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(ENTRY ,WEST , 1, 1, 1, 1, 1, 1, 1, 100)
 COVAL(ENTRY ,1U ,0. ,10. )
 COVAL(ENTRY ,2U ,0. ,10. )
 COVAL(ENTRY ,COLD, FIXFLU ,9. )
 COVAL(ENTRY ,HOT , FIXFLU ,0.2 )
 COVAL(ENTRY ,RCT1,0. ,0. )
 COVAL(ENTRY ,RCT2,0. ,1. )
 
 PATCH(CHSOTERM,VOLUME, 1, 100, 1, 1, 1, 1, 1, 100)
 COVAL(CHSOTERM,RCT2, GRND7 ,1. )
 
 PATCH(SHSO ,CELL , 1, 1, 1, 1, 1, 1, 1, 1)
 XCYCLE = F
 EGWF = F
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 4 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 ISWR1 = 1 ;ISWR2 = 10000
 SELREF = T
 RESFAC =1.0E-03
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(1U)=10
 LITER(2U)=10 ;LITER(COLD)=1
 LITER(HOT)=1 ;LITER(RCT1)=20
 LITER(RCT2)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(1U)=1.0E-03
 ENDIT(2U)=1.0E-03 ;ENDIT(COLD)=1.0E-03
 ENDIT(HOT)=1.0E-03 ;ENDIT(RCT1)=1.0E-03
 ENDIT(RCT2)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(1U,FALSDT,0.1)
 RELAX(2U,FALSDT,0.1)
 RELAX(COLD,LINRLX,0.4)
 RELAX(HOT,LINRLX,0.4)
 RELAX(RCT1,FALSDT,1.0E+09)
 RELAX(RCT2,FALSDT,1.0E+09)
 RELAX(MDOT,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(1U)=1.0E+06 ;VARMIN(1U)=-1.0E+06
 VARMAX(2U)=1.0E+06 ;VARMIN(2U)=-1.0E+06
 VARMAX(COLD)=1. ;VARMIN(COLD)=1.0E-06
 VARMAX(HOT)=1. ;VARMIN(HOT)=1.0E-06
 VARMAX(RCT1)=1.0E+10 ;VARMIN(RCT1)=-1.0E+10
 VARMAX(RCT2)=1.0E+10 ;VARMIN(RCT2)=-1.0E+10
 VARMAX(MDOT)=1.0E+10 ;VARMIN(MDOT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 CHSOA =1.0E+05 ;CHSOB =6.
 SPEDAT(SET,GXMONI,TRANSIENT,L,F)
 SPEDAT(SET,MAKE,UD75,C,=0)
 SPEDAT(SET,STORED,UD75,C,=1U[75]-2U[75]!ZSLFIN)
 SPEDAT(SET,PRINT,VELDIFFIX=75,C,=UD75)
 SPEDAT(SET,MAKE,PD75,C,=0)
 SPEDAT(SET,STORED,PD75,C,=P1[75]-P1[76]!ZSLFIN)
 SPEDAT(SET,PRINT,P1_DIFFIX=75,C,=PD75)
 SPEDAT(SET,PRINT,VELDIF!TIMEPLOT,C,=UD75)
 SPEDAT(SET,PRINT,P1_DIF!TIMEPLOT,C,=PD75)
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 ************************************************************
  Group 21. Print-out of Variables
 INIFLD = F ;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(1U,Y,N,Y,Y,Y,Y)
 OUTPUT(2U,Y,N,Y,Y,Y,Y)
 OUTPUT(COLD,N,N,N,N,N,N)
 OUTPUT(HOT,Y,N,Y,Y,Y,Y)
 OUTPUT(RCT1,Y,N,Y,Y,Y,Y)
 OUTPUT(RCT2,Y,N,Y,Y,Y,Y)
 OUTPUT(MDOT,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 99 ;IYMON = 1 ;IZMON = 1
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = F ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NTPRIN = 20 ;ISTPRF = 1 ;ISTPRL = 10000
 NXPRIN = 10 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 2 ;IPLTL = 4 ;NPLT = -1
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 1 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.2
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
 
 PATCH(PROFIL1 ,PROFIL, 1, 100, 1, 1, 1, 1, 1, 100)
 PLOT(PROFIL1 ,P1 ,0. ,0. )
 PLOT(PROFIL1 ,COLD,0. ,1. )
 
 PATCH(PROFILE ,PROFIL, 1, 100, 1, 1, 1, 1, 1, 100)
 PLOT(PROFILE ,1U ,-1. ,-1. )
 PLOT(PROFILE ,2U ,-1. ,-1. )
 PLOT(PROFILE ,RCT2,0. ,1. )
 PLOT(PROFILE ,MDOT,0. ,0. )
 
 PATCH(TIMEPLOT,PROFIL, 100, 100, 1, 1, 1, 1, 1, 100)
 PLOT(TIMEPLOT,HOT ,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
 IDISPA = 5 ;IDISPB = 0 ;IDISPC = 0
STOP