TALK=T;RUN(1,1) PHOTON USE p; ; ; ; ; cl;gr ou z 1 msg Contours of temperature T1 con tem1 z 1 fi;0.005 ; pause pause cl;gr ou z 1 msg Contours of coefficients APCO: con apt1 k 1 fi;0.005 pause cl;gr ou z 1 msg Contours of coefficients AECO: con aet1 k 1 fi;0.005 pause cl;gr ou z 1 msg Contours of coefficients AWCO: con awt1 k 1 fi;0.005 pause cl;gr ou z 1 msg Contours of coefficients ANCO: con ant1 k 1 fi;0.005 pause cl;gr ou z 1 msg Contours of coefficients ASCO: con ast1 k 1 fi;0.005 pause cl;gr ou z 1 msg Contours of residuals of temperature RES: con tres k 1 fi;0.005 pause cl;gr ou z 1 msg Contours of temperature corrections CORR: con tcor k 1 fi;0.005 pause AUTOPLOT file phi 5 aphi 2 data 1 tem1 y 2 col3 1 data 1 tem1 y 6 colf 2 data 2 dist anal BLB4 3 REDR msg Tem1 at y=2 Blue ; at y=6 Red ;Analytic solution Crosses ENDUSE DISPLAY This case uses the geometry and finer grid volumes of F302. Temperatures at opposite boundaries along x-direction is fixed as boundary conditions. The solution is one dimensional with linear profile T(x) = (T2-T1)(x/L)+T1 at x=0 T=T1 ; at x=L T=T2 In-Form facility is used for printing coefficients, residuals and corrections and extinction coeffieint. PHOTON use is available. AUTOPLOT is used to show the comparison of the analytic and PHOENICS solution. Save following table file as aphi to use autoplot, then copy it to working directory. Save following table file as aphi to use autoplot ----------- aphi ------ DIST TEMP 2.500E-01 1.975E+03 7.500E-01 1.925E+03 1.250E+00 1.875E+03 1.750E+00 1.825E+03 2.250E+00 1.775E+03 2.750E+00 1.725E+03 3.250E+00 1.675E+03 3.750E+00 1.625E+03 4.250E+00 1.575E+03 4.750E+00 1.525E+03 5.250E+00 1.475E+03 5.750E+00 1.425E+03 6.250E+00 1.375E+03 6.750E+00 1.325E+03 7.250E+00 1.275E+03 7.750E+00 1.225E+03 8.250E+00 1.175E+03 8.750E+00 1.125E+03 9.250E+00 1.075E+03 9.750E+00 1.025E+03 ----------- aphi ------ ENDDIS ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(Simple f302 (tem1) ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 0 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 20 XULAST =10. XFRAC(1)=0.05 ;XFRAC(2)=0.1 XFRAC(3)=0.15 ;XFRAC(4)=0.2 XFRAC(5)=0.26 ;XFRAC(6)=0.32 XFRAC(7)=0.35 ;XFRAC(8)=0.385 XFRAC(9)=0.42 ;XFRAC(10)=0.45 XFRAC(11)=0.516667 ;XFRAC(12)=0.583333 XFRAC(13)=0.65 ;XFRAC(14)=0.685 XFRAC(15)=0.72 ;XFRAC(16)=0.776 XFRAC(17)=0.832 ;XFRAC(18)=0.888 XFRAC(19)=0.944 ;XFRAC(20)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 13 YVLAST =4. YFRAC(1)=0.1 ;YFRAC(2)=0.2 YFRAC(3)=0.25 ;YFRAC(4)=0.3 YFRAC(5)=0.375 ;YFRAC(6)=0.45 YFRAC(7)=0.55 ;YFRAC(8)=0.625 YFRAC(9)=0.7 ;YFRAC(10)=0.75 YFRAC(11)=0.8 ;YFRAC(12)=0.9 YFRAC(13)=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(141)=TCOR ;NAME(142)=TRES NAME(143)=GAT1 ;NAME(144)=AST1 NAME(145)=ANT1 ;NAME(146)=AWT1 NAME(147)=AET1 ;NAME(148)=APT1 NAME(149)=TEM1 ;NAME(150)=PRPS * Y in SOLUTN argument list denotes: * 1-stored 2-solved 3-whole-field * 4-point-by-point 5-explicit 6-harmonic averaging SOLUTN(TCOR,Y,N,N,N,N,Y) SOLUTN(TRES,Y,N,N,N,N,Y) SOLUTN(GAT1,Y,N,N,N,N,Y) SOLUTN(AST1,Y,N,N,N,N,Y) SOLUTN(ANT1,Y,N,N,N,N,Y) SOLUTN(AWT1,Y,N,N,N,N,Y) SOLUTN(AET1,Y,N,N,N,N,Y) SOLUTN(APT1,Y,N,N,N,N,Y) SOLUTN(TEM1,Y,Y,Y,N,N,Y) SOLUTN(PRPS,Y,N,N,N,N,Y) PRPS = 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(TEM1,N,Y,Y,Y,N,Y) DIFCUT =0.5 ;ZDIFAC =1. GALA = F ;ADDDIF = 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. ENUL =0.025 ;ENUT =0. PRNDTL(TEM1)=1. PRT(TEM1)=1. CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(TCOR)=1.0E-10 ;FIINIT(TRES)=1.0E-10 FIINIT(GAT1)=1.0E-10 ;FIINIT(AST1)=1.0E-10 FIINIT(ANT1)=1.0E-10 ;FIINIT(AWT1)=1.0E-10 FIINIT(AET1)=1.0E-10 ;FIINIT(APT1)=1.0E-10 FIINIT(TEM1)=1000. ;FIINIT(PRPS)=-1. 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 ,CELL , 1, 0, 0, 0, 0, 0, 1, 1) PATCH(^OB2 ,CELL , 2, 0, 0, 0, 0, 0, 1, 1) PATCH(^OB3 ,CELL , 3, 0, 0, 0, 0, 0, 1, 1) PATCH(^OB4 ,CELL , 4, 0, 0, 0, 0, 0, 1, 1) PATCH(^OB5 ,CELL , 5, 0, 0, 0, 0, 0, 1, 1) PATCH(^OB7 ,EAST , 7, 0, 0, 0, 0, 0, 1, 1) COVAL(^OB7 ,TEM1,0. ,0. ) PATCH(^OBA ,CELL , 10, 6, 0, 0, 0, 0, 1, 1) COVAL(^OBA ,TEM1,1. ,2000. ) PATCH(^OBB ,CELL , 11, 5, 0, 0, 0, 0, 1, 1) COVAL(^OBB ,TEM1,1. ,1000. ) XCYCLE = F EGWF = T WALLCO = GRND2 ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 1 ;ISWC1 = 1 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1 SELREF = T RESFAC =1.0E-03 ************************************************************ Group 16. Terminate Iterations LITER(TEM1)=1 ENDIT(TEM1)=1.0E-03 ************************************************************ Group 17. Relaxation RELAX(TCOR,LINRLX,1.) RELAX(TRES,LINRLX,1.) RELAX(GAT1,LINRLX,1.) RELAX(AST1,LINRLX,1.) RELAX(ANT1,LINRLX,1.) RELAX(AWT1,LINRLX,1.) RELAX(AET1,LINRLX,1.) RELAX(APT1,LINRLX,1.) RELAX(TEM1,LINRLX,1.) RELAX(PRPS,LINRLX,1.) OVRRLX =0. EXPERT = F ;NNORSL = F ************************************************************ Group 18. Limits VARMAX(TCOR)=1.0E+10 ;VARMIN(TCOR)=-1.0E+10 VARMAX(TRES)=1.0E+10 ;VARMIN(TRES)=-1.0E+10 VARMAX(GAT1)=1.0E+10 ;VARMIN(GAT1)=-1.0E+10 VARMAX(AST1)=1.0E+10 ;VARMIN(AST1)=-1.0E+10 VARMAX(ANT1)=1.0E+10 ;VARMIN(ANT1)=-1.0E+10 VARMAX(AWT1)=1.0E+10 ;VARMIN(AWT1)=-1.0E+10 VARMAX(AET1)=1.0E+10 ;VARMIN(AET1)=-1.0E+10 VARMAX(APT1)=1.0E+10 ;VARMIN(APT1)=-1.0E+10 VARMAX(TEM1)=1.0E+10 ;VARMIN(TEM1)=-1.0E+10 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND ISG62 = 0 SPEDAT(SET,FGMB_ITR,TEM1,I,10000) SPEDAT(SET,STORED,APT1,C,=APCO(TEM1)!EQCOEF) SPEDAT(SET,STORED,AET1,C,=AECO(TEM1)!EQCOEF) SPEDAT(SET,STORED,AWT1,C,=AWCO(TEM1)!EQCOEF) SPEDAT(SET,STORED,ANT1,C,=ANCO(TEM1)!EQCOEF) SPEDAT(SET,STORED,AST1,C,=ASCO(TEM1)!EQCOEF) SPEDAT(SET,STORED,GAT1,C,=GAMM(TEM1)!GAMCOF) SPEDAT(SET,STORED,TRES,C,=RESI(TEM1)!RESIDU) SPEDAT(SET,STORED,TCOR,C,=CORR(TEM1)!CORREC) SPEDAT(SET,GXMONI,PLOTALL,L,T) SPEDAT(SET,OBJNAM,^OB1,C,B6) SPEDAT(SET,OBJTYP,^OB1,C,FINE_GRID_VOL) SPEDAT(SET,^OB1,FINEX,I,3) SPEDAT(SET,^OB1,FINEY,I,3) SPEDAT(SET,^OB1,FINEZ,I,1) SPEDAT(SET,OBJNAM,^OB2,C,B7) SPEDAT(SET,OBJTYP,^OB2,C,FINE_GRID_VOL) SPEDAT(SET,^OB2,FINEX,I,3) SPEDAT(SET,^OB2,FINEY,I,3) SPEDAT(SET,^OB2,FINEZ,I,1) SPEDAT(SET,OBJNAM,^OB3,C,B8) SPEDAT(SET,OBJTYP,^OB3,C,FINE_GRID_VOL) SPEDAT(SET,^OB3,FINEX,I,3) SPEDAT(SET,^OB3,FINEY,I,3) SPEDAT(SET,^OB3,FINEZ,I,1) SPEDAT(SET,OBJNAM,^OB4,C,B9) SPEDAT(SET,OBJTYP,^OB4,C,FINE_GRID_VOL) SPEDAT(SET,^OB4,FINEX,I,3) SPEDAT(SET,^OB4,FINEY,I,3) SPEDAT(SET,^OB4,FINEZ,I,1) SPEDAT(SET,OBJNAM,^OB5,C,B10) SPEDAT(SET,OBJTYP,^OB5,C,FINE_GRID_VOL) SPEDAT(SET,^OB5,FINEX,I,3) SPEDAT(SET,^OB5,FINEY,I,3) SPEDAT(SET,^OB5,FINEZ,I,1) SPEDAT(SET,OBJNAM,^OB7,C,B2) SPEDAT(SET,OBJTYP,^OB7,C,OUTLET) SPEDAT(SET,ARATIO,^OB7,R,1.) SPEDAT(SET,OBJNAM,^OBA,C,PLT1) SPEDAT(SET,OBJTYP,^OBA,C,PLATE) SPEDAT(SET,OBJNAM,^OBB,C,B11) SPEDAT(SET,OBJTYP,^OBB,C,PLATE) SPEDAT(SET,FACETDAT,NUMOBJ,I,11) ************************************************************ 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(TCOR,Y,N,Y,N,N,N) OUTPUT(TRES,Y,N,Y,N,N,N) OUTPUT(GAT1,Y,N,Y,N,N,N) OUTPUT(AST1,Y,N,Y,N,N,N) OUTPUT(ANT1,Y,N,Y,N,N,N) OUTPUT(AWT1,Y,N,Y,N,N,N) OUTPUT(AET1,Y,N,Y,N,N,N) OUTPUT(APT1,Y,N,Y,N,N,N) OUTPUT(TEM1,Y,N,Y,Y,Y,Y) OUTPUT(PRPS,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 1 ;IYMON = 2 ;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