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

   clear
   msg POWER-LAW-FLUID PIPE FLOW
   msg Reynolds number = 10 Power index = 0.5
   msg Pressure (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 continue
   clear
   msg Velocity (W1) profile
   da 1 w1 z 35;da 1 wa z 35
   col3 1;blb4 2
   pause
   msg press  to end
   pause
   end
   END_USE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(100 2d pipe flow - Power-law 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 =0.05
 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 =1.
 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(142)=WDIS
 NAME(143)=SRM1 ;NAME(144)=STRS
 NAME(145)=LTLS ;NAME(146)=BTAU
 NAME(147)=PA ;NAME(148)=WA
 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(WDIS,Y,N,N,N,N,Y)
 SOLUTN(SRM1,Y,N,N,N,N,Y)
 SOLUTN(STRS,Y,N,N,N,N,Y)
 SOLUTN(LTLS,Y,Y,Y,N,N,Y)
 SOLUTN(BTAU,Y,N,N,N,N,Y)
 SOLUTN(PA,Y,N,N,N,N,Y)
 SOLUTN(WA,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 =100. ;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 =3.162278 ;ENULB =0.5 ;ENULC =0. ;ENULD =0.
 ENULE =0. ;ENULF =0. ;ENULG =0.
 IENULA = 0 ;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)=1. ;FIINIT(WDIS)=0.1
 FIINIT(SRM1)=1.0E-10 ;FIINIT(STRS)=1.0E-10
 FIINIT(LTLS)=1.0E-10 ;FIINIT(BTAU)=1.0E-10
 FIINIT(PA)=1.0E-10 ;FIINIT(WA)=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 ,100. )
 COVAL(^OB1 ,V1 ,0. ,0. )
 COVAL(^OB1 ,W1 ,0. ,1. )
 
 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 = 1000 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;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,0.066667)
 RELAX(W1,FALSDT,0.066667)
 RELAX(WDIS,LINRLX,1.)
 RELAX(SRM1,LINRLX,1.)
 RELAX(STRS,LINRLX,1.)
 RELAX(LTLS,LINRLX,1.)
 RELAX(BTAU,LINRLX,1.)
 RELAX(PA,LINRLX,1.)
 RELAX(WA,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(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(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10
 VARMAX(BTAU)=1.0E+10 ;VARMIN(BTAU)=-1.0E+10
 VARMAX(PA)=1.0E+10 ;VARMIN(PA)=-1.0E+10
 VARMAX(WA)=1.0E+10 ;VARMIN(WA)=-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,STORED,WA,C,=1.*(1.+3.*0.5)*(1.-(YG/0.05)^3.)/(1.+0.5)$)
 SPEDAT(SET,STORED,WA,C,!ZSLFIN)
 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,=-1264.911011*(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)=628.700012 ;EX(V1)=8.242E-03
 EX(W1)=1.132 ;EX(WDIS)=0.01726
 EX(SRM1)=39.82 ;EX(STRS)=0.01616
 EX(LTLS)=3.746E-04 ;EX(BTAU)=125.900002
 EX(PA)=623.799988 ;EX(WA)=1.145
 EX(GEN1)=2614. ;EX(VISL)=8.749E-03
 ************************************************************
  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(WDIS,N,N,Y,N,N,N)
 OUTPUT(SRM1,N,N,Y,N,N,N)
 OUTPUT(STRS,N,N,Y,N,Y,Y)
 OUTPUT(LTLS,N,N,Y,Y,Y,Y)
 OUTPUT(BTAU,N,N,Y,N,Y,Y)
 OUTPUT(PA,N,N,Y,N,Y,Y)
 OUTPUT(WA,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 = 14 ;IZMON = 36
 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