TALK=T;RUN(1,1) PHOTON USE AUTOPLOT file phida 3 clear msg CARREAU-YUSADA FLUID 3d PIPE FLOW msg Pressure (P1) profile pause da 1 p1 z 1 y 1 col3 1 redr pause msg pressto continue pause clear msg Pressure (u1) profile pause da 1 u1 z 1 y 1 colf 1 redr pause msg press to end end END_USE ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(116 3D SPARSOL Pipe Flow-3Carreau-Yusada) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 0 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 150 XULAST =0.15 XFRAC(1)=6.666667E-03 ;XFRAC(2)=0.013333 XFRAC(3)=0.02 ;XFRAC(4)=0.026667 XFRAC(5)=0.033333 ;XFRAC(6)=0.04 XFRAC(7)=0.046667 ;XFRAC(8)=0.053333 XFRAC(9)=0.06 ;XFRAC(10)=0.066667 XFRAC(11)=0.073333 ;XFRAC(12)=0.08 XFRAC(13)=0.086667 ;XFRAC(14)=0.093333 XFRAC(15)=0.1 ;XFRAC(16)=0.106667 XFRAC(17)=0.113333 ;XFRAC(18)=0.12 XFRAC(19)=0.126667 ;XFRAC(20)=0.133333 XFRAC(21)=0.14 ;XFRAC(22)=0.146667 XFRAC(23)=0.153333 ;XFRAC(24)=0.16 XFRAC(25)=0.166667 ;XFRAC(26)=0.173333 XFRAC(27)=0.18 ;XFRAC(28)=0.186667 XFRAC(29)=0.193333 ;XFRAC(30)=0.2 XFRAC(31)=0.206667 ;XFRAC(32)=0.213333 XFRAC(33)=0.22 ;XFRAC(34)=0.226667 XFRAC(35)=0.233333 ;XFRAC(36)=0.24 XFRAC(37)=0.246667 ;XFRAC(38)=0.253333 XFRAC(39)=0.26 ;XFRAC(40)=0.266667 XFRAC(41)=0.273333 ;XFRAC(42)=0.28 XFRAC(43)=0.286667 ;XFRAC(44)=0.293333 XFRAC(45)=0.3 ;XFRAC(46)=0.306667 XFRAC(47)=0.313333 ;XFRAC(48)=0.32 XFRAC(49)=0.326667 ;XFRAC(50)=0.333333 XFRAC(51)=0.34 ;XFRAC(52)=0.346667 XFRAC(53)=0.353333 ;XFRAC(54)=0.36 XFRAC(55)=0.366667 ;XFRAC(56)=0.373333 XFRAC(57)=0.38 ;XFRAC(58)=0.386667 XFRAC(59)=0.393333 ;XFRAC(60)=0.4 XFRAC(61)=0.406667 ;XFRAC(62)=0.413333 XFRAC(63)=0.42 ;XFRAC(64)=0.426667 XFRAC(65)=0.433333 ;XFRAC(66)=0.44 XFRAC(67)=0.446667 ;XFRAC(68)=0.453333 XFRAC(69)=0.46 ;XFRAC(70)=0.466667 XFRAC(71)=0.473333 ;XFRAC(72)=0.48 XFRAC(73)=0.486667 ;XFRAC(74)=0.493333 XFRAC(75)=0.5 ;XFRAC(76)=0.506667 XFRAC(77)=0.513333 ;XFRAC(78)=0.52 XFRAC(79)=0.526667 ;XFRAC(80)=0.533333 XFRAC(81)=0.54 ;XFRAC(82)=0.546667 XFRAC(83)=0.553333 ;XFRAC(84)=0.56 XFRAC(85)=0.566667 ;XFRAC(86)=0.573333 XFRAC(87)=0.58 ;XFRAC(88)=0.586667 XFRAC(89)=0.593333 ;XFRAC(90)=0.6 XFRAC(91)=0.606667 ;XFRAC(92)=0.613333 XFRAC(93)=0.62 ;XFRAC(94)=0.626667 XFRAC(95)=0.633333 ;XFRAC(96)=0.64 XFRAC(97)=0.646667 ;XFRAC(98)=0.653333 XFRAC(99)=0.66 ;XFRAC(100)=0.666667 XFRAC(101)=0.673333 ;XFRAC(102)=0.68 XFRAC(103)=0.686667 ;XFRAC(104)=0.693333 XFRAC(105)=0.7 ;XFRAC(106)=0.706667 XFRAC(107)=0.713333 ;XFRAC(108)=0.72 XFRAC(109)=0.726667 ;XFRAC(110)=0.733333 XFRAC(111)=0.74 ;XFRAC(112)=0.746667 XFRAC(113)=0.753333 ;XFRAC(114)=0.76 XFRAC(115)=0.766667 ;XFRAC(116)=0.773333 XFRAC(117)=0.78 ;XFRAC(118)=0.786667 XFRAC(119)=0.793333 ;XFRAC(120)=0.8 XFRAC(121)=0.806667 ;XFRAC(122)=0.813333 XFRAC(123)=0.82 ;XFRAC(124)=0.826667 XFRAC(125)=0.833333 ;XFRAC(126)=0.84 XFRAC(127)=0.846667 ;XFRAC(128)=0.853333 XFRAC(129)=0.86 ;XFRAC(130)=0.866667 XFRAC(131)=0.873333 ;XFRAC(132)=0.88 XFRAC(133)=0.886667 ;XFRAC(134)=0.893333 XFRAC(135)=0.9 ;XFRAC(136)=0.906667 XFRAC(137)=0.913333 ;XFRAC(138)=0.92 XFRAC(139)=0.926667 ;XFRAC(140)=0.933333 XFRAC(141)=0.94 ;XFRAC(142)=0.946667 XFRAC(143)=0.953333 ;XFRAC(144)=0.96 XFRAC(145)=0.966667 ;XFRAC(146)=0.973333 XFRAC(147)=0.98 ;XFRAC(148)=0.986667 XFRAC(149)=0.993333 ;XFRAC(150)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 13 YVLAST =4.0E-03 YFRAC(1)=0.0625 ;YFRAC(2)=0.125 YFRAC(3)=0.1875 ;YFRAC(4)=0.25 YFRAC(5)=0.3125 ;YFRAC(6)=0.375 YFRAC(7)=0.4375 ;YFRAC(8)=0.5 YFRAC(9)=0.5625 ;YFRAC(10)=0.625 YFRAC(11)=0.6875 ;YFRAC(12)=0.75 YFRAC(13)=1. ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 13 ZWLAST =4.0E-03 ZFRAC(1)=0.0625 ;ZFRAC(2)=0.125 ZFRAC(3)=0.1875 ;ZFRAC(4)=0.25 ZFRAC(5)=0.3125 ;ZFRAC(6)=0.375 ZFRAC(7)=0.4375 ;ZFRAC(8)=0.5 ZFRAC(9)=0.5625 ;ZFRAC(10)=0.625 ZFRAC(11)=0.6875 ;ZFRAC(12)=0.75 ZFRAC(13)=1. ************************************************************ Group 6. Body-Fitted Coordinates ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd ONEPHS = T NAME(1)=P1 ;NAME(3)=U1 NAME(5)=V1 ;NAME(7)=W1 NAME(139)=SRM1 ;NAME(140)=BTAU NAME(141)=TFNN ;NAME(142)=TEM1 NAME(144)=WDIS ;NAME(145)=GEN1 NAME(147)=PRPS ;NAME(148)=ENUL NAME(149)=DEN1 ;NAME(150)=LTLS * 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(U1,Y,Y,N,N,N,Y) SOLUTN(V1,Y,Y,N,N,N,Y) SOLUTN(W1,Y,Y,N,N,N,Y) SOLUTN(SRM1,Y,N,N,N,N,Y) SOLUTN(BTAU,Y,N,N,N,N,Y) SOLUTN(TFNN,Y,N,N,N,N,Y) SOLUTN(TEM1,Y,Y,Y,N,N,Y) SOLUTN(WDIS,Y,N,N,N,N,Y) SOLUTN(GEN1,Y,N,N,N,N,Y) SOLUTN(PRPS,Y,N,N,N,N,Y) SOLUTN(ENUL,Y,N,N,N,N,Y) SOLUTN(DEN1,Y,N,N,N,N,Y) SOLUTN(LTLS,Y,Y,Y,N,N,Y) DEN1 = 149 VISL = 148 PRPS = 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(P1,Y,Y,Y,N,Y,Y) TERMS(U1,Y,Y,Y,N,Y,Y) TERMS(V1,Y,Y,Y,N,Y,Y) TERMS(W1,Y,Y,Y,N,Y,Y) TERMS(TEM1,N,Y,Y,N,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 =735. ;TMP1 =0. ;EL1 =0. TSURR =0. ;TEMP0 =273. ;PRESS0 =1.01325E+05 DVO1DT =-6.8E-05 ;DRH1DP =0. EMISS =0. ;SCATT =0. RADIA =0. ;RADIB =0. ENUL = GRND4 ;ENUT =1.0E-10 ENULA =1659.677002 ;ENULB =0. ;ENULC =0.311309 ;ENULD =0.115376 ENULE =0.973412 ;ENULF =-0.010311 ;ENULG =240. IENULA = 4 ;IENULB = 2 PRNDTL(U1)=1. ;PRNDTL(V1)=1. PRNDTL(W1)=1. ;PRNDTL(TEM1)=-0.15 PRNDTL(LTLS)=1. PRT(U1)=1. ;PRT(V1)=1. PRT(W1)=1. ;PRT(TEM1)=1. PRT(LTLS)=1. CP1 =2100. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=0. ;FIINIT(U1)=1.0E-10 FIINIT(V1)=1.0E-10 ;FIINIT(W1)=1.0E-10 FIINIT(SRM1)=1.0E-10 ;FIINIT(BTAU)=1.0E-10 FIINIT(TFNN)=1.0E-10 ;FIINIT(TEM1)=240. FIINIT(WDIS)=0.1 ;FIINIT(GEN1)=1.0E-10 FIINIT(PRPS)=-1. ;FIINIT(ENUL)=1.0E-10 FIINIT(DEN1)=1.0E-10 ;FIINIT(LTLS)=1.0E-10 PATCH(^OB3 ,INIVAL, 3, 0, 0, 0, 0, 0, 1, 1) INIT(^OB3 ,PRPS,0. ,125. ) PATCH(^OB4 ,INIVAL, 4, 0, 0, 0, 0, 0, 1, 1) INIT(^OB4 ,PRPS,0. ,125. ) PATCH(^OB5 ,INIVAL, 5, 0, 0, 0, 0, 0, 1, 1) INIT(^OB5 ,PRPS,0. ,125. ) INIADD = F FSWEEP = 1 NAMFI =phi ************************************************************ 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 ,WEST , 1, 0, 0, 0, 0, 0, 1, 1) COVAL(^OB1 ,P1 , FIXFLU ,982.695007 ) COVAL(^OB1 ,U1 ,0. ,1.337 ) COVAL(^OB1 ,V1 ,0. ,0. ) COVAL(^OB1 ,W1 ,0. ,0. ) COVAL(^OB1 ,TEM1,0. ,240. ) PATCH(^OB2 ,EAST , 2, 0, 0, 0, 0, 0, 1, 1) COVAL(^OB2 ,P1 ,1000. ,0. ) COVAL(^OB2 ,U1 ,0. ,0. ) COVAL(^OB2 ,V1 ,0. ,0. ) COVAL(^OB2 ,W1 ,0. ,0. ) COVAL(^OB2 ,TEM1,0. ,240. ) PATCH(^OC3 ,CELL , 3, 19, 0, 0, 0, 0, 1, 1) COVAL(^OC3 ,TEM1,2.02E+10 ,240. ) PATCH(^OC4 ,CELL , 4, 19, 0, 0, 0, 0, 1, 1) COVAL(^OC4 ,TEM1,2.02E+10 ,240. ) PATCH(^OC5 ,CELL , 5, 19, 0, 0, 0, 0, 1, 1) COVAL(^OC5 ,TEM1,2.02E+10 ,240. ) XCYCLE = F EGWF = T WALLCO = GRND2 BUOYA =0. ; BUOYB =0. ; BUOYC =-9.81 BUOYE =240. ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 10000 ;ISWC1 = 1 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1 SELREF = T RESFAC =1.0E-04 ************************************************************ Group 16. Terminate Iterations LITER(P1)=200 ;LITER(U1)=10 LITER(V1)=10 ;LITER(W1)=10 LITER(TEM1)=20 ;LITER(LTLS)=20 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03 ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03 ENDIT(TEM1)=1.0E-03 ;ENDIT(LTLS)=1.0E-03 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,0.99) RELAX(U1,LINRLX,0.5) RELAX(V1,LINRLX,0.5) RELAX(W1,LINRLX,0.5) RELAX(SRM1,LINRLX,1.) RELAX(BTAU,LINRLX,1.) RELAX(TFNN,LINRLX,1.) RELAX(TEM1,LINRLX,0.25) RELAX(WDIS,LINRLX,1.) RELAX(GEN1,LINRLX,1.) RELAX(PRPS,LINRLX,1.) RELAX(ENUL,LINRLX,1.) RELAX(DEN1,LINRLX,1.) RELAX(LTLS,LINRLX,1.) OVRRLX =0. EXPERT = F ;NNORSL = F ************************************************************ Group 18. Limits VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06 VARMAX(SRM1)=1.0E+10 ;VARMIN(SRM1)=-1.0E+10 VARMAX(BTAU)=1.0E+10 ;VARMIN(BTAU)=-1.0E+10 VARMAX(TFNN)=1.0E+10 ;VARMIN(TFNN)=-1.0E+10 VARMAX(TEM1)=3000. ;VARMIN(TEM1)=-204.75 VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10 VARMAX(GEN1)=1.0E+10 ;VARMIN(GEN1)=-1.0E+10 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10 VARMAX(ENUL)=1.0E+10 ;VARMIN(ENUL)=-1.0E+10 VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10 VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND PARSOL = F CONWIZ = T ISG62 = 1 SPEDAT(SET,DOMAIN,PHASE_1_MAT,I,51) SPEDAT(SET,CUTCELL,FRCMN,R,1.0E-03) SPEDAT(SET,CUTCELL,FRCMX,R,0.999) SPEDAT(SET,RLXFAC,REFLEN,R,1.0E-02) SPEDAT(SET,MAXINC,P1,R,1.0E+07) SPEDAT(SET,GXMONI,PLOTALL,L,T) SPEDAT(SET,OBJNAM,^OB1,C,WEST0) SPEDAT(SET,OBJTYP,^OB1,C,INLET) SPEDAT(SET,OBJNAM,^OB2,C,EAST0) SPEDAT(SET,OBJTYP,^OB2,C,OUTLET) SPEDAT(SET,ARATIO,^OB2,R,1.) SPEDAT(SET,OBJNAM,^OB3,C,CBLOCK) SPEDAT(SET,OBJTYP,^OB3,C,BLOCKAGE) SPEDAT(SET,CBLOCK,MATERIAL,R,125.) SPEDAT(SET,OBJNAM,^OC3,C,CBLOCK) SPEDAT(SET,OBJTYP,^OC3,C,BLOCKAGE) SPEDAT(SET,OBJNAM,^OB4,C,NBLOCK) SPEDAT(SET,OBJTYP,^OB4,C,BLOCKAGE) SPEDAT(SET,NBLOCK,MATERIAL,R,125.) SPEDAT(SET,OBJNAM,^OC4,C,NBLOCK) SPEDAT(SET,OBJTYP,^OC4,C,BLOCKAGE) SPEDAT(SET,OBJNAM,^OB5,C,HBLOCK) SPEDAT(SET,OBJTYP,^OB5,C,BLOCKAGE) SPEDAT(SET,HBLOCK,MATERIAL,R,125.) SPEDAT(SET,OBJNAM,^OC5,C,HBLOCK) SPEDAT(SET,OBJTYP,^OC5,C,BLOCKAGE) SPEDAT(SET,FACETDAT,NUMOBJ,I,5) SPEDAT(SET,MATERIAL,125,L,T) ************************************************************ Group 20. Preliminary Printout DISTIL = T ;NULLPR = F NDST = 0 DSTTOL =1.0E-02 EX(P1)=3.125E+06 ;EX(U1)=0.8862 EX(V1)=1.395E-03 ;EX(W1)=1.424E-03 EX(SRM1)=772.5 ;EX(BTAU)=1.155E+05 EX(TFNN)=0.6627 ;EX(TEM1)=240. EX(WDIS)=5.499E-04 ;EX(GEN1)=3.656E+13 EX(PRPS)=42.82 ;EX(ENUL)=0.196 EX(DEN1)=807.5 ;EX(LTLS)=6.734E-07 ************************************************************ 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(U1,N,N,Y,Y,Y,Y) OUTPUT(V1,N,N,Y,Y,Y,Y) OUTPUT(W1,N,N,Y,Y,Y,Y) OUTPUT(SRM1,N,N,Y,N,N,N) OUTPUT(BTAU,N,N,Y,N,N,N) OUTPUT(TFNN,N,N,Y,N,N,N) OUTPUT(TEM1,N,N,Y,Y,Y,Y) OUTPUT(WDIS,N,N,Y,N,N,N) OUTPUT(GEN1,N,N,Y,N,N,N) OUTPUT(PRPS,N,N,Y,N,N,N) OUTPUT(ENUL,N,N,Y,N,N,N) OUTPUT(DEN1,N,N,Y,N,N,N) OUTPUT(LTLS,N,N,Y,Y,Y,Y) ************************************************************ Group 22. Monitor Print-Out IXMON = 75 ;IYMON = 1 ;IZMON = 7 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1 UWATCH = T ;USTEER = T HIGHLO = F ************************************************************ Group 23.Field Print-Out & Plot Control NPRINT = 100000 ;NUMCLS = 5 NXPRIN = -1 ;IXPRF = 1 ;IXPRL = 10000 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 10000 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 10000 XZPR = F ;YZPR = F 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