```
TALK=T;RUN(1,1)
DISPLAY

Library case H107:

LINEAR HEAT DISSIPATION

This case is geometricaly identical to case 104.  However,
the problem is modelled  as  transient  and  heat  sources
increase linearly with  time,  from  0  at  the  start  of
calculation to maximum value at the end.

(Use PHOTON to display  results.  Enter  USE Q1  in PHOTON
command mode,  or create a file called U,  which  contains
the one line: USE Q1   before typing  RUNPHO.)
ENDDIS
PHOTON USE
p
h1

use patgeo
msg Temperature contours after first time step.
msg
cont tem1 y 6 fil;.001
msg Velocity field after first time step.
vec x 5 sh
vec z m sh
msg
pause
p
h3

use patgeo
msg Temperature contours after third time step.
msg Note increase in the maximum temperature.
msg
cont tem1 y 6 fil;.01
msg Velocity field after third time step.
vec x 5 sh
vec z m sh
msg
pause
p
h5

use patgeo
msg Temperature contours at the end of time period.
msg Note further increase in maximum temperature.
msg
use hotspot
cont tem1 y 6 fil;.001
msg Velocity field at the end of time period.
vec x 5 sh
vec z m sh
msg Type E to end
ENDUSE
************************************************************
Group 1. Run Title and Number
************************************************************
************************************************************

TEXT(Linear Heat Dissipation                 )

************************************************************
************************************************************

IRUNN = 1 ;LIBREF = 14
************************************************************
Group 2. Time dependence
* Set overall time and no. of steps
TFIRST =0. ;TLAST =300.
FSTEP = 1 ;LSTEP = 5
TFRAC(1)=0.2 ;TFRAC(2)=0.4
TFRAC(3)=0.6 ;TFRAC(4)=0.8
TFRAC(5)=1.
************************************************************
Group 3. X-Direction Grid Spacing
CARTES = T
NX = 10
XULAST =0.5
XFRAC(1)=0.1 ;XFRAC(2)=0.2
XFRAC(3)=0.3 ;XFRAC(4)=0.4
XFRAC(5)=0.5 ;XFRAC(6)=0.6
XFRAC(7)=0.7 ;XFRAC(8)=0.8
XFRAC(9)=0.9 ;XFRAC(10)=1.
************************************************************
Group 4. Y-Direction Grid Spacing
NY = 10
YVLAST =0.7
YFRAC(1)=0.095238 ;YFRAC(2)=0.190476
YFRAC(3)=0.285714 ;YFRAC(4)=0.392857
YFRAC(5)=0.5 ;YFRAC(6)=0.528571
YFRAC(7)=0.621429 ;YFRAC(8)=0.714286
YFRAC(9)=0.857143 ;YFRAC(10)=1.
************************************************************
Group 5. Z-Direction Grid Spacing
PARAB = F
NZ = 10
ZWLAST =0.5
ZFRAC(1)=0.1 ;ZFRAC(2)=0.2
ZFRAC(3)=0.3 ;ZFRAC(4)=0.37
ZFRAC(5)=0.44 ;ZFRAC(6)=0.57
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 = T
NAME(1)=P1 ;NAME(3)=U1
NAME(5)=V1 ;NAME(7)=W1
NAME(43)=NPOR ;NAME(44)=BLOK
NAME(46)=PRPS ;NAME(48)=DEN1
NAME(49)=SPH1 ;NAME(50)=TEM1
NAME(149)=LTLS ;NAME(150)=WDIS
* 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,N)
SOLUTN(U1,Y,Y,N,N,N,Y)
SOLUTN(V1,Y,Y,N,N,N,Y)
SOLUTN(W1,Y,Y,N,N,N,Y)
SOLUTN(NPOR,Y,N,N,N,N,Y)
SOLUTN(BLOK,Y,N,N,N,N,Y)
SOLUTN(PRPS,Y,N,N,N,N,Y)
SOLUTN(DEN1,Y,N,N,N,N,Y)
SOLUTN(SPH1,Y,N,N,N,N,N)
SOLUTN(TEM1,Y,Y,Y,N,N,Y)
SOLUTN(LTLS,Y,Y,Y,N,N,Y)
SOLUTN(WDIS,Y,N,N,N,N,Y)
DEN1 = 48
EPOR = 0 ;HPOR = 0 ;NPOR = 43 ;VPOR = 0
IVARBK = -1 ;ISOLBK = 1
PRNITS= F ;OPTRLX= F ;NOSIP= F ;ALLVBC= F
DBSOLV= F ;IMPINI= F ;EARL1D= F
PRPS = 46
************************************************************
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(V1,Y,Y,Y,Y,Y,Y)
TERMS(W1,Y,Y,Y,Y,Y,Y)
TERMS(TEM1,N,Y,Y,Y,Y,Y)
TERMS(LTLS,N,N,Y,N,Y,Y)
DIFCUT =0.5 ;ZDIFAC =1.
GALA = F ;ADDDIF = F
NEWENT = T
ISOLX = 0 ;ISOLY = 0 ;ISOLZ = 0
************************************************************
Group 9. Properties used if PRPS is not
stored, and where PRPS = -1.0 if it is!
RHO1 = FILE ;TMP1 =0.
EL1 = GRND1
TSURR =0. ;TEMP0 =273.
PRESS0 =1.0E+05
DVO1DT =1.189 ;DRH1DP = FILE
EMISS =0. ;SCATT =0.
EL1A =0. ;EL1B =1.
EL1C =0.
ENUL = FILE ;ENUT = GRND8
ENUTA =0. ;ENUTB =0.
ENUTC =0.
IENUTA = 0
PRNDTL(U1)=1. ;PRNDTL(V1)=1.
PRNDTL(W1)=1. ;PRNDTL(TEM1)=CONDFILE
PRNDTL(LTLS)=GRND2
PRT(U1)=1. ;PRT(V1)=1.
PRT(W1)=1. ;PRT(TEM1)=1.
PRT(LTLS)=1.
CP1 = FILE ;CP2 =1.
************************************************************
Group 10.Inter-Phase Transfer Processes
************************************************************
Group 11.Initial field variables (PHIs)
FIINIT(P1)=1.0E-10 ;FIINIT(U1)=1.0E-10
FIINIT(V1)=1.0E-10 ;FIINIT(W1)=1.0E-10
FIINIT(NPOR)=1. ;FIINIT(BLOK)=1.
FIINIT(PRPS)=2. ;FIINIT(DEN1)=1.0E-10
FIINIT(SPH1)=1.0E-10 ;FIINIT(TEM1)=20.
FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=0.05

PATCH(PCB ,INIVAL, 3, 8, 5, 5, 3, 8, 1, 1)
INIT(PCB ,V1 ,0. ,0. )
INIT(PCB ,NPOR,0. ,0. )

PATCH(CHIP1 ,INIVAL, 4, 4, 6, 6, 4, 5, 1, 1)
INIT(CHIP1 ,BLOK,0. ,2. )
INIT(CHIP1 ,PRPS,0. ,103. )

PATCH(CHIP2 ,INIVAL, 7, 7, 6, 6, 4, 5, 1, 1)
INIT(CHIP2 ,BLOK,0. ,3. )
INIT(CHIP2 ,PRPS,0. ,103. )
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(FAN ,HIGH , 4, 7, 4, 8, 10, 10, 1, 5)
COVAL(FAN ,P1 , FIXFLU ,1.783 )
COVAL(FAN ,U1 ,0. ,0. )
COVAL(FAN ,V1 ,0. ,0. )
COVAL(FAN ,W1 ,0. ,-1.5 )
COVAL(FAN ,TEM1,0. ,20. )

PATCH(VENT ,NORTH , 3, 8, 10, 10, 4, 7, 1, 5)
COVAL(VENT ,P1 ,1. ,0. )
COVAL(VENT ,TEM1,0. ,20. )

PATCH(TM1CHIP1,VOLUME, 4, 4, 6, 6, 4, 5, 1, 5)
COVAL(TM1CHIP1,TEM1, FIXFLU , GRND )

PATCH(TM2CHIP2,VOLUME, 7, 7, 6, 6, 4, 5, 1, 5)
COVAL(TM2CHIP2,TEM1, FIXFLU , GRND )

PATCH(BUOYANCY,PHASEM, 1, 10, 1, 10, 1, 10, 1, 5)
COVAL(BUOYANCY,V1 , FIXFLU , GRND2 )

PATCH(PCB-NW ,NWALL , 3, 8, 5, 5, 3, 8, 1, 5)
COVAL(PCB-NW ,U1 , GRND2 ,0. )
COVAL(PCB-NW ,W1 , GRND2 ,0. )

PATCH(PCB-SW ,SWALL , 3, 8, 6, 6, 3, 8, 1, 5)
COVAL(PCB-SW ,U1 , GRND2 ,0. )
COVAL(PCB-SW ,W1 , GRND2 ,0. )
XCYCLE = F
EGWF = T
WALLCO = GRND2
BUOYA =0. ; BUOYB =-9.81
BUOYC =0.
BUOYD =1.189
************************************************************
Group 14. Downstream Pressure For PARAB
************************************************************
Group 15. Terminate Sweeps
LSWEEP = 20 ;ISWC1 = 1
LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
SELREF = T
RESFAC =1.0E-02
************************************************************
Group 16. Terminate Iterations
LITER(P1)=20 ;LITER(U1)=10
LITER(V1)=10 ;LITER(W1)=10
LITER(TEM1)=15 ;LITER(LTLS)=20
ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03
ENDIT(TEM1)=1.0E-03 ;ENDIT(LTLS)=1.0E-03
************************************************************
Group 17. Relaxation
RELAX(P1,LINRLX,1.)
RELAX(U1,FALSDT,0.4667)
RELAX(V1,FALSDT,0.4667)
RELAX(W1,FALSDT,0.4667)
RELAX(BLOK,LINRLX,1.)
RELAX(PRPS,LINRLX,1.)
RELAX(DEN1,LINRLX,1.)
RELAX(SPH1,LINRLX,1.)
RELAX(TEM1,FALSDT,4667.)
RELAX(LTLS,LINRLX,1.)
RELAX(WDIS,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(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
VARMAX(BLOK)=1.0E+10 ;VARMIN(BLOK)=-1.0E+10
VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
VARMAX(SPH1)=1.0E+10 ;VARMIN(SPH1)=-1.0E+10
VARMAX(TEM1)=1.0E+10 ;VARMIN(TEM1)=-1.0E+10
VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10
VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10
************************************************************
Group 19. Data transmitted to GROUND
NAMGRD =HTBX
GENK = T
PARSOL = F
ISKINA = 5 ;ISKINB = 4
ISG62 = 1
SPEDAT(SET,MATERIAL,2,L,T)
SPEDAT(SET,MATERIAL,103,L,T)
RG( 41) =7.143E+04
RG( 42) =7.143E+04
************************************************************
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(V1,Y,N,Y,Y,Y,Y)
OUTPUT(W1,Y,N,Y,Y,Y,Y)
OUTPUT(NPOR,Y,N,Y,N,N,N)
OUTPUT(BLOK,N,N,N,N,N,N)
OUTPUT(PRPS,N,N,N,N,N,N)
OUTPUT(DEN1,Y,N,Y,N,N,N)
OUTPUT(SPH1,Y,N,Y,N,N,N)
OUTPUT(TEM1,Y,N,Y,Y,Y,Y)
OUTPUT(LTLS,Y,N,Y,Y,Y,Y)
OUTPUT(WDIS,Y,N,N,N,N,N)
************************************************************
Group 22. Monitor Print-Out
IXMON = 5 ;IYMON = 7 ;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
NTPRIN = 100000 ;ISTPRF = 1 ;ISTPRL = 100000
NXPRIN = 1 ;IXPRF = 1 ;IXPRL = 10000
NYPRIN = 1 ;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
No PATCHes yet used for this Group
************************************************************
Group 24. Dumps For Restarts
SAVE = T ;NOWIPE = F
NSAVE =CHAM
IDISPA = 1 ;IDISPB = 0 ;IDISPC = 0
CSG1    ='H'
STOP
```