TALK=T;RUN( 1, 1)
************************************************************
Q1 created by VDI menu, Version 3.5, Date 16/12/02
CPVNAM=VDI;SPPNAM=Core
************************************************************
Echo DISPLAY / USE settings
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 F308.
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-02 1.994E+03
7.500E-02 1.979E+03
1.250E-01 1.961E+03
1.750E-01 1.941E+03
2.250E-01 1.917E+03
2.750E-01 1.888E+03
3.250E-01 1.854E+03
3.750E-01 1.814E+03
4.250E-01 1.767E+03
4.750E-01 1.711E+03
5.250E-01 1.645E+03
5.750E-01 1.567E+03
6.250E-01 1.475E+03
6.750E-01 1.366E+03
7.250E-01 1.238E+03
7.750E-01 1.086E+03
----------- aphi ------
ENDDIS
************************************************************
IRUNN = 1 ;LIBREF = 328
************************************************************
Group 1. Run Title
TEXT(Simple (tem1 & uniform u1) )
************************************************************
Group 2. Transience
STEADY = T
************************************************************
Groups 3, 4, 5 Grid Information
* Overall number of cells, RSET(M,NX,NY,NZ,tolerance)
RSET(M,16,8,1,1.000000E+01)
************************************************************
Group 6. Body-Fitted coordinates
************************************************************
Group 7. Variables: STOREd,SOLVEd,NAMEd
ONEPHS = T
* Non-default variable names
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) =PRPS ; NAME(150) =TEM1
* Solved variables list
SOLVE(TEM1)
* Stored variables list
STORE(PRPS,APT1,AET1,AWT1,ANT1,AST1,GAT1,TRES)
STORE(TCOR,V1 ,U1 )
* Additional solver options
SOLUTN(TEM1,Y,Y,Y,N,N,Y)
************************************************************
Echo InForm settings for Group 7
inform7begin
** temperature equation coefficients
(STORED of APT1 is APCO(TEM1))
(STORED of AET1 is AECO(TEM1))
(STORED of AWT1 is AWCO(TEM1))
(STORED of ANT1 is ANCO(TEM1))
(STORED of AST1 is ASCO(TEM1))
** Exchange coefficients of TEM1, temperature
(STORED of GAt1 is GAMM(TEM1))
** Print-out residuals of temperature
(STORED of TRES is RESI(TEM1))
** Print-out of temperature corrections
(STORED of TCOR is CORR(TEM1))
inform7end
************************************************************
Group 8. Terms & Devices
************************************************************
Group 9. Properties
PRESS0 = 1.000000E+05 ;TEMP0 = 2.730000E+02
RHO1 = 1.000000E+00
ENUL = 1.500000E-02
CP1 = 1.000000E+00
ENUT = 0.000000E+00
PRNDTL(TEM1) = 1.000000E+00
************************************************************
Group 10.Inter-Phase Transfer Processes
************************************************************
Group 11.Initialise Var/Porosity Fields
FIINIT(U1 ) = 5.000000E-02 ;FIINIT(PRPS) = -1.000000E+00
FIINIT(TEM1) = 1.000000E+03
No PATCHes used for this Group
INIADD = F
************************************************************
Group 12. Convection and diffusion adjustments
No PATCHes used for this Group
************************************************************
Group 13. Boundary & Special Sources
No PATCHes used for this Group
EGWF = T
************************************************************
Group 14. Downstream Pressure For PARAB
************************************************************
Group 15. Terminate Sweeps
LSWEEP = 100
SARAH = 5.000000E-03
RESFAC = 1.000000E-03
************************************************************
Group 16. Terminate Iterations
************************************************************
Group 17. Relaxation
RELAX(TEM1,LINRLX, 5.000000E-01)
************************************************************
Group 18. Limits
VARMAX(U1 ) = 1.000000E+06 ;VARMIN(U1 ) =-1.000000E+06
VARMAX(V1 ) = 1.000000E+06 ;VARMIN(V1 ) =-1.000000E+06
************************************************************
Group 19. EARTH Calls To GROUND Station
USEGRD = T ;USEGRX = T
ASAP = T
************************************************************
Group 20. Preliminary Printout
ECHO = T
DISTIL=F
EX(V1 )= 1.000E-10 ; EX(TCOR)= 1.619E-04
EX(TRES)= 7.605E-04 ; EX(GAT1)= 1.500E-02
EX(AST1)= 4.375E-02 ; EX(ANT1)= 4.375E-02
EX(AWT1)= 4.570E-03 ; EX(AET1)= 3.867E-03
EX(APT1)= 1.125E-03 ; EX(PRPS)= 1.000E+00
EX(TEM1)= 1.695E+03 ; EX(U1 )= 5.000E-02
************************************************************
Group 21. Print-out of Variables
************************************************************
Group 22. Monitor Print-Out
IXMON = 10 ;IYMON = 8 ;IZMON = 1
NPRMON = 100000
NPRMNT = 1
TSTSWP = -1
************************************************************
Group 23.Field Print-Out & Plot Control
NPRINT = 100000
NXPRIN = 1
NYPRIN = 1
ISWPRF = 1 ;ISWPRL = 100000
No PATCHes used for this Group
************************************************************
Group 24. Dumps For Restarts
GVIEW(P,0.000000E+00,2.084599E-01,9.780309E-01)
GVIEW(UP,0.000000E+00,9.780309E-01,-2.084599E-01)
> DOM, SIZE, 8.000000E-01, 1.200000E-01, 1.000000E+00
> DOM, MONIT, 4.750000E-01, 1.125000E-01, 5.000000E-01
> DOM, SCALE, 1.000000E+00, 1.000000E+00, 1.000000E-01
> DOM, SNAPSIZE, 1.000000E-02
> OBJ1, NAME, INLET
> OBJ1, POSITION, 0.000000E+00, 4.000000E-02, 0.000000E+00
> OBJ1, SIZE, 0.000000E+00, 8.000000E-02, 1.000000E+00
> OBJ1, CLIPART, cube3t
> OBJ1, ROTATION24, 1
> OBJ1, TYPE, INLET
> OBJ1, PRESSURE, 0.000000E+00
> OBJ1, VELOCITY, 0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ1, TEMPERATURE, 2.000000E+01
> OBJ2, NAME, OUTLET
> OBJ2, POSITION, 8.000002E-01, 0.000000E+00, 0.000000E+00
> OBJ2, SIZE, 0.000000E+00, 1.200000E-01, 1.000000E+00
> OBJ2, CLIPART, cube12t
> OBJ2, ROTATION24, 1
> OBJ2, VISIBLE, -1
> OBJ2, TYPE, OUTLET
> OBJ2, PRESSURE, 0.000000E+00
> OBJ2, TEMPERATURE, 0.000000E+00
> OBJ2, COEFFICIENT, 1.000000E+03
> OBJ3, NAME, B5
> OBJ3, POSITION, 0.000000E+00, 1.200000E-01, 0.000000E+00
> OBJ3, SIZE, 8.000000E-01, 0.000000E+00, 1.000000E+00
> OBJ3, CLIPART, cube11
> OBJ3, ROTATION24, 1
> OBJ3, TYPE, PLATE
> OBJ4, NAME, B6
> OBJ4, POSITION, 1.600000E-01, 0.000000E+00, 0.000000E+00
> OBJ4, SIZE, 6.400000E-01, 0.000000E+00, 1.000000E+00
> OBJ4, CLIPART, cube11
> OBJ4, ROTATION24, 1
> OBJ4, TYPE, PLATE
> OBJ5, NAME, B8
> OBJ5, POSITION, 1.000000E-01, 0.000000E+00, 0.000000E+00
> OBJ5, SIZE, 4.000000E-01, 6.000000E-02, 1.000000E+00
> OBJ5, CLIPART, fine
> OBJ5, ROTATION24, 1
> OBJ5, TYPE, FINE_GRID_VOL
> OBJ5, FINEFACTS, 4.000000E+00, 4.000000E+00, 1.000000E+00
> OBJ6, NAME, PLT2
> OBJ6, POSITION, 8.000002E-01, 0.000000E+00, 0.000000E+00
> OBJ6, SIZE, 0.000000E+00, 1.200000E-01, 1.000000E+00
> OBJ6, CLIPART, cube13
> OBJ6, ROTATION24, 1
> OBJ6, TYPE, PLATE
> OBJ6, SURF_TEMP, 0.000000E+00, 1.000000E+03
> OBJ7, NAME, PLT1
> OBJ7, POSITION, 0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ7, SIZE, 0.000000E+00, 1.200000E-01, 1.000000E+00
> OBJ7, CLIPART, cube13
> OBJ7, ROTATION24, 1
> OBJ7, TYPE, PLATE
> OBJ7, SURF_TEMP, 0.000000E+00, 2.000000E+03
SINGLE SWEEP SOLUTION
integer(icase)
icase=2
if(icase.eq.2) then
LSWEEP = 1
RELAX(TEM1,LINRLX, 1.0000)
LITER (TEM1) = 1
spedat(set,fgmb_itr,tem1,i,10000)
endif