TALK=T;RUN(1,1)
  PHOTON USE
  P



  GR OU X     9 Y     1     7 Z     3     3 COL     2
  GR OU X     3 Y     1     7 Z     3     3 COL     2
  GR OU Y     8 X     3     8 Z     3     3 COL     2
  GR OU Y     1 X     3     8 Z     3     3 COL     2
  GR OU X     6 Y     1     5 Z     5     6 COL     3
  GR OU X     3 Y     1     5 Z     5     6 COL     3
  GR OU Y     6 X     3     5 Z     5     6 COL     3
  GR OU Y     1 X     3     5 Z     5     6 COL     3
  GR OU X     5 Y     1     3 Z     7     7 COL     4
  GR OU X     3 Y     1     3 Z     7     7 COL     4
  GR OU Y     4 X     3     4 Z     7     7 COL     4
  GR OU Y     1 X     3     4 Z     7     7 COL     4
  GR OU X    11 Y     1     2 Z    11    12 COL     5
  red
  GR OU X     7 Y     1     2 Z    11    12 COL     5
  GR OU Y     3 X     7    10 Z    11    12 COL     5
  GR OU Y     1 X     7    10 Z    11    12 COL     5
  GR OU Y     1 X     1    12 Z     1    14 COL     9
  RED
  msg                FIRE INSIDE BUILDING ARRAY
  MSG                        Geometry
  msg Press Enter to continue
  pause
  red
  msg                FIRE INSIDE BUILDING ARRAY
  msg          Ground velocity field - perspective view
  set vec ref 20.
  vec y 1 sh
  msg Press Enter to continue
  pause
  vec off;red
  up x
  vi 0 1 0
  vec y 1 sh
  msg                FIRE INSIDE BUILDING ARRAY
  msg           Ground velocity field - view from above
  msg Press Enter to continue
  pause
  vec off;red
  con h1 y 1 fil;.001
  msg                FIRE INSIDE BUILDING ARRAY
  msg             Temperature field near the ground
  msg Press Enter to continue
  pause
  con off
  vi 1 1 1;up y;vi 1 0 0
  vec x 5 sh
  msg                FIRE INSIDE BUILDING ARRAY
  msg                Velocity field - side view
  pause;vec off;red
  vi 1 1 1;vec y 1 sh
  msg                FIRE INSIDE BUILDING ARRAY
  msg          Ground velocity field - perspective view
  msg                        and
  msg                   Smoke plume
  surf smok y 0.05
  msg Press Enter to end
  ENDUSE
  DISPLAY
   This case  presents  the  3D  problem  of the combustion product
   movements in a building array fire.  Combustion is not included,
   the  fire  source  being peprsented in the model by surface heat
   source,  but the non-uniform  buoyancy  forces  are  allowed  to
   affect  the  mean  flow.  They  are  introduced by way of GROUND
   codings performed by PLANT. The similar in-door 2D situation has
   been simulated by Markatos, Malin and Cox in Int. J. of Heat and
   Mass Transfer, vol.25, No 1, pp. 63-75, 1982
  ENDDIS
  PLANTBEGIN
PATCH(ARCH,PHASEM,1,NX,1,NY,1,NZ,1,1)
    VAL=-RG(1)*(RG(2)-H1)/300.
COVAL(ARCH,V1,FIXFLU,GRND)
  PLANTEND
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(FIRE INSIDE BUILDING ARRAY:139          )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 139
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 12
 XULAST =76.599998
 XFRAC(1)=0.1305 ;XFRAC(2)=0.2611
 XFRAC(3)=0.3009 ;XFRAC(4)=0.3407
 XFRAC(5)=0.4005 ;XFRAC(6)=0.4204
 XFRAC(7)=0.4403 ;XFRAC(8)=0.4602
 XFRAC(9)=0.5995 ;XFRAC(10)=0.7389
 XFRAC(11)=0.8695 ;XFRAC(12)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 10
 YVLAST =50.
 YFRAC(1)=0.07625 ;YFRAC(2)=0.1525
 YFRAC(3)=0.183 ;YFRAC(4)=0.244
 YFRAC(5)=0.305 ;YFRAC(6)=0.3355
 YFRAC(7)=0.366 ;YFRAC(8)=0.5773
 YFRAC(9)=0.7887 ;YFRAC(10)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 14
 ZWLAST =179.300003
 ZFRAC(1)=0.1394 ;ZFRAC(2)=0.2789
 ZFRAC(3)=0.3469 ;ZFRAC(4)=0.4149
 ZFRAC(5)=0.4405 ;ZFRAC(6)=0.466
 ZFRAC(7)=0.483 ;ZFRAC(8)=0.5057
 ZFRAC(9)=0.5284 ;ZFRAC(10)=0.551
 ZFRAC(11)=0.6361 ;ZFRAC(12)=0.7211
 ZFRAC(13)=0.8606 ;ZFRAC(14)=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(14)=H1 ;NAME(148)=PRPS
 NAME(150)=SMOK
    * 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(H1,Y,Y,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 SOLUTN(SMOK,Y,Y,N,N,N,Y)
 PRPS = 148
 ************************************************************
  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(H1,N,Y,Y,N,Y,N)
 TERMS(SMOK,N,Y,Y,Y,Y,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 =1.465E-05 ;ENUT =0.137
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRNDTL(W1)=1. ;PRNDTL(H1)=1.
 PRNDTL(SMOK)=1.
 PRT(U1)=1. ;PRT(V1)=1.
 PRT(W1)=1. ;PRT(H1)=1.
 PRT(SMOK)=1.
 CP1 =1. ;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)=8.57 ;FIINIT(W1)=8.57
 FIINIT(H1)=300. ;FIINIT(PRPS)=-1.
 FIINIT(SMOK)=0.
 
 PATCH(CMP0 ,INIVAL, 3, 8, 1, 7, 3, 3, 1, 1)
 INIT(CMP0 ,PRPS,0. ,198. )
 
 PATCH(CMP1 ,INIVAL, 3, 5, 1, 5, 5, 6, 1, 1)
 INIT(CMP1 ,PRPS,0. ,198. )
 
 PATCH(CMP2 ,INIVAL, 3, 4, 1, 3, 7, 7, 1, 1)
 INIT(CMP2 ,PRPS,0. ,198. )
 
 PATCH(CMP3 ,INIVAL, 7, 10, 1, 2, 11, 12, 1, 1)
 INIT(CMP3 ,PRPS,0. ,198. )
 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(INL ,LOW , 1, 12, 1, 10, 1, 1, 1, 1)
 COVAL(INL ,P1 , FIXFLU ,8.57 )
 COVAL(INL ,U1 ,0. ,8.57 )
 COVAL(INL ,W1 ,0. ,8.57 )
 COVAL(INL ,H1 ,0. ,300. )
 COVAL(INL ,SMOK,0. ,0. )
 
 PATCH(INL1 ,WEST , 1, 1, 1, 10, 1, 14, 1, 1)
 COVAL(INL1 ,P1 , FIXFLU ,8.57 )
 COVAL(INL1 ,U1 ,0. ,8.57 )
 COVAL(INL1 ,W1 ,0. ,8.57 )
 COVAL(INL1 ,H1 ,0. ,300. )
 COVAL(INL1 ,SMOK,0. ,0. )
 
 PATCH(OUT ,HIGH , 1, 12, 1, 10, 14, 14, 1, 1)
 COVAL(OUT ,P1 ,1. ,0. )
 COVAL(OUT ,H1 ,0. ,300. )
 
 PATCH(OUT2 ,EAST , 12, 12, 1, 10, 1, 14, 1, 1)
 COVAL(OUT2 ,P1 ,1. ,0. )
 COVAL(OUT2 ,H1 ,0. ,300. )
 
 PATCH(OUT3 ,NORTH , 1, 12, 10, 10, 1, 14, 1, 1)
 COVAL(OUT3 ,P1 ,1. ,0. )
 COVAL(OUT3 ,H1 ,0. ,300. )
 
 PATCH(GROUND ,SWALL , 1, 12, 1, 1, 1, 14, 1, 1)
 COVAL(GROUND ,U1 , GRND2 ,0. )
 COVAL(GROUND ,W1 , GRND2 ,0. )
 
 PATCH(FIRE ,SOUTH , 6, 6, 1, 1, 9, 9, 1, 1)
 COVAL(FIRE ,H1 , FIXFLU ,1.0E+04 )
 COVAL(FIRE ,SMOK, FIXVAL ,1. )
 
 PATCH(ARCH ,PHASEM, 1, 12, 1, 10, 1, 14, 1, 1)
 COVAL(ARCH ,V1 , FIXFLU , GRND )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 100 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(V1)=10 ;LITER(W1)=10
 LITER(H1)=20 ;LITER(SMOK)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03
 ENDIT(H1)=1.0E-03 ;ENDIT(SMOK)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,0.8)
 RELAX(U1,FALSDT,0.448798)
 RELAX(V1,FALSDT,0.448798)
 RELAX(W1,FALSDT,0.448798)
 RELAX(H1,FALSDT,0.448798)
 RELAX(PRPS,LINRLX,1.)
 RELAX(SMOK,FALSDT,1.0E+09)
 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(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(SMOK)=1.0E+10 ;VARMIN(SMOK)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 NAMSAT =MOSG
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,MATERIAL,198,L,T)
 RG( 1) =9.81
 RG( 2) =300.
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=10.42 ;EX(U1)=7.497
 EX(V1)=0.893 ;EX(W1)=7.633
 EX(H1)=285.299988 ;EX(PRPS)=12.02
 EX(SMOK)=3.745E-03
 ************************************************************
  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(H1,Y,N,Y,Y,Y,Y)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 OUTPUT(SMOK,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 8 ;IYMON = 6 ;IZMON = 9
 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
 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