TALK=T;RUN(1,1) PHOTON USE p; ; ; ; ; cl;gr ou y 1 msg Contours of temperature T1 con tem1 y 1 fi;0.005 ; pause pause cl;gr ou y 1 msg Contours of coefficients APCO: con apt1 j 1 fi;0.005 pause cl;gr ou y 1 msg Contours of coefficients AECO: con aet1 j 1 fi;0.005 pause cl;gr ou y 1 msg Contours of coefficients AWCO: con awt1 j 1 fi;0.005 pause cl;gr ou y 1 msg Contours of coefficients ALCO: con alt1 j 1 fi;0.005 pause cl;gr ou y 1 msg Contours of coefficients AHCO: con aht1 j 1 fi;0.005 pause cl;gr ou y 1 msg Contours of residuals of temperature RES: con tres j 1 fi;0.005 pause cl;gr ou y 1 msg Contours of temperature corrections CORR: con tcor j 1 fi;0.005 pause AUTOPLOT file phi 5 aphi 2 data 1 tem1 z 2 col3 1 data 1 tem1 z 8 colf 2 data 2 dist anal BLB4 3 REDR msg Tem1 at y=2 Blue ; at y=8 Red ;Analytic solution Crosses ENDUSE DISPLAY This case uses the geometry and finer grid volumes of F303. Temperatures at opposite boundaries along x-direction is fixed as boundary conditions. Then, uniform u1 is imposed in the direction of the temperature gradient. The soulution is one dimensional with exponential profile (exp((u1*rho1*cp1)/cond)*x) - 1 T(x) =(------------------------------------------ )*(T2-T1)+T1 ( exp((u1*rho1*cp1)/cond)*L) -1 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. ----------- aphi ------ DIST Anal 2.500E-01 1.999E+03 7.500E-01 1.997E+03 1.250E+00 1.994E+03 1.750E+00 1.989E+03 2.250E+00 1.983E+03 2.750E+00 1.975E+03 3.250E+00 1.963E+03 3.750E+00 1.946E+03 4.250E+00 1.922E+03 4.750E+00 1.890E+03 5.250E+00 1.844E+03 5.750E+00 1.781E+03 6.250E+00 1.692E+03 6.750E+00 1.568E+03 7.250E+00 1.395E+03 7.750E+00 1.154E+03 ----------- aphi ------ ENDDIS ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(F318 WITH X-Z PLANE ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 0 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 16 XULAST =8. XFRAC(1)=0.0625 ;XFRAC(2)=0.125 XFRAC(3)=0.1875 ;XFRAC(4)=0.25 XFRAC(5)=0.3125 ;XFRAC(6)=0.375 XFRAC(7)=0.4375 ;XFRAC(8)=0.5 XFRAC(9)=0.5625 ;XFRAC(10)=0.625 XFRAC(11)=0.6875 ;XFRAC(12)=0.75 XFRAC(13)=0.8125 ;XFRAC(14)=0.875 XFRAC(15)=0.9375 ;XFRAC(16)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 1 YVLAST =1. YFRAC(1)=1. ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 12 ZWLAST =6. ZFRAC(1)=0.083333 ;ZFRAC(2)=0.166667 ZFRAC(3)=0.25 ;ZFRAC(4)=0.333333 ZFRAC(5)=0.416667 ;ZFRAC(6)=0.5 ZFRAC(7)=0.583333 ;ZFRAC(8)=0.666667 ZFRAC(9)=0.75 ;ZFRAC(10)=0.833333 ZFRAC(11)=0.916667 ;ZFRAC(12)=1. ************************************************************ Group 6. Body-Fitted Coordinates ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd ONEPHS = T NAME(3)=U1 ;NAME(7)=W1 NAME(141)=TCOR ;NAME(142)=TRES NAME(143)=GAT1 ;NAME(144)=ALT1 NAME(145)=AHT1 ;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(U1,Y,N,N,N,N,Y) SOLUTN(W1,Y,N,N,N,N,Y) 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(ALT1,Y,N,N,N,N,Y) SOLUTN(AHT1,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 =1.0E+05 DVO1DT =0. ;DRH1DP =0. EMISS =0. ;SCATT =0. RADIA =0. ;RADIB =0. ENUL =0.015 ;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(U1)=1.0E-02 ;FIINIT(W1)=1.0E-10 FIINIT(TCOR)=1.0E-10 ;FIINIT(TRES)=1.0E-10 FIINIT(GAT1)=1.0E-10 ;FIINIT(ALT1)=1.0E-10 FIINIT(AHT1)=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) 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(U1,LINRLX,1.) RELAX(W1,LINRLX,1.) RELAX(TCOR,LINRLX,1.) RELAX(TRES,LINRLX,1.) RELAX(GAT1,LINRLX,1.) RELAX(ALT1,LINRLX,1.) RELAX(AHT1,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(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06 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(ALT1)=1.0E+10 ;VARMIN(ALT1)=-1.0E+10 VARMAX(AHT1)=1.0E+10 ;VARMIN(AHT1)=-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,ALT1,C,=ALCO(TEM1)!EQCOEF) SPEDAT(SET,STORED,AHT1,C,=AHCO(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,B5) SPEDAT(SET,OBJTYP,^OB1,C,FINE_GRID_VOL) SPEDAT(SET,^OB1,FINEX,I,2) SPEDAT(SET,^OB1,FINEY,I,1) SPEDAT(SET,^OB1,FINEZ,I,2) SPEDAT(SET,OBJNAM,^OB2,C,B6) SPEDAT(SET,OBJTYP,^OB2,C,FINE_GRID_VOL) SPEDAT(SET,^OB2,FINEX,I,2) SPEDAT(SET,^OB2,FINEY,I,1) SPEDAT(SET,^OB2,FINEZ,I,2) SPEDAT(SET,OBJNAM,^OB3,C,B7) SPEDAT(SET,OBJTYP,^OB3,C,FINE_GRID_VOL) SPEDAT(SET,^OB3,FINEX,I,2) SPEDAT(SET,^OB3,FINEY,I,1) SPEDAT(SET,^OB3,FINEZ,I,2) SPEDAT(SET,OBJNAM,^OB4,C,B3) SPEDAT(SET,OBJTYP,^OB4,C,PLATE) SPEDAT(SET,OBJNAM,^OB5,C,B4) SPEDAT(SET,OBJTYP,^OB5,C,PLATE) SPEDAT(SET,OBJNAM,^OB6,C,PLT2) SPEDAT(SET,OBJTYP,^OB6,C,PLATE) SPEDAT(SET,OBJNAM,^OB7,C,PLT1) SPEDAT(SET,OBJTYP,^OB7,C,PLATE) SPEDAT(SET,FACETDAT,NUMOBJ,I,7) ************************************************************ 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(U1,Y,N,Y,N,N,N) OUTPUT(W1,Y,N,Y,N,N,N) 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(ALT1,Y,N,Y,N,N,N) OUTPUT(AHT1,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 = 2 ;IYMON = 1 ;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 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