TALK=T;RUN(1,1) PHOTON USE p phi msg grid gr x 1;gr x m gr y 1;gr y m msg Pressto continue pause cl vi x up z scale cl msg 1st-phase (light phase) velocity vectors on plane ix=3 set vec ref;0.1 vec x 3 sh gr ou x 3 msg Press to continue pause cl msg 2nd-phase (dense phase) velocity vectors on plane ix=3 set vec ref;0.1 set vec comp - v2 w2 vec x 3 sh gr ou x 3 msg Press to continue pause cl msg contour of pressure on plane ix=3 con p1 x 3 fi;0.002 gr ou x 3 msg Press to continue pause cl msg contour of 1st-phase (vapour) volume fraction on plane ix=3 con gas x 3 fi;0.002 gr ou x 3 msg Press to continue pause cl msg contour of shell-side vapour enthalpy on plane ix=3 con 1sth x 3 fi;0.002 gr ou x 3 msg Press to continue pause cl msg contour of shell-side liquid enthalpy on plane ix=3 con 2ndh x 3 fi;0.002 gr ou x 3 msg Press to continue pause cl msg contour of tube-side fluid enthalpy on plane ix=3 con tubh x 3 fi;0.002 gr ou x 3 msg Press e to END enduse ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(3D SHELL-AND-TUBE CONDENSER : W799 ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 14 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 5 XULAST =1. XFRAC(1)=0.2 ;XFRAC(2)=0.4 XFRAC(3)=0.6 ;XFRAC(4)=0.8 XFRAC(5)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 3 YVLAST =0.5 YFRAC(1)=0.333333 ;YFRAC(2)=0.666667 YFRAC(3)=1. ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 8 ZWLAST =4. ZFRAC(1)=0.125 ;ZFRAC(2)=0.25 ZFRAC(3)=0.375 ;ZFRAC(4)=0.5 ZFRAC(5)=0.625 ;ZFRAC(6)=0.75 ZFRAC(7)=0.875 ;ZFRAC(8)=1. ************************************************************ Group 6. Body-Fitted Coordinates ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd ONEPHS = F EQUVEL = F NAME(1)=P1 ;NAME(3)=U1 NAME(4)=U2 ;NAME(5)=V1 NAME(6)=V2 ;NAME(7)=W1 NAME(8)=W2 ;NAME(9)=GAS NAME(10)=LIQ ;NAME(14)=1STH NAME(15)=2NDH ;NAME(16)=TUBH NAME(147)=HPOR ;NAME(148)=NPOR NAME(149)=EPOR ;NAME(150)=MDOT * 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(U2,Y,Y,N,N,N,Y) SOLUTN(V1,Y,Y,N,N,N,Y) SOLUTN(V2,Y,Y,N,N,N,Y) SOLUTN(W1,Y,Y,N,N,N,Y) SOLUTN(W2,Y,Y,N,N,N,Y) SOLUTN(GAS,Y,Y,N,N,N,Y) SOLUTN(LIQ,Y,Y,N,N,N,Y) SOLUTN(1STH,Y,Y,N,N,N,Y) SOLUTN(2NDH,Y,Y,N,N,N,Y) SOLUTN(TUBH,Y,Y,N,N,N,Y) SOLUTN(HPOR,Y,N,N,N,N,Y) SOLUTN(NPOR,Y,N,N,N,N,Y) SOLUTN(EPOR,Y,N,N,N,N,Y) SOLUTN(MDOT,Y,N,N,N,N,Y) INTMDT = 150 EPOR = 149 ;HPOR = 147 ;NPOR = 148 ;VPOR = 0 ************************************************************ 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,N,Y,Y,Y) TERMS(U2,Y,Y,N,Y,N,Y) TERMS(V1,Y,Y,N,Y,Y,Y) TERMS(V2,Y,Y,N,Y,N,Y) TERMS(W1,Y,Y,N,Y,Y,Y) TERMS(W2,Y,Y,N,Y,N,Y) TERMS(GAS,Y,Y,N,Y,Y,Y) TERMS(LIQ,Y,Y,N,Y,N,Y) TERMS(1STH,N,Y,N,Y,Y,Y) TERMS(2NDH,N,Y,N,Y,N,Y) TERMS(TUBH,N,N,N,Y,N,N) DIFCUT =0.5 ;ZDIFAC =1. GALA = F ;ADDDIF = F EQDVDP = F 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. RHO2 =100. ;TMP2 =0. ;EL2 =0. DVO2DT =0. ;DRH2DP =0. ENUL =1.0E-05 ;ENUT =0. PHINT(U1)=-2.022E+04 ;PHINT(U2)=-2.022E+04 PHINT(V1)=-2.022E+04 ;PHINT(V2)=-2.022E+04 PHINT(W1)=-2.022E+04 ;PHINT(W2)=-2.022E+04 PHINT(GAS)=-2.022E+04 ;PHINT(LIQ)=-2.022E+04 PHINT(1STH)=0.9 ;PHINT(2NDH)=0.4 CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes CFIPS =-1.0E+04 RLOLIM =1.0E-03 ;CMDOT = HEATBL CINT(P1)=1. ;CINT(U1)=1. CINT(U2)=1. ;CINT(V1)=1. CINT(V2)=1. ;CINT(W1)=1. CINT(W2)=1. ;CINT(GAS)=1. CINT(LIQ)=1. ;CINT(1STH)=1.0E-05 CINT(2NDH)=1.0E-04 PHINT(P1)=-2.022E+04 ;PHINT(U1)=-2.022E+04 PHINT(U2)=-2.022E+04 ;PHINT(V1)=-2.022E+04 PHINT(V2)=-2.022E+04 ;PHINT(W1)=-2.022E+04 PHINT(W2)=-2.022E+04 ;PHINT(GAS)=-2.022E+04 PHINT(LIQ)=-2.022E+04 ;PHINT(1STH)=0.9 PHINT(2NDH)=0.4 ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=1.0E-10 ;FIINIT(U1)=0. FIINIT(U2)=1.0E-10 ;FIINIT(V1)=0. FIINIT(V2)=1.0E-10 ;FIINIT(W1)=0.05 FIINIT(W2)=1.0E-10 ;FIINIT(GAS)=0.9 FIINIT(LIQ)=0.1 ;FIINIT(1STH)=0.9 FIINIT(2NDH)=0.4 ;FIINIT(TUBH)=0. FIINIT(HPOR)=0.5 ;FIINIT(NPOR)=0.5 FIINIT(EPOR)=0.5 ;FIINIT(MDOT)=0. 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(INLET1 ,CELL , 1, 1, 2, 3, 2, 2, 1, 1000) COVAL(INLET1 ,U1 ,0. ,0.6 ) COVAL(INLET1 ,U2 ,0. ,0. ) COVAL(INLET1 ,V1 ,0. ,0. ) COVAL(INLET1 ,V2 ,0. ,0. ) COVAL(INLET1 ,W1 ,0. ,0. ) COVAL(INLET1 ,W2 ,0. ,0. ) COVAL(INLET1 ,GAS , FIXFLU ,0.025 ) COVAL(INLET1 ,LIQ , FIXFLU ,0. ) COVAL(INLET1 ,1STH,0. ,1. ) COVAL(INLET1 ,2NDH,0. ,0. ) COVAL(INLET1 ,TUBH,0. , SAME ) PATCH(OUTLET1 ,EAST , 5, 5, 2, 3, 7, 7, 1, 1000) COVAL(OUTLET1 ,GAS ,1. ,0. ) COVAL(OUTLET1 ,LIQ ,1. ,0. ) COVAL(OUTLET1 ,1STH,0. , SAME ) COVAL(OUTLET1 ,2NDH,0. , SAME ) COVAL(OUTLET1 ,TUBH,0. , SAME ) PATCH(INLET2 ,CELL , 1, 1, 1, 3, 8, 8, 1, 1000) COVAL(INLET2 ,TUBH,0.016667 ,0. ) PATCH(NEH1 ,CELL , 1, 1, 1, 3, 1, 7, 1, 1000) COVAL(NEH1 ,TUBH,0.016667 , GRND8 ) PATCH(NEW1 ,CELL , 2, 2, 1, 3, 1, 1, 1, 1000) COVAL(NEW1 ,TUBH,0.016667 , GRND8 ) PATCH(NEL1 ,CELL , 2, 2, 1, 3, 2, 8, 1, 1000) COVAL(NEL1 ,TUBH,0.016667 , GRND8 ) PATCH(NEW2 ,CELL , 3, 3, 1, 3, 8, 8, 1, 1000) COVAL(NEW2 ,TUBH,0.016667 , GRND8 ) PATCH(NEH2 ,CELL , 3, 3, 1, 3, 1, 7, 1, 1000) COVAL(NEH2 ,TUBH,0.016667 , GRND8 ) PATCH(NEW3 ,CELL , 4, 4, 1, 3, 1, 1, 1, 1000) COVAL(NEW3 ,TUBH,0.016667 , GRND8 ) PATCH(NEL2 ,CELL , 4, 4, 1, 3, 2, 8, 1, 1000) COVAL(NEL2 ,TUBH,0.016667 , GRND8 ) PATCH(NEW4 ,CELL , 5, 5, 1, 3, 8, 8, 1, 1000) COVAL(NEW4 ,TUBH,0.016667 , GRND8 ) PATCH(NEH3 ,CELL , 5, 5, 1, 3, 1, 7, 1, 1000) COVAL(NEH3 ,TUBH,0.016667 , GRND8 ) PATCH(NEP1 ,VOLUME, 1, 5, 1, 3, 1, 8, 1, 1000) COVAL(NEP1 ,2NDH,0.088889 , GRND8 ) PATCH(NEM1 ,VOLUME, 1, 5, 1, 3, 1, 8, 1, 1000) COVAL(NEM1 ,TUBH,0.088889 , GRND8 ) PATCH(BAFFLE1 ,HIGH , 1, 4, 1, 3, 3, 3, 1, 1000) COVAL(BAFFLE1 ,W1 ,1.0E+04 ,0. ) COVAL(BAFFLE1 ,W2 ,1.0E+04 ,0. ) PATCH(BAFFLE2 ,HIGH , 2, 5, 1, 3, 5, 5, 1, 1000) COVAL(BAFFLE2 ,W1 ,1.0E+04 ,0. ) COVAL(BAFFLE2 ,W2 ,1.0E+04 ,0. ) PATCH(RESIST ,PHASEM, 1, 5, 1, 3, 1, 8, 1, 1000) COVAL(RESIST ,U1 ,200. ,0. ) COVAL(RESIST ,U2 ,2.0E+04 ,0. ) COVAL(RESIST ,V1 ,200. ,0. ) COVAL(RESIST ,V2 ,2.0E+04 ,0. ) COVAL(RESIST ,W1 ,100. ,0. ) COVAL(RESIST ,W2 ,1.0E+04 ,0. ) PATCH(GRAVITY ,PHASEM, 1, 5, 1, 3, 1, 8, 1, 1000) COVAL(GRAVITY ,W1 , FIXFLU ,9.81 ) COVAL(GRAVITY ,W2 , FIXFLU ,9.81 ) PATCH(UNRELAX ,PHASEM, 1, 4, 1, 3, 1, 3, 1, 1000) COVAL(UNRELAX ,U1 ,1.0E-02 , SAME ) COVAL(UNRELAX ,U2 ,1.0E-02 , SAME ) COVAL(UNRELAX ,V1 ,0.1 , SAME ) COVAL(UNRELAX ,V2 ,0.1 , SAME ) COVAL(UNRELAX ,W1 ,0.1 , SAME ) COVAL(UNRELAX ,W2 ,0.1 , SAME ) XCYCLE = F EGWF = T WALLCO = GRND2 ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 200 ;ISWC1 = 1 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1 ISWR1 = 1 ;ISWR2 = 10000 SELREF = T RESFAC =1.0E-05 ************************************************************ Group 16. Terminate Iterations LITER(P1)=20 ;LITER(U1)=10 LITER(U2)=10 ;LITER(V1)=10 LITER(V2)=10 ;LITER(W1)=10 LITER(W2)=10 ;LITER(GAS)=1 LITER(LIQ)=1 ;LITER(1STH)=20 LITER(2NDH)=20 ;LITER(TUBH)=20 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03 ENDIT(U2)=1.0E-03 ;ENDIT(V1)=1.0E-03 ENDIT(V2)=1.0E-03 ;ENDIT(W1)=1.0E-03 ENDIT(W2)=1.0E-03 ;ENDIT(GAS)=1.0E-03 ENDIT(LIQ)=1.0E-03 ;ENDIT(1STH)=1.0E-03 ENDIT(2NDH)=1.0E-03 ;ENDIT(TUBH)=1.0E-03 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,1.) RELAX(U1,FALSDT,1.0E-02) RELAX(U2,FALSDT,1.0E-02) RELAX(V1,FALSDT,1.0E-02) RELAX(V2,FALSDT,1.0E-02) RELAX(W1,FALSDT,1.0E-02) RELAX(W2,FALSDT,1.0E-02) RELAX(GAS,LINRLX,0.4) RELAX(LIQ,LINRLX,0.4) RELAX(1STH,FALSDT,1.) RELAX(2NDH,FALSDT,1.) RELAX(TUBH,FALSDT,1.) RELAX(MDOT,LINRLX,0.4) 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(U2)=1.0E+06 ;VARMIN(U2)=-1.0E+06 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06 VARMAX(V2)=1.0E+06 ;VARMIN(V2)=-1.0E+06 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06 VARMAX(W2)=1.0E+06 ;VARMIN(W2)=-1.0E+06 VARMAX(GAS)=1. ;VARMIN(GAS)=1.0E-04 VARMAX(LIQ)=1. ;VARMIN(LIQ)=1.0E-04 VARMAX(1STH)=1.0E+10 ;VARMIN(1STH)=-1.0E+10 VARMAX(2NDH)=1.0E+10 ;VARMIN(2NDH)=-1.0E+10 VARMAX(TUBH)=1.0E+10 ;VARMIN(TUBH)=-1.0E+10 VARMAX(HPOR)=1.0E+10 ;VARMIN(HPOR)=-1.0E+10 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10 VARMAX(MDOT)=1.0E+10 ;VARMIN(MDOT)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND PARSOL = F ISG62 = 1 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(P1,Y,N,Y,Y,Y,Y) OUTPUT(U1,Y,N,Y,Y,Y,Y) OUTPUT(U2,Y,N,Y,Y,Y,Y) OUTPUT(V1,Y,N,Y,Y,Y,Y) OUTPUT(V2,Y,N,Y,Y,Y,Y) OUTPUT(W1,Y,N,Y,Y,Y,Y) OUTPUT(W2,Y,N,Y,Y,Y,Y) OUTPUT(GAS,Y,N,Y,Y,Y,Y) OUTPUT(LIQ,N,N,N,N,N,N) OUTPUT(1STH,N,N,Y,Y,Y,Y) OUTPUT(2NDH,N,N,Y,Y,Y,Y) OUTPUT(TUBH,N,N,Y,Y,Y,Y) OUTPUT(HPOR,N,N,N,N,N,N) OUTPUT(NPOR,N,N,N,N,N,N) OUTPUT(EPOR,N,N,N,N,N,N) OUTPUT(MDOT,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 3 ;IYMON = 2 ;IZMON = 4 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 = T ;YZPR = F IPLTF = 1 ;IPLTL = 200 ;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 PATCH(PASS1 ,PROFIL, 1, 1, 2, 2, 1, 8, 1, 1000) PLOT(PASS1 ,1STH,0. ,1. ) PLOT(PASS1 ,2NDH,0. ,1. ) PLOT(PASS1 ,TUBH,0. ,1. ) PATCH(PASS2 ,PROFIL, 2, 2, 2, 2, 1, 8, 1, 1000) PLOT(PASS2 ,1STH,0. ,1. ) PLOT(PASS2 ,2NDH,0. ,1. ) PLOT(PASS2 ,TUBH,0. ,1. ) PATCH(PASS3 ,PROFIL, 3, 3, 2, 2, 1, 8, 1, 1000) PLOT(PASS3 ,1STH,0. ,1. ) PLOT(PASS3 ,2NDH,0. ,1. ) PLOT(PASS3 ,TUBH,0. ,1. ) PATCH(PASS4 ,PROFIL, 4, 4, 2, 2, 1, 8, 1, 1000) PLOT(PASS4 ,1STH,0. ,1. ) PLOT(PASS4 ,2NDH,0. ,1. ) PLOT(PASS4 ,TUBH,0. ,1. ) PATCH(PASS5 ,PROFIL, 5, 5, 2, 2, 1, 8, 1, 1000) PLOT(PASS5 ,1STH,0. ,1. ) PLOT(PASS5 ,2NDH,0. ,1. ) PLOT(PASS5 ,TUBH,0. ,1. ) PATCH(TABMAP ,CONTUR, 1, 5, 1, 3, 4, 4, 1, 1000) PLOT(TABMAP ,1STH,0. ,10. ) PLOT(TABMAP ,2NDH,0. ,10. ) PLOT(TABMAP ,TUBH,0. ,10. ) PATCH(TABYEQ3 ,CONTUR, 1, 5, 3, 3, 1, 8, 1, 1000) PLOT(TABYEQ3 ,P1 ,0. ,10. ) PLOT(TABYEQ3 ,GAS ,0. ,10. ) PLOT(TABYEQ3 ,1STH,0. ,10. ) PLOT(TABYEQ3 ,2NDH,0. ,10. ) PLOT(TABYEQ3 ,TUBH,0. ,10. ) PLOT(TABYEQ3 ,MDOT,0. ,10. ) ************************************************************ Group 24. Dumps For Restarts SAVE = T ;NOWIPE = F NSAVE =CHAM STOP