TALK=T;RUN(1,1) PHOTON USE p;;;;; up z msg grid gr x 1 msg Pressto continue pause; cl msg 1st-phase (liquid) velocity vectors set vec ref;0.5;vec x 1 sh; gr ou x 1 msg Press to continue pause; cl msg 2nd-phase (solid) velocity vectors set vec comp; - v2 e2; vec x 1 sh; gr ou x 1 msg Press to continue pause ; cl msg contour of pressure con p1 x 1 fi;0.002; gr ou x 1 msg Press to continue pause; cl msg contour of 1st-phase (liquid) volume fraction con r1 x 1 fi;0.002; gr ou x 1 msg Press to continue pause; cl msg contour of soluble material concentration con c1 x 1 fi;0.002; gr ou x 1 msg Press to continue pause; cl msg contour of 1st-phase (liquid) enthalpy con liqt x 1 fi;0.002; gr ou x 1 msg Press to continue pause; cl msg contour of 2nd-phase (solid) enthalpy con solt x 1 fi;0.002; gr ou x 1 msg Press e to END enduse DISPLAY * A finely-divided solid is supposed to be uniformly distributed within a liquid, which is at rest in a cylindrical container, of diameter 1 meter and height 1 meter. The particles and liquid are at different temperatures; and the particles are soluble in the liquid. * A paddle wheel, situated on the axis near the floor of the tank, is suddenly set in motion. * The subsequent motions of the liquid and of the particles are computed, together with their changes in temperature, and the increase in concentration of the soluble material in the liquid. * Three runs are set up, with varying paddle speed. It is suggested that a series of runs should be performed, showing the influences on the rate of dissolution of, for example:- * the paddle speed; * the paddle size; * the density ratio between solid and liquid; * the various factors influencing the transfer rates of heat, mass and momentum between the particles and their surroundings;etc. Note that 100 sweeps per time step are needed for convergence. ENDDIS ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(STIRRED TANK; RUN3 NO STIRRING : W920) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 919 ************************************************************ Group 2. Time dependence STEADY = F * Set overall time and no. of steps TFIRST =0. ;TLAST =10. FSTEP = 1 ;LSTEP = 10 TFRAC(1)=0.1 ;TFRAC(2)=0.2 TFRAC(3)=0.3 ;TFRAC(4)=0.4 TFRAC(5)=0.5 ;TFRAC(6)=0.6 TFRAC(7)=0.7 ;TFRAC(8)=0.8 TFRAC(9)=0.9 ;TFRAC(10)=1. ************************************************************ Group 3. X-Direction Grid Spacing CARTES = F NX = 1 XULAST =0.1 XFRAC(1)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 10 YVLAST =0.5 YFRAC(1)=0.1 ;YFRAC(3)=0.3 YFRAC(5)=0.5 ;YFRAC(7)=0.7 YFRAC(9)=0.9 ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 10 ZWLAST =1. ZFRAC(1)=0.1 ;ZFRAC(2)=0.2 ZFRAC(3)=0.3 ;ZFRAC(4)=0.4 ZFRAC(5)=0.5 ;ZFRAC(6)=0.6 ZFRAC(7)=0.7 ;ZFRAC(8)=0.8 ZFRAC(9)=0.9 ;ZFRAC(10)=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)=E2 ;NAME(9)=R1 NAME(10)=R2 ;NAME(14)=LIQT NAME(15)=SOLT ;NAME(16)=C1 NAME(17)=D2 ;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,N,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(E2,Y,Y,N,N,N,Y) SOLUTN(R1,Y,Y,N,N,N,Y) SOLUTN(R2,Y,Y,N,N,N,Y) SOLUTN(LIQT,Y,Y,N,N,N,Y) SOLUTN(SOLT,Y,Y,N,N,N,Y) SOLUTN(C1,Y,Y,N,N,N,Y) SOLUTN(D2,Y,Y,N,N,N,Y) SOLUTN(MDOT,Y,N,N,N,N,Y) INTMDT = 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(U1,Y,Y,Y,Y,Y,Y) TERMS(U2,Y,Y,Y,Y,N,Y) TERMS(V1,Y,Y,Y,Y,Y,Y) TERMS(V2,Y,Y,Y,Y,N,Y) TERMS(W1,Y,Y,Y,Y,Y,Y) TERMS(E2,Y,Y,Y,Y,N,Y) TERMS(R1,Y,Y,Y,Y,Y,Y) TERMS(R2,Y,Y,Y,Y,N,Y) TERMS(LIQT,Y,Y,Y,Y,Y,Y) TERMS(SOLT,Y,Y,Y,Y,N,Y) TERMS(C1,N,Y,Y,Y,Y,Y) TERMS(D2,N,Y,Y,Y,N,Y) DIFCUT =0.5 ;ZDIFAC =1. GALA = F ;ADDDIF = F EQDVDP = F HUNIT =1. ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1 ************************************************************ Group 9. Properties used if PRPS is not stored, and where PRPS = -1.0 if it is! RHO1 =1000. ;TMP1 =0. ;EL1 =0. TSURR =0. ;TEMP0 =0. ;PRESS0 =0. DVO1DT =0. ;DRH1DP =0. EMISS =0. ;SCATT =0. RADIA =0. ;RADIB =0. RHO2 =2000. ;TMP2 =0. ;EL2 =0. DVO2DT =0. ;DRH2DP =0. ENUL =1.0E-02 ;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(E2)=-2.022E+04 PHINT(R1)=-2.022E+04 ;PHINT(R2)=-2.022E+04 PHINT(LIQT)=-2.022E+04 ;PHINT(SOLT)=-2.022E+04 PHINT(C1)=1. ;PHINT(D2)=1. PRNDTL(U1)=1. ;PRNDTL(U2)=1. PRNDTL(V1)=1. ;PRNDTL(V2)=1. PRNDTL(W1)=1. ;PRNDTL(E2)=1. PRNDTL(R1)=1. ;PRNDTL(R2)=1. PRNDTL(LIQT)=5. ;PRNDTL(SOLT)=1. PRNDTL(C1)=1. ;PRNDTL(D2)=1. PRT(U1)=1. ;PRT(U2)=1. PRT(V1)=1. ;PRT(V2)=1. PRT(W1)=1. ;PRT(E2)=1. PRT(R1)=1. ;PRT(R2)=1. PRT(LIQT)=1. ;PRT(SOLT)=1. PRT(C1)=1. ;PRT(D2)=1. CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes CFIPS = GRND2 RLOLIM =0. ;CMDOT =1.0E-04 CFIPA =1.0E-02 ;CFIPB =0. CFIPC =1.0E+04 ;CFIPD =0. CINT(P1)=1. ;CINT(U1)=1. CINT(U2)=1. ;CINT(V1)=1. CINT(V2)=1. ;CINT(W1)=1. CINT(E2)=1. ;CINT(R1)=1. CINT(R2)=1. ;CINT(LIQT)=1.0E-02 CINT(SOLT)=1.0E-03 ;CINT(C1)=0. CINT(D2)=0. 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(E2)=-2.022E+04 ;PHINT(R1)=-2.022E+04 PHINT(R2)=-2.022E+04 ;PHINT(LIQT)=-2.022E+04 PHINT(SOLT)=-2.022E+04 ;PHINT(C1)=1. PHINT(D2)=1. ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=1.0E-10 ;FIINIT(U1)=0. FIINIT(U2)=0. ;FIINIT(V1)=1.0E-10 FIINIT(V2)=1.0E-10 ;FIINIT(W1)=1.0E-10 FIINIT(E2)=1.0E-10 ;FIINIT(R1)=0.99 FIINIT(R2)=1.0E-02 ;FIINIT(LIQT)=0. FIINIT(SOLT)=1. ;FIINIT(C1)=0. FIINIT(D2)=1. ;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(CYLWALL ,NWALL , 1, 1, 10, 10, 1, 10, 1, 10) COVAL(CYLWALL ,U1 ,1. ,0. ) COVAL(CYLWALL ,U2 ,1. ,0. ) COVAL(CYLWALL ,W1 ,1. ,0. ) COVAL(CYLWALL ,E2 ,1. ,0. ) PATCH(TOP ,HWALL , 1, 1, 1, 10, 10, 10, 1, 10) COVAL(TOP ,U1 ,1. ,0. ) COVAL(TOP ,U2 ,1. ,0. ) COVAL(TOP ,V1 ,1. ,0. ) COVAL(TOP ,V2 ,1. ,0. ) PATCH(BOTTOM ,LWALL , 1, 1, 1, 10, 1, 1, 1, 10) COVAL(BOTTOM ,U1 ,1. ,0. ) COVAL(BOTTOM ,U2 ,1. ,0. ) COVAL(BOTTOM ,V1 ,1. ,0. ) COVAL(BOTTOM ,V2 ,1. ,0. ) PATCH(PRELIEF ,HIGH , 1, 1, 10, 10, 10, 10, 1, 100) COVAL(PRELIEF ,R1 ,1. ,0. ) COVAL(PRELIEF ,LIQT,0. ,0. ) COVAL(PRELIEF ,C1 ,0. ,0. ) PATCH(PADDLE ,CELL , 1, 1, 5, 5, 1, 2, 1, 10) COVAL(PADDLE ,U1 , FIXVAL ,0. ) PATCH(GRAVITY ,PHASEM, 1, 1, 1, 10, 1, 10, 1, 10) COVAL(GRAVITY ,W1 , FIXFLU ,-9.81 ) COVAL(GRAVITY ,E2 , FIXFLU ,-9.81 ) IURVAL = -1 XCYCLE = F EGWF = T WALLCO = GRND2 ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 20 ;ISWC1 = 1 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1 ISWR1 = 1 ;ISWR2 = 10000 SELREF = T RESFAC =0.1 ************************************************************ Group 16. Terminate Iterations LITER(P1)=20 ;LITER(U1)=10 LITER(U2)=10 ;LITER(V1)=10 LITER(V2)=10 ;LITER(W1)=10 LITER(E2)=10 ;LITER(R1)=1 LITER(R2)=1 ;LITER(LIQT)=20 LITER(SOLT)=20 ;LITER(C1)=20 LITER(D2)=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(E2)=1.0E-03 ;ENDIT(R1)=1.0E-03 ENDIT(R2)=1.0E-03 ;ENDIT(LIQT)=1.0E-03 ENDIT(SOLT)=1.0E-03 ;ENDIT(C1)=1.0E-03 ENDIT(D2)=1.0E-03 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,1.) RELAX(U1,FALSDT,0.010194) RELAX(U2,FALSDT,0.010194) RELAX(V1,FALSDT,0.010194) RELAX(V2,FALSDT,0.010194) RELAX(W1,FALSDT,0.010194) RELAX(E2,FALSDT,0.010194) RELAX(R1,LINRLX,0.75) RELAX(R2,LINRLX,0.75) RELAX(LIQT,FALSDT,1.0E+09) RELAX(SOLT,FALSDT,1.0E+09) RELAX(C1,FALSDT,1.0E+09) RELAX(D2,FALSDT,1.0E+09) RELAX(MDOT,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(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(E2)=1.0E+06 ;VARMIN(E2)=-1.0E+06 VARMAX(R1)=1. ;VARMIN(R1)=1.0E-06 VARMAX(R2)=1. ;VARMIN(R2)=1.0E-06 VARMAX(LIQT)=1.0E+10 ;VARMIN(LIQT)=-1.0E+10 VARMAX(SOLT)=1.0E+10 ;VARMIN(SOLT)=-1.0E+10 VARMAX(C1)=1.0E+10 ;VARMIN(C1)=-1.0E+10 VARMAX(D2)=1.0E+10 ;VARMIN(D2)=-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,TRANSIENT,L,F) SPEDAT(SET,GXMONI,PLOTALL,L,T) ************************************************************ Group 20. Preliminary Printout ************************************************************ Group 21. Print-out of Variables IURPRN = -1 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(E2,Y,N,Y,Y,Y,Y) OUTPUT(R1,N,Y,Y,Y,Y,Y) OUTPUT(R2,Y,N,Y,Y,Y,Y) OUTPUT(LIQT,Y,N,Y,Y,Y,Y) OUTPUT(SOLT,Y,N,Y,Y,Y,Y) OUTPUT(C1,Y,N,Y,Y,Y,Y) OUTPUT(D2,Y,N,Y,Y,Y,Y) OUTPUT(MDOT,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 1 ;IYMON = 9 ;IZMON = 9 NPRMON = 20 ;NPRMNT = 1 ;TSTSWP = -1 UWATCH = T ;USTEER = T HIGHLO = F ************************************************************ Group 23.Field Print-Out & Plot Control NPRINT = 100000 ;NUMCLS = 5 NTPRIN = 100000 ;ISTPRF = 1 ;ISTPRL = 100000 NYPRIN = 2 ;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 PATCH(MAP ,CONTUR, 1, 1, 1, 10, 1, 10, 1, 10) PLOT(MAP ,U1 ,0. ,10. ) PLOT(MAP ,V1 ,0. ,10. ) PLOT(MAP ,W1 ,0. ,10. ) PLOT(MAP ,E2 ,0. ,10. ) PLOT(MAP ,R2 ,0. ,10. ) PLOT(MAP ,LIQT,0. ,10. ) PLOT(MAP ,SOLT,0. ,10. ) PLOT(MAP ,C1 ,0. ,10. ) PLOT(MAP ,MDOT,0. ,10. ) PATCH(IZEQNZM1,PROFIL, 1, 1, 1, 10, 9, 9, 1, 10) PLOT(IZEQNZM1,W1 ,0. ,0. ) PLOT(IZEQNZM1,E2 ,0. ,0. ) PATCH(IZEQNZD2,PROFIL, 1, 1, 1, 10, 1, 5, 1, 10) PLOT(IZEQNZD2,W1 ,-1. ,-1. ) PLOT(IZEQNZD2,E2 ,-1. ,-1. ) PLOT(IZEQNZD2,R2 ,0. ,0. ) PATCH(TIMEPLOT,PROFIL, 1, 1, 5, 5, 5, 5, 1, 10) PLOT(TIMEPLOT,U1 ,0. ,0. ) PLOT(TIMEPLOT,V1 ,0. ,0. ) PLOT(TIMEPLOT,W1 ,0. ,0. ) PLOT(TIMEPLOT,R2 ,0. ,0. ) PLOT(TIMEPLOT,LIQT,-2. ,-2. ) PLOT(TIMEPLOT,SOLT,-2. ,-2. ) PLOT(TIMEPLOT,C1 ,0. ,0. ) ************************************************************ Group 24. Dumps For Restarts SAVE = T ;NOWIPE = F NSAVE =CHAM STOP