TALK=T;RUN(1,1)
  DISPLAY
  This problem deserves study; for it exemplifies, in a simple form,
  the main ingredients of computational fluid dynamics, namely the
  effects of:
  * time-dependence,
  * convective transport
  * diffusion (laminar and turbulent)
  * sources, and
  * non-uniform properties.

  The problem-defining data are set in two alternative ways, namely:
  1. using INIT and COVAL for initial and boundary conditions, and
     GRND settings for the properties; and
  2. using In-Form statements, which are easier to understand, and
     provide to freedom to set whatever formulae are desired.

  The results are of course the same, as are (near enough) the
  computer times.

  PHOTON USE commands are provided for ease of display.

  These exploit the possibility of treating the time dimension as
  though it were z-direction distance.

  It is the command IDISPA=1 which effects this.

  ENDDIS
  PHOTON USE
  p
  parphi
  1 1 1.e3
  gr ou y 1
  msg(vertical coord. = distance, x; horizontal coord. = time
  pause
  con h1 y 1 fi;0.001
  pause
  con enut y 1 fi;0.001
  pause
  con enul y 1 fi;0.001
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(1D TRANS FOR H1 WITH FLOW + SOURCE      )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 105
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =1.0E-04
 FSTEP = 1 ;LSTEP = 20
 TFRAC(1)=0.05 ;TFRAC(2)=0.1
 TFRAC(3)=0.15 ;TFRAC(4)=0.2
 TFRAC(5)=0.25 ;TFRAC(6)=0.3
 TFRAC(7)=0.35 ;TFRAC(8)=0.4
 TFRAC(9)=0.45 ;TFRAC(10)=0.5
 TFRAC(11)=0.55 ;TFRAC(12)=0.6
 TFRAC(13)=0.65 ;TFRAC(14)=0.7
 TFRAC(15)=0.75 ;TFRAC(16)=0.8
 TFRAC(17)=0.85 ;TFRAC(18)=0.9
 TFRAC(19)=0.95 ;TFRAC(20)=1.
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 11
 XULAST =0.11
 XFRAC(1)=0.090909 ;XFRAC(2)=0.181818
 XFRAC(3)=0.272727 ;XFRAC(4)=0.363636
 XFRAC(5)=0.454545 ;XFRAC(6)=0.545455
 XFRAC(7)=0.636364 ;XFRAC(8)=0.727273
 XFRAC(9)=0.818182 ;XFRAC(10)=0.909091
 XFRAC(11)=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 = T
 NAME(3)=U1 ;NAME(14)=H1
 NAME(147)=EL1 ;NAME(148)=TMP1
 NAME(149)=ENUT ;NAME(150)=ENUL
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(U1,Y,N,N,N,N,Y)
 SOLUTN(H1,Y,Y,N,N,N,Y)
 SOLUTN(EL1,Y,N,N,N,N,Y)
 SOLUTN(TMP1,Y,N,N,N,N,Y)
 SOLUTN(ENUT,Y,N,N,N,N,Y)
 SOLUTN(ENUL,Y,N,N,N,N,Y)
 VISL = 150
 VIST = 149
 TEMP1 = 148
 LEN1 = 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(H1,N,Y,Y,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWENL = T
 NEWENT = T
 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 = GRND1
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 TMP1A =0. ;TMP1B =0. ;TMP1C =0.
 TMP2A =0. ;TMP2B =0. ;TMP2C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 EL1A =0. ;EL1B =1. ;EL1C =0.05
 ENUL = GRND1 ;ENUT = GRND1
 ENULA =0.5 ;ENULB =0.5 ;ENULC =0. ;ENULD =0.
 ENULE =0. ;ENULF =0. ;ENULG =0.
 IENULA = 0 ;IENULB = 0
 ENUTA =0. ;ENUTB =100. ;ENUTC =0.
 IENUTA = 0
 PRNDTL(H1)=1.
 PRT(H1)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(U1)=100. ;FIINIT(H1)=0.5
 FIINIT(EL1)=1.0E-10 ;FIINIT(TMP1)=0.5
 FIINIT(ENUT)=1. ;FIINIT(ENUL)=1.
 
 PATCH(INI1 ,INIVAL, 3, 8, 1, 1, 1, 1, 1, 1)
 INIT(INI1 ,H1 ,0. ,1. )
 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(X1 ,CELL , 1, 1, 1, 1, 1, 1, 1, 20)
 COVAL(X1 ,H1 , FIXVAL ,0. )
 
 PATCH(XNX ,CELL , 11, 11, 1, 1, 1, 1, 1, 20)
 COVAL(XNX ,H1 , FIXVAL ,1. )
 
 PATCH(WHOLE ,VOLUME, 1, 11, 1, 1, 1, 1, 1, 20)
 COVAL(WHOLE ,H1 ,1.0E+04 ,2. )
 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-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(H1)=20
 ENDIT(H1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(U1,LINRLX,1.)
 RELAX(H1,FALSDT,1.0E+09)
 RELAX(EL1,LINRLX,1.)
 RELAX(TMP1,LINRLX,1.)
 RELAX(ENUT,LINRLX,1.)
 RELAX(ENUL,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(EL1)=1.0E+10 ;VARMIN(EL1)=-1.0E+10
 VARMAX(TMP1)=1.0E+10 ;VARMIN(TMP1)=-1.0E+10
 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
 VARMAX(ENUL)=1.0E+10 ;VARMIN(ENUL)=-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(U1,Y,N,Y,N,N,N)
 OUTPUT(H1,Y,N,Y,Y,Y,Y)
 OUTPUT(EL1,Y,N,Y,N,N,N)
 OUTPUT(TMP1,Y,N,Y,N,N,N)
 OUTPUT(ENUT,Y,N,N,N,Y,Y)
 OUTPUT(ENUL,Y,N,N,N,Y,Y)
 ************************************************************
  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 = 2 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.4
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
 
 PATCH(XWISE ,PROFIL, 1, 11, 1, 1, 1, 1, 1, 20)
 PLOT(XWISE ,H1 ,0. ,0. )
 PLOT(XWISE ,ENUT,0. ,0. )
 PLOT(XWISE ,ENUL,0. ,0. )
 
 PATCH(TIMEWISE,PROFIL, 5, 5, 1, 1, 1, 1, 1, 20)
 PLOT(TIMEWISE,H1 ,0. ,0. )
 PLOT(TIMEWISE,ENUL,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
 IDISPA = 1 ;IDISPB = 0 ;IDISPC = 0
STOP