TALK=T;RUN(1,1)
  AUTOPLOT USE
  file
  phi 5

  da 1
  au1
  screen
  msg 1st-phase velocity at t=1s
  pl 1
  msg press  to continue
  pause
  cl
  da 1
  bu2
  screen
  msg 2nd-phase velocity at t=1s
  pl 1
  msg press  to continue
  pause
  cl
  da 1
  gas
  screen
  msg 1st-phase volume fraction at t=1s
  pl 1
  msg press  to continue
  pause
  cl
  da 1
  dh2
  screen
  msg 2nd-phase enthalpy at t=1s
  pl 1
  msg press  to continue
  pause
  cl
  da 1
  p1
  screen
  msg pressure at t=1s
  pl 1
  msg press e to END
  enduse
  DISPLAY
  This run illustrates what happens in a 1D thermosyphon with a
  constant heat-flux boundary condition.
  Interesting variants include: changes to the boundary conditions;
  changes to the initial distributions of water and steam;and
  changes to the interphase processes constants.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(1D TRANSIENT THERMOSYPHON :         W422)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =1.
 FSTEP = 1 ;LSTEP = 100
 TFRAC(1)=1.0E-02 ;TFRAC(2)=0.02
 TFRAC(3)=0.03 ;TFRAC(4)=0.04
 TFRAC(5)=0.05 ;TFRAC(6)=0.06
 TFRAC(7)=0.07 ;TFRAC(8)=0.08
 TFRAC(9)=0.09 ;TFRAC(10)=0.1
 TFRAC(11)=0.11 ;TFRAC(12)=0.12
 TFRAC(13)=0.13 ;TFRAC(14)=0.14
 TFRAC(15)=0.15 ;TFRAC(16)=0.16
 TFRAC(17)=0.17 ;TFRAC(18)=0.18
 TFRAC(19)=0.19 ;TFRAC(20)=0.2
 TFRAC(21)=0.21 ;TFRAC(22)=0.22
 TFRAC(23)=0.23 ;TFRAC(24)=0.24
 TFRAC(25)=0.25 ;TFRAC(26)=0.26
 TFRAC(27)=0.27 ;TFRAC(28)=0.28
 TFRAC(29)=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AC(100)=1.
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 10
 XULAST =0.5
 XFRAC(1)=0.1 ;XFRAC(2)=0.2
 XFRAC(3)=0.3 ;XFRAC(4)=0.4
 XFRAC(5)=0.5 ;XFRAC(6)=0.6
 XFRAC(7)=0.7 ;XFRAC(8)=0.8
 XFRAC(9)=0.9 ;XFRAC(10)=1.
 ************************************************************
  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)=AU1
 NAME(4)=BU2 ;NAME(9)=GAS
 NAME(10)=LIQ ;NAME(14)=CH1
 NAME(15)=DH2 ;NAME(148)=TMP2
 NAME(149)=TMP1 ;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(AU1,Y,Y,N,N,N,Y)
 SOLUTN(BU2,Y,Y,N,N,N,Y)
 SOLUTN(GAS,Y,Y,N,N,N,Y)
 SOLUTN(LIQ,Y,Y,N,N,N,Y)
 SOLUTN(CH1,Y,Y,N,N,N,Y)
 SOLUTN(DH2,Y,Y,N,N,N,Y)
 SOLUTN(TMP2,Y,N,N,N,N,Y)
 SOLUTN(TMP1,Y,N,N,N,N,Y)
 SOLUTN(MDOT,Y,N,N,N,N,Y)
 INTMDT = 150
 TEMP1 = 149
 TEMP2 = 148
 ************************************************************
  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(AU1,Y,Y,Y,Y,Y,Y)
 TERMS(BU2,Y,Y,Y,Y,N,Y)
 TERMS(GAS,Y,Y,Y,Y,Y,Y)
 TERMS(LIQ,Y,Y,Y,Y,N,Y)
 TERMS(CH1,Y,Y,Y,Y,Y,Y)
 TERMS(DH2,Y,Y,Y,Y,N,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 EQDVDP = F
 HUNIT =1.
 ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
 ************************************************************
  Group 9. Properties used if PRPS is not
  stored, and where PRPS = -1.0 if it is!
 RHO1 =1. ;TMP1 = GRND2 ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =1.0E+05
 DVO1DT =0. ;DRH1DP =0.
 TMP1A =-1150. ;TMP1B =0. ;TMP1C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 RHO2 =1000. ;TMP2 = GRND2 ;EL2 =0.
 DVO2DT =0. ;DRH2DP =0.
 TMP2A =0. ;TMP2B =0. ;TMP2C =0.
 ENUL =1.0E-05 ;ENUT =0.
 PHINT(AU1)=-2.022E+04 ;PHINT(BU2)=-2.022E+04
 PHINT(GAS)=-2.022E+04 ;PHINT(LIQ)=-2.022E+04
 PHINT(CH1)=2.5E+06 ;PHINT(DH2)=4.0E+05
 PRNDTL(AU1)=1. ;PRNDTL(BU2)=1.
 PRNDTL(GAS)=1. ;PRNDTL(LIQ)=1.
 PRNDTL(CH1)=1. ;PRNDTL(DH2)=1.
 PRT(AU1)=1. ;PRT(BU2)=1.
 PRT(GAS)=1. ;PRT(LIQ)=1.
 PRT(CH1)=1. ;PRT(DH2)=1.
 CP1 =1999.999878 ;CP2 =3999.999756
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 CFIPS =100.
 RLOLIM =0. ;CMDOT = HEATBL
 CINT(P1)=1. ;CINT(AU1)=1.
 CINT(BU2)=1. ;CINT(GAS)=1.
 CINT(LIQ)=1. ;CINT(CH1)=1000.
 CINT(DH2)=1000.
 PHINT(P1)=-2.022E+04 ;PHINT(AU1)=-2.022E+04
 PHINT(BU2)=-2.022E+04 ;PHINT(GAS)=-2.022E+04
 PHINT(LIQ)=-2.022E+04 ;PHINT(CH1)=2.5E+06
 PHINT(DH2)=4.0E+05
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(AU1)=1.0E-10
 FIINIT(BU2)=1.0E-10 ;FIINIT(GAS)=0.9
 FIINIT(LIQ)=0.1 ;FIINIT(CH1)=2.5E+06
 FIINIT(DH2)=4.0E+05 ;FIINIT(TMP2)=1.0E-10
 FIINIT(TMP1)=1.0E-10 ;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(HEATER ,CELL , 1, 1, 1, 1, 1, 1, 1, 100)
 COVAL(HEATER ,DH2 , FIXFLU ,1.0E+07 )
 
 PATCH(REFP ,CELL , 10, 10, 1, 1, 1, 1, 1, 100)
 COVAL(REFP ,AU1 ,0. ,0. )
 COVAL(REFP ,BU2 ,0. ,0. )
 COVAL(REFP ,GAS ,1. ,0. )
 COVAL(REFP ,CH1 ,0. ,2.5E+06 )
 COVAL(REFP ,DH2 , FIXVAL ,3.9E+05 )
 
 PATCH(BUOYANCY,PHASEM, 1, 10, 1, 1, 1, 1, 1, 100)
 COVAL(BUOYANCY,AU1 , FIXFLU ,-9.81 )
 COVAL(BUOYANCY,BU2 , FIXFLU ,-9.81 )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 40 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 ISWR1 = 1 ;ISWR2 = 10000
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(AU1)=10
 LITER(BU2)=10 ;LITER(GAS)=1
 LITER(LIQ)=1 ;LITER(CH1)=20
 LITER(DH2)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(AU1)=1.0E-03
 ENDIT(BU2)=1.0E-03 ;ENDIT(GAS)=1.0E-03
 ENDIT(LIQ)=1.0E-03 ;ENDIT(CH1)=1.0E-03
 ENDIT(DH2)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(AU1,FALSDT,1.)
 RELAX(BU2,FALSDT,1.)
 RELAX(GAS,LINRLX,0.5)
 RELAX(LIQ,LINRLX,0.5)
 RELAX(CH1,FALSDT,1.0E+09)
 RELAX(DH2,FALSDT,1.0E+09)
 RELAX(TMP2,LINRLX,1.)
 RELAX(TMP1,LINRLX,1.)
 RELAX(MDOT,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(AU1)=1.0E+06 ;VARMIN(AU1)=-1.0E+06
 VARMAX(BU2)=1.0E+06 ;VARMIN(BU2)=-1.0E+06
 VARMAX(GAS)=1. ;VARMIN(GAS)=1.0E-06
 VARMAX(LIQ)=1. ;VARMIN(LIQ)=1.0E-06
 VARMAX(CH1)=1.0E+10 ;VARMIN(CH1)=-1.0E+10
 VARMAX(DH2)=1.0E+10 ;VARMIN(DH2)=-1.0E+10
 VARMAX(TMP2)=1.0E+10 ;VARMIN(TMP2)=-1.0E+10
 VARMAX(TMP1)=1.0E+10 ;VARMIN(TMP1)=-1.0E+10
 VARMAX(MDOT)=1.0E+10 ;VARMIN(MDOT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,GXMONI,TRANSIENT,L,F)
 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(AU1,Y,N,Y,Y,Y,Y)
 OUTPUT(BU2,Y,N,Y,Y,Y,Y)
 OUTPUT(GAS,Y,N,Y,Y,Y,Y)
 OUTPUT(LIQ,Y,N,Y,Y,Y,Y)
 OUTPUT(CH1,Y,N,Y,Y,Y,Y)
 OUTPUT(DH2,Y,N,Y,Y,Y,Y)
 OUTPUT(TMP2,Y,N,Y,N,N,N)
 OUTPUT(TMP1,Y,N,Y,N,N,N)
 OUTPUT(MDOT,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;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 = 100000 ;ISTPRF = 1 ;ISTPRL = 100000
 NXPRIN = -1 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 1 ;IPLTL = -1 ;NPLT = 1
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 3 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.4
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
 
 PATCH(LONGPLOT,PROFIL, 1, 10, 1, 1, 1, 1, 1, 100)
 PLOT(LONGPLOT,AU1 ,0. ,0. )
 PLOT(LONGPLOT,LIQ ,0. ,0. )
 
 PATCH(TIMEPLOT,PROFIL, 1, 1, 1, 1, 1, 1, 1, 100)
 PLOT(TIMEPLOT,LIQ ,0. ,0. )
 
 PATCH(TIM1PLOT,PROFIL, 10, 10, 1, 1, 1, 1, 1, 100)
 PLOT(TIM1PLOT,GAS ,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP