TALK=T;RUN(1,1)
  DISPLAY

  Library case H106:

  COOLING OF 12 CHIPS

  This case represents  a  real-life  model of an electronic
  box.  It has 12 chips dissipating heat and mounted on  two
  PCBs.  Flow is forced through the box by a fan. Turbulence
  is modelled using LVEL turbulence model.

  (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;;;;

  use patgeo
  msg Geometry of the problem
  msg
  use hotspot
  msg Press return to plot temperature contours
  pause
  cont tem1 x 6 fil;.001
  msg
  msg Press return to plot velocity field
  pause
  vec z 1 sh
  vec z m sh
  vec x 6 sh
  pause
  msg
  msg Press return for a side view
  vec off 1 2
  vi x
  msg
  msg Type E to end
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Cooling Of 12 Chips                     )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 20
 XULAST =0.6
 XFRAC(1)=0.055556 ;XFRAC(5)=0.25
 XFRAC(9)=0.420833 ;XFRAC(13)=0.625
 XFRAC(17)=0.833333
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 25
 YVLAST =1.2
 YFRAC(1)=0.041667 ;YFRAC(6)=0.25
 YFRAC(11)=0.416667 ;YFRAC(16)=0.625
 YFRAC(21)=0.833333
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 15
 ZWLAST =0.8
 ZFRAC(1)=0.0625 ;ZFRAC(4)=0.25
 ZFRAC(7)=0.4375 ;ZFRAC(10)=0.645833
 ZFRAC(13)=0.875
 ************************************************************
  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(46)=BLOK ;NAME(47)=PRPS
 NAME(49)=DEN1 ;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(BLOK,Y,N,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 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 = 49
 IVARBK = -1 ;ISOLBK = 1
 PRNITS= F ;OPTRLX= F ;NOSIP= F ;ALLVBC= F
 DBSOLV= F ;IMPINI= F ;EARL1D= F
 PRPS = 47
 ************************************************************
  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 =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =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(BLOK)=1. ;FIINIT(PRPS)=2.
 FIINIT(DEN1)=1.0E-10 ;FIINIT(TEM1)=20.
 FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=0.06
 
 PATCH(CHP1 ,INIVAL, 6, 7, 9, 10, 4, 7, 1, 1)
 INIT(CHP1 ,BLOK,0. ,2. )
 INIT(CHP1 ,PRPS,0. ,100. )
 
 PATCH(CHP2 ,INIVAL, 6, 7, 9, 10, 10, 12, 1, 1)
 INIT(CHP2 ,BLOK,0. ,3. )
 INIT(CHP2 ,PRPS,0. ,100. )
 
 PATCH(CHP3 ,INIVAL, 6, 7, 13, 14, 4, 7, 1, 1)
 INIT(CHP3 ,BLOK,0. ,4. )
 INIT(CHP3 ,PRPS,0. ,100. )
 
 PATCH(CHP4 ,INIVAL, 6, 7, 13, 14, 10, 12, 1, 1)
 INIT(CHP4 ,BLOK,0. ,5. )
 INIT(CHP4 ,PRPS,0. ,100. )
 
 PATCH(CHP5 ,INIVAL, 6, 7, 17, 18, 4, 7, 1, 1)
 INIT(CHP5 ,BLOK,0. ,6. )
 INIT(CHP5 ,PRPS,0. ,100. )
 
 PATCH(CHP6 ,INIVAL, 6, 7, 17, 18, 10, 12, 1, 1)
 INIT(CHP6 ,BLOK,0. ,7. )
 INIT(CHP6 ,PRPS,0. ,100. )
 
 PATCH(DCHP1 ,INIVAL, 13, 14, 9, 10, 4, 7, 1, 1)
 INIT(DCHP1 ,BLOK,0. ,8. )
 INIT(DCHP1 ,PRPS,0. ,100. )
 
 PATCH(DCHP2 ,INIVAL, 13, 14, 9, 10, 10, 12, 1, 1)
 INIT(DCHP2 ,BLOK,0. ,9. )
 INIT(DCHP2 ,PRPS,0. ,100. )
 
 PATCH(DCHP3 ,INIVAL, 13, 14, 13, 14, 4, 7, 1, 1)
 INIT(DCHP3 ,BLOK,0. ,10. )
 INIT(DCHP3 ,PRPS,0. ,100. )
 
 PATCH(DCHP4 ,INIVAL, 13, 14, 13, 14, 10, 12, 1, 1)
 INIT(DCHP4 ,BLOK,0. ,11. )
 INIT(DCHP4 ,PRPS,0. ,100. )
 
 PATCH(DCHP5 ,INIVAL, 13, 14, 17, 18, 4, 7, 1, 1)
 INIT(DCHP5 ,BLOK,0. ,12. )
 INIT(DCHP5 ,PRPS,0. ,100. )
 
 PATCH(DCHP6 ,INIVAL, 13, 14, 17, 18, 10, 12, 1, 1)
 INIT(DCHP6 ,BLOK,0. ,13. )
 INIT(DCHP6 ,PRPS,0. ,100. )
 
 PATCH(BRD1 ,INIVAL, 8, 8, 7, 19, 3, 13, 1, 1)
 INIT(BRD1 ,BLOK,0. ,14. )
 INIT(BRD1 ,PRPS,0. ,104. )
 
 PATCH(DBRD1 ,INIVAL, 15, 15, 7, 19, 3, 13, 1, 1)
 INIT(DBRD1 ,BLOK,0. ,15. )
 INIT(DBRD1 ,PRPS,0. ,104. )
 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(FAN ,LOW , 4, 17, 3, 6, 1, 1, 1, 1)
 COVAL(FAN ,P1 , FIXFLU ,5.945 )
 COVAL(FAN ,U1 ,0. ,0. )
 COVAL(FAN ,V1 ,0. ,0. )
 COVAL(FAN ,W1 ,0. ,5. )
 COVAL(FAN ,TEM1,0. ,25. )
 
 PATCH(EXIT ,HIGH , 4, 17, 20, 23, 15, 15, 1, 1)
 COVAL(EXIT ,P1 ,1. ,0. )
 COVAL(EXIT ,TEM1,0. ,25. )
 
 PATCH(HOTCHP1 ,VOLUME, 6, 7, 9, 10, 4, 7, 1, 1)
 COVAL(HOTCHP1 ,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTCHP2 ,VOLUME, 6, 7, 9, 10, 10, 12, 1, 1)
 COVAL(HOTCHP2 ,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTCHP3 ,VOLUME, 6, 7, 13, 14, 4, 7, 1, 1)
 COVAL(HOTCHP3 ,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTCHP4 ,VOLUME, 6, 7, 13, 14, 10, 12, 1, 1)
 COVAL(HOTCHP4 ,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTCHP5 ,VOLUME, 6, 7, 17, 18, 4, 7, 1, 1)
 COVAL(HOTCHP5 ,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTCHP6 ,VOLUME, 6, 7, 17, 18, 10, 12, 1, 1)
 COVAL(HOTCHP6 ,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTDCHP1,VOLUME, 13, 14, 9, 10, 4, 7, 1, 1)
 COVAL(HOTDCHP1,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTDCHP2,VOLUME, 13, 14, 9, 10, 10, 12, 1, 1)
 COVAL(HOTDCHP2,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTDCHP3,VOLUME, 13, 14, 13, 14, 4, 7, 1, 1)
 COVAL(HOTDCHP3,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTDCHP4,VOLUME, 13, 14, 13, 14, 10, 12, 1, 1)
 COVAL(HOTDCHP4,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTDCHP5,VOLUME, 13, 14, 17, 18, 4, 7, 1, 1)
 COVAL(HOTDCHP5,TEM1, FIXFLU ,5000. )
 
 PATCH(HOTDCHP6,VOLUME, 13, 14, 17, 18, 10, 12, 1, 1)
 COVAL(HOTDCHP6,TEM1, FIXFLU ,5000. )
 
 PATCH(BUOYANCY,PHASEM, 1, 20, 1, 25, 1, 15, 1, 1)
 COVAL(BUOYANCY,V1 , FIXFLU , GRND2 )
 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 = 50 ;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.24)
 RELAX(V1,FALSDT,0.24)
 RELAX(W1,FALSDT,0.24)
 RELAX(BLOK,LINRLX,1.)
 RELAX(PRPS,LINRLX,1.)
 RELAX(DEN1,LINRLX,1.)
 RELAX(TEM1,FALSDT,2400.)
 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(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(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,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,MATERIAL,2,L,T)
 SPEDAT(SET,MATERIAL,100,L,T)
 SPEDAT(SET,MATERIAL,104,L,T)
 ************************************************************
  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(BLOK,N,N,N,N,N,N)
 OUTPUT(PRPS,N,N,N,N,N,N)
 OUTPUT(DEN1,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 = 10 ;IYMON = 20 ;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 = 4 ;IXPRF = 1 ;IXPRL = 10000
 NYPRIN = 5 ;IYPRF = 1 ;IYPRL = 10000
 NZPRIN = 3 ;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