TALK=T;RUN(1,1)
   PHOTON USE
   AUTOPLOT
   file
   phida 3

   clear
   msg CROSS-FLUID PIPE FLOW
   msg Reynolds number =0.097
   msg Velocity (P1) profile
   msg Blue line --- PHOENICS solution
   msg crosses ---   analytical solution
   pause
   da 1 p1 y 1;da 1 pa y 1
   col3 1;blb4 2
   redr
   pause
   msg press  to end
   pause
   end
   END_USE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(102 2d pipe flow - Cross fluid          )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = F
 NX = 1
 XULAST =0.1
 XFRAC(1)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 20
 YVLAST =8.0E-03
 YFRAC(1)=0.070752 ;YFRAC(2)=0.138782
 YFRAC(3)=0.204196 ;YFRAC(4)=0.267094
 YFRAC(5)=0.327573 ;YFRAC(6)=0.385725
 YFRAC(7)=0.441642 ;YFRAC(8)=0.495407
 YFRAC(9)=0.547105 ;YFRAC(10)=0.596814
 YFRAC(11)=0.644611 ;YFRAC(12)=0.69057
 YFRAC(13)=0.734761 ;YFRAC(14)=0.777253
 YFRAC(15)=0.81811 ;YFRAC(16)=0.857396
 YFRAC(17)=0.895171 ;YFRAC(18)=0.931493
 YFRAC(19)=0.966418 ;YFRAC(20)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 40
 ZWLAST =0.95
 ZFRAC(1)=0.013732 ;ZFRAC(2)=0.031548
 ZFRAC(3)=0.051319 ;ZFRAC(4)=0.072478
 ZFRAC(5)=0.094732 ;ZFRAC(6)=0.1179
 ZFRAC(7)=0.141857 ;ZFRAC(8)=0.166511
 ZFRAC(9)=0.19179 ;ZFRAC(10)=0.217638
 ZFRAC(11)=0.244009 ;ZFRAC(12)=0.270864
 ZFRAC(13)=0.298171 ;ZFRAC(14)=0.325902
 ZFRAC(15)=0.354033 ;ZFRAC(16)=0.382541
 ZFRAC(17)=0.411408 ;ZFRAC(18)=0.440617
 ZFRAC(19)=0.470152 ;ZFRAC(20)=0.5
 ZFRAC(21)=0.529848 ;ZFRAC(22)=0.559383
 ZFRAC(23)=0.588592 ;ZFRAC(24)=0.617459
 ZFRAC(25)=0.645967 ;ZFRAC(26)=0.674098
 ZFRAC(27)=0.701829 ;ZFRAC(28)=0.729136
 ZFRAC(29)=0.755991 ;ZFRAC(30)=0.782362
 ZFRAC(31)=0.80821 ;ZFRAC(32)=0.833489
 ZFRAC(33)=0.858143 ;ZFRAC(34)=0.8821
 ZFRAC(35)=0.905268 ;ZFRAC(36)=0.927522
 ZFRAC(37)=0.948681 ;ZFRAC(38)=0.968452
 ZFRAC(39)=0.986268 ;ZFRAC(40)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(5)=V1
 NAME(7)=W1 ;NAME(143)=PA
 NAME(144)=LTLS ;NAME(145)=WDIS
 NAME(146)=SRM1 ;NAME(147)=STRS
 NAME(148)=BTAU ;NAME(149)=GEN1
 NAME(150)=VISL
    * 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,Y,N,N,Y)
 SOLUTN(V1,Y,Y,Y,N,N,Y)
 SOLUTN(W1,Y,Y,Y,N,N,Y)
 SOLUTN(PA,Y,N,N,N,N,Y)
 SOLUTN(LTLS,Y,Y,Y,N,N,Y)
 SOLUTN(WDIS,Y,N,N,N,N,Y)
 SOLUTN(SRM1,Y,N,N,N,N,Y)
 SOLUTN(STRS,Y,N,N,N,N,Y)
 SOLUTN(BTAU,Y,N,N,N,N,Y)
 SOLUTN(GEN1,Y,N,N,N,N,Y)
 SOLUTN(VISL,Y,N,N,N,N,Y)
 VISL = 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(V1,Y,Y,Y,Y,Y,Y)
 TERMS(W1,Y,Y,Y,Y,Y,Y)
 TERMS(LTLS,N,N,Y,N,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = T
 NEWENL = T
 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 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL = GRND4 ;ENUT =1.0E-10
 ENULA =0.22 ;ENULB =0.033 ;ENULC =0.83 ;ENULD =6.65
 ENULE =0. ;ENULF =0. ;ENULG =0.
 IENULA = 2 ;IENULB = 0
 PRNDTL(V1)=1. ;PRNDTL(W1)=1.
 PRNDTL(LTLS)=1.
 PRT(V1)=1. ;PRT(W1)=1.
 PRT(LTLS)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(V1)=1.0E-10
 FIINIT(W1)=0.2 ;FIINIT(PA)=1.0E-10
 FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=0.1
 FIINIT(SRM1)=1.0E-10 ;FIINIT(STRS)=1.0E-10
 FIINIT(BTAU)=1.0E-10 ;FIINIT(GEN1)=1.001E-10
 FIINIT(VISL)=1.001E-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(^OB1 ,LOW , 1, 0, 0, 0, 0, 0, 1, 1)
 COVAL(^OB1 ,P1 , FIXFLU ,0.2 )
 COVAL(^OB1 ,V1 ,0. ,0. )
 COVAL(^OB1 ,W1 ,0. ,0.2 )
 
 PATCH(^OB2 ,HIGH , 2, 0, 0, 0, 0, 0, 1, 1)
 COVAL(^OB2 ,P1 ,100. ,0. )
 COVAL(^OB2 ,V1 ,0. ,0. )
 COVAL(^OB2 ,W1 ,0. , SAME )
 
 PATCH(^OB3 ,CELL , 3, 7, 0, 0, 0, 0, 1, 1)
 COVAL(^OB3 ,W1 , GRND2 ,0. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 2000 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=200 ;LITER(V1)=10
 LITER(W1)=10 ;LITER(LTLS)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(V1)=1.0E-03
 ENDIT(W1)=1.0E-03 ;ENDIT(LTLS)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(V1,FALSDT,1.0E-02)
 RELAX(W1,FALSDT,5.)
 RELAX(PA,LINRLX,1.)
 RELAX(LTLS,LINRLX,1.)
 RELAX(WDIS,LINRLX,1.)
 RELAX(SRM1,LINRLX,1.)
 RELAX(STRS,LINRLX,1.)
 RELAX(BTAU,LINRLX,1.)
 RELAX(GEN1,LINRLX,1.)
 RELAX(VISL,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
 VARMAX(PA)=1.0E+10 ;VARMIN(PA)=-1.0E+10
 VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10
 VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10
 VARMAX(SRM1)=1.0E+10 ;VARMIN(SRM1)=-1.0E+10
 VARMAX(STRS)=1.0E+10 ;VARMIN(STRS)=-1.0E+10
 VARMAX(BTAU)=1.0E+10 ;VARMIN(BTAU)=-1.0E+10
 VARMAX(GEN1)=1.0E+10 ;VARMIN(GEN1)=-1.0E+10
 VARMAX(VISL)=1.0E+10 ;VARMIN(VISL)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 GENK = T
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,SOLPHI,P1,I,24)
 SPEDAT(SET,SOLPHI,V1,I,0)
 SPEDAT(SET,PREPHI,V1,I,0)
 SPEDAT(SET,SOLPHI,W1,I,0)
 SPEDAT(SET,PREPHI,W1,I,0)
 SPEDAT(SET,MAKE,ZGNZ,C,=0)
 SPEDAT(SET,STORED,ZGNZ,C,=ZG!IF(IZ.EQ.40)!ZSLFIN)
 SPEDAT(SET,PRINT,ZGNZ,C,=ZGNZ)
 SPEDAT(SET,STORED,PA,C,=-842.105286*(ZG-ZGNZ)!ZSLFIN)
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,OBJNAM,^OB1,C,INLET)
 SPEDAT(SET,OBJTYP,^OB1,C,INLET)
 SPEDAT(SET,OBJNAM,^OB2,C,OUTL)
 SPEDAT(SET,OBJTYP,^OB2,C,OUTLET)
 SPEDAT(SET,ARATIO,^OB2,R,1.)
 SPEDAT(SET,OBJNAM,^OB3,C,WALL)
 SPEDAT(SET,OBJTYP,^OB3,C,PLATE)
 SPEDAT(SET,FACETDAT,NUMOBJ,I,3)
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=398.100006 ;EX(V1)=4.068E-04
 EX(W1)=0.2388 ;EX(PA)=394.5
 EX(LTLS)=9.573E-06 ;EX(WDIS)=2.76E-03
 EX(SRM1)=56.029999 ;EX(STRS)=0.1658
 EX(BTAU)=1.923 ;EX(GEN1)=3967.
 EX(VISL)=0.03537
 ************************************************************
  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,N,N,Y,Y,Y,Y)
 OUTPUT(V1,N,N,Y,Y,Y,Y)
 OUTPUT(W1,N,N,Y,Y,Y,Y)
 OUTPUT(PA,N,N,Y,N,Y,Y)
 OUTPUT(LTLS,N,N,Y,Y,Y,Y)
 OUTPUT(WDIS,N,N,Y,N,N,N)
 OUTPUT(SRM1,N,N,Y,N,N,N)
 OUTPUT(STRS,N,N,Y,N,N,N)
 OUTPUT(BTAU,N,N,Y,N,Y,Y)
 OUTPUT(GEN1,N,N,Y,N,N,N)
 OUTPUT(VISL,N,N,Y,N,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;IYMON = 12 ;IZMON = 35
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NYPRIN = 1 ;IYPRF = 1 ;IYPRL = 10000
 NZPRIN = 1 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = T
 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
   No PATCHes yet used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP