TALK=T;RUN(1,1) PHOTON USE p gr ou Z 1 SET VEC REF 0.005;ve Z 1 sh msg Velocity distribution: msg Pressto continue pause;clear gr ou z 1 msg Temperature distribution : con h1 z 1 fil;0.0004 msg Press e to END ENDUSE DISPLAY This case shows how the PLANT option should be used to introduce the non-linear momentum sinks of porous resistive media governed by Ergun's drag law. The problem is similar to one for empty partitioned cavern published by S.V.Zhubrin and A.P.Khrupov in PHOENICS Journal of CFD and its applications, vol.7, N1, pp. 93-106, 1994 ENDDIS PLANTBEGIN PATCH(ERG2,PHASEM,1,NX,1,NY,1,NZ,1,1000) CO=RG(2)*ABS(U1) COVAL(ERG2,U1,GRND,0.0) PATCH(ERG4,PHASEM,1,NX,1,NY,1,NZ,1,1000) CO=RG(2)*ABS(V1) COVAL(ERG4,V1,GRND,0.0) PLANTEND ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(In-Form equivalent of PLANT case Z131 ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 731 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 30 XULAST =0.1 XFRAC(1)=0.033333 ;XFRAC(2)=0.066667 XFRAC(3)=0.1 ;XFRAC(4)=0.133333 XFRAC(5)=0.166667 ;XFRAC(6)=0.2 XFRAC(7)=0.233333 ;XFRAC(8)=0.266667 XFRAC(9)=0.3 ;XFRAC(10)=0.333333 XFRAC(11)=0.366667 ;XFRAC(12)=0.4 XFRAC(13)=0.433333 ;XFRAC(14)=0.466667 XFRAC(15)=0.5 ;XFRAC(16)=0.533333 XFRAC(17)=0.566667 ;XFRAC(18)=0.6 XFRAC(19)=0.633333 ;XFRAC(20)=0.666667 XFRAC(21)=0.7 ;XFRAC(22)=0.733333 XFRAC(23)=0.766667 ;XFRAC(24)=0.8 XFRAC(25)=0.833333 ;XFRAC(26)=0.866667 XFRAC(27)=0.9 ;XFRAC(28)=0.933333 XFRAC(29)=0.966667 ;XFRAC(30)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 30 YVLAST =0.1 YFRAC(1)=0.033333 ;YFRAC(2)=0.066667 YFRAC(3)=0.1 ;YFRAC(4)=0.133333 YFRAC(5)=0.166667 ;YFRAC(6)=0.2 YFRAC(7)=0.233333 ;YFRAC(8)=0.266667 YFRAC(9)=0.3 ;YFRAC(10)=0.333333 YFRAC(11)=0.366667 ;YFRAC(12)=0.4 YFRAC(13)=0.433333 ;YFRAC(14)=0.466667 YFRAC(15)=0.5 ;YFRAC(16)=0.533333 YFRAC(17)=0.566667 ;YFRAC(18)=0.6 YFRAC(19)=0.633333 ;YFRAC(20)=0.666667 YFRAC(21)=0.7 ;YFRAC(22)=0.733333 YFRAC(23)=0.766667 ;YFRAC(24)=0.8 YFRAC(25)=0.833333 ;YFRAC(26)=0.866667 YFRAC(27)=0.9 ;YFRAC(28)=0.933333 YFRAC(29)=0.966667 ;YFRAC(30)=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(1)=P1 ;NAME(3)=U1 NAME(5)=V1 ;NAME(14)=H1 NAME(146)=PRPS ;NAME(147)=NPOR NAME(148)=VPOR ;NAME(149)=EPOR NAME(150)=RHO1 * 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,N) SOLUTN(U1,Y,Y,N,N,N,Y) SOLUTN(V1,Y,Y,N,N,N,Y) SOLUTN(H1,Y,Y,N,N,N,Y) SOLUTN(PRPS,Y,N,N,N,N,Y) SOLUTN(NPOR,Y,N,N,N,N,Y) SOLUTN(VPOR,Y,N,N,N,N,Y) SOLUTN(EPOR,Y,N,N,N,N,Y) SOLUTN(RHO1,Y,N,N,N,N,Y) DEN1 = 150 EPOR = 149 ;HPOR = 0 ;NPOR = 147 ;VPOR = 148 PRPS = 146 ************************************************************ 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,Y,Y,Y) TERMS(V1,Y,Y,Y,Y,Y,Y) TERMS(H1,N,Y,Y,N,Y,N) DIFCUT =0.5 ;ZDIFAC =1. GALA = F ;ADDDIF = F NEWRH1 = T ISOLX = 0 ;ISOLY = 0 ;ISOLZ = -1 ************************************************************ Group 9. Properties used if PRPS is not stored, and where PRPS = -1.0 if it is! RHO1 = GRND2 ;TMP1 =0. ;EL1 =0. TSURR =0. ;TEMP0 =0. ;PRESS0 =0. DVO1DT =0.7 ;DRH1DP =0. RHO1A =0. ;RHO1B =2.78E-03 ;RHO1C =0. EMISS =0. ;SCATT =0. RADIA =0. ;RADIB =0. ENUL =3.72E-05 ;ENUT =0. PRNDTL(U1)=1. ;PRNDTL(V1)=1. PRNDTL(H1)=0.678 PRT(U1)=1. ;PRT(V1)=1. PRT(H1)=1. CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=1.0E-05 ;FIINIT(U1)=1.0E-10 FIINIT(V1)=1.0E-10 ;FIINIT(H1)=503. FIINIT(PRPS)=-1. ;FIINIT(NPOR)=0.5 FIINIT(VPOR)=0.5 ;FIINIT(EPOR)=0.5 FIINIT(RHO1)=0.7 PATCH(CMP0 ,INIVAL, 14, 17, 1, 8, 1, 1, 1, 1) INIT(CMP0 ,PRPS,0. ,198. ) PATCH(CMP1 ,INIVAL, 14, 17, 23, 30, 1, 1, 1, 1) INIT(CMP1 ,PRPS,0. ,198. ) PATCH(POROS ,INIVAL, 1, 30, 1, 30, 1, 1, 1, 1) INIT(POROS ,NPOR,0. ,0.5 ) INIT(POROS ,VPOR,0. ,0.5 ) INIT(POROS ,EPOR,0. ,0.5 ) 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(REFP ,CELL , 30, 30, 30, 30, 1, 1, 1, 1) COVAL(REFP ,P1 ,1. ,0. ) COVAL(REFP ,U1 ,0. ,0. ) COVAL(REFP ,V1 ,0. ,0. ) COVAL(REFP ,H1 ,0. , SAME ) PATCH(NOR ,NWALL , 1, 13, 30, 30, 1, 1, 1, 1) COVAL(NOR ,U1 ,1. ,0. ) PATCH(NOR1 ,NWALL , 18, 30, 30, 30, 1, 1, 1, 1) COVAL(NOR1 ,U1 ,1. ,0. ) PATCH(SOU ,SWALL , 1, 13, 1, 1, 1, 1, 1, 1) COVAL(SOU ,U1 ,1. ,0. ) PATCH(SOU1 ,SWALL , 18, 30, 1, 1, 1, 1, 1, 1) COVAL(SOU1 ,U1 ,1. ,0. ) PATCH(WES ,WWALL , 1, 1, 1, 30, 1, 1, 1, 1) COVAL(WES ,V1 ,1. ,0. ) COVAL(WES ,H1 ,1.474926 ,508. ) PATCH(EAS ,EWALL , 30, 30, 1, 30, 1, 1, 1, 1) COVAL(EAS ,V1 ,1. ,0. ) COVAL(EAS ,H1 ,1.474926 ,498. ) PATCH(BUOY ,PHASEM, 1, 30, 1, 30, 1, 1, 1, 1) COVAL(BUOY ,V1 , FIXFLU , GRND2 ) PATCH(ERG1 ,PHASEM, 1, 30, 1, 30, 1, 1, 1, 1000) COVAL(ERG1 ,U1 ,13.950001 ,0. ) PATCH(ERG3 ,PHASEM, 1, 30, 1, 30, 1, 1, 1, 1000) COVAL(ERG3 ,V1 ,13.950001 ,0. ) PATCH(IERG2 ,PHASEM, 1, 30, 1, 30, 1, 1, 1, 1000) COVAL(IERG2 ,U1 ,In-Form:source - see Grp 19) PATCH(IERG4 ,PHASEM, 1, 30, 1, 30, 1, 1, 1, 1000) COVAL(IERG4 ,V1 ,In-Form:source - see Grp 19) XCYCLE = F EGWF = T WALLCO = GRND2 BUOYA =0. ; BUOYB =-9.81 ; BUOYC =0. BUOYD =0.7 ************************************************************ 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(P1)=30 ;LITER(U1)=10 LITER(V1)=10 ;LITER(H1)=1 ENDIT(P1)=5.0E-06 ;ENDIT(U1)=1.0E-03 ENDIT(V1)=1.0E-03 ;ENDIT(H1)=5.0E-06 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,1.) RELAX(U1,FALSDT,1.0E-02) RELAX(V1,FALSDT,1.0E-02) RELAX(H1,FALSDT,1.0E+09) RELAX(PRPS,LINRLX,1.) RELAX(RHO1,LINRLX,1.) OVRRLX =0. EXPERT = F ;NNORSL = F ************************************************************ Group 18. Limits VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10 VARMAX(U1)=100. ;VARMIN(U1)=-100. VARMAX(V1)=100. ;VARMIN(V1)=-100. VARMAX(H1)=510. ;VARMIN(H1)=490. VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10 VARMAX(VPOR)=1.0E+10 ;VARMIN(VPOR)=-1.0E+10 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10 VARMAX(RHO1)=1.0E+10 ;VARMIN(RHO1)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND PARSOL = F ISG62 = 1 SPEDAT(SET,SOURCE,U1!IERG2,C,=87.5*ABS(U1)*(0-U1)) SPEDAT(SET,SOURCE,V1!IERG4,C,=87.5*ABS(V1)*(0-V1)) SPEDAT(SET,GXMONI,PLOTALL,L,T) SPEDAT(SET,MATERIAL,198,L,T) RG( 1) =13.950001 RG( 2) =87.5 ************************************************************ Group 20. Preliminary Printout DISTIL = T ;NULLPR = F NDST = 0 DSTTOL =1.0E-02 EX(P1)=8.714E-03 ;EX(U1)=7.371E-04 EX(V1)=7.447E-04 ;EX(H1)=502.100006 EX(PRPS)=15.01 ;EX(NPOR)=0.5 EX(VPOR)=0.4644 ;EX(EPOR)=0.5 EX(RHO1)=0.6643 ************************************************************ 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,N,Y,Y,Y) OUTPUT(U1,Y,N,N,Y,Y,Y) OUTPUT(V1,Y,N,N,Y,Y,Y) OUTPUT(H1,Y,N,N,Y,Y,Y) OUTPUT(PRPS,Y,N,Y,N,N,N) OUTPUT(NPOR,Y,N,Y,N,N,N) OUTPUT(VPOR,Y,N,Y,N,N,N) OUTPUT(EPOR,Y,N,Y,N,N,N) OUTPUT(RHO1,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 9 ;IYMON = 20 ;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 NXPRIN = -1 ;IXPRF = 1 ;IXPRL = 10000 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 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 No PATCHes yet used for this Group ************************************************************ Group 24. Dumps For Restarts SAVE = T ;NOWIPE = F NSAVE =CHAM STOP