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



  gr ou z 1
  gr ou z 1 x 5 9 y 4 6
  gr ou z 1 x 15 19 y 1 9
  gr ou z 1 x 6 6 y 5 5
  gr ou z 1 x 8 8 y 5 5

  gr ou z 1 x 6 6 y 1 3
  gr ou z 1 x 7 7 y 1 3
  gr ou z 1 x 8 8 y 1 3

  gr ou z 1 x 16 16 y 2 3
  gr ou z 1 x 16 16 y 5 5
  gr ou z 1 x 16 16 y 7 7
  gr ou z 1 x 18 18 y 2 3
  gr ou z 1 x 18 18 y 5 5
  gr ou z 1 x 18 18 y 7 7
  red
  set vec comp au1 cv1 -
  msg               VEHICULAR EXHAUST DISPERSION
  msg                   Air velocity vectors
  vec z 1 sh
  msg Press  to continue
  pause
  vec off;red
  con h1 z 1 fil;.5
  msg               VEHICULAR EXHAUST DISPERSION
  msg                     NOx concentration
  msg  Press Enter to continue
  pause
  con off;red
  set vec comp bu2 dv2 -
  msg                   SNOWFALL IN A CROSS-WIND with ROOF
  msg                      VELOCITY VECTORS OF SNOW
  vec z 1 sh
  msg  Press Enter to continue
  pause
  vec off;red
  msg                        SNOW VOLUME FRACTION
  con liq z 1 fil;0.1
  ENDUSE
  DISPLAY
   This case is a part of the main project to predict turbulent and
   two-phase flows at the town scale. It is concerned with the snow
   fall  in the street canyon between one elevated building and its
   high-rise neighbour  block.  PLANT  is  used  to  introduce  the
   influences  of  gas and snow concentration near the road surface
   to the source of vehicular exhaust pollution.
  ENDDIS
  PLANTBEGIN
   *  POLLUTION SOURCE Boundary Condition, Named ROAD
PATCH(ROAD,SOUTH,10,14,1,3,1,1,1,1)
    VAL=0.01*GAS+10.*LIQ
COVAL(ROAD,H1,FIXFLU,GRND)
  PLANTEND
  PHOTON USE
  p



  gr ou z 1
  gr ou z 1 x 5 9 y 4 6
  gr ou z 1 x 15 19 y 1 9
  gr ou z 1 x 6 6 y 5 5
  gr ou z 1 x 8 8 y 5 5

  gr ou z 1 x 6 6 y 1 3
  gr ou z 1 x 7 7 y 1 3
  gr ou z 1 x 8 8 y 1 3

  gr ou z 1 x 16 16 y 2 3
  gr ou z 1 x 16 16 y 5 5
  gr ou z 1 x 16 16 y 7 7
  gr ou z 1 x 18 18 y 2 3
  gr ou z 1 x 18 18 y 5 5
  gr ou z 1 x 18 18 y 7 7
  red
  set vec comp au1 cv1 -
  msg               VEHICULAR EXHAUST DISPERSION
  msg                   Air velocity vectors
  vec z 1 sh
  msg Press  to continue
  pause
  vec off;red
  con h1 z 1 fil;.5
  msg               VEHICULAR EXHAUST DISPERSION
  msg                     NOx concentration
  msg  Press Enter to continue
  pause
  con off;red
  set vec comp bu2 dv2 -
  msg                   SNOWFALL IN A CROSS-WIND with ROOF
  msg                      VELOCITY VECTORS OF SNOW
  vec z 1 sh
  msg  Press Enter to continue
  pause
  vec off;red
  msg                        SNOW VOLUME FRACTION
  con liq z 1 fil;0.1
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(In-Form equivalent of PLANT case Z138   )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 738
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 23
 XULAST =80.
 XFRAC(1)=0.0625 ;XFRAC(2)=0.125
 XFRAC(3)=0.1875 ;XFRAC(4)=0.25
 XFRAC(5)=0.275 ;XFRAC(6)=0.3
 XFRAC(7)=0.325 ;XFRAC(8)=0.35
 XFRAC(9)=0.375 ;XFRAC(10)=0.425
 XFRAC(11)=0.475 ;XFRAC(12)=0.525
 XFRAC(13)=0.575 ;XFRAC(14)=0.625
 XFRAC(15)=0.65 ;XFRAC(16)=0.675
 XFRAC(17)=0.7 ;XFRAC(18)=0.725
 XFRAC(19)=0.75 ;XFRAC(20)=0.8125
 XFRAC(21)=0.875 ;XFRAC(22)=0.9375
 XFRAC(23)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 14
 YVLAST =50.
 YFRAC(1)=0.033333 ;YFRAC(2)=0.066667
 YFRAC(3)=0.1 ;YFRAC(4)=0.166667
 YFRAC(5)=0.233333 ;YFRAC(6)=0.3
 YFRAC(7)=0.366667 ;YFRAC(8)=0.433333
 YFRAC(9)=0.5 ;YFRAC(10)=0.6
 YFRAC(11)=0.7 ;YFRAC(12)=0.8
 YFRAC(13)=0.9 ;YFRAC(14)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =1.
 ZFRAC(1)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = F
 EQUVEL = F
 NAME(1)=P1 ;NAME(3)=AU1
 NAME(4)=BU2 ;NAME(5)=CV1
 NAME(6)=DV2 ;NAME(9)=GAS
 NAME(10)=LIQ ;NAME(14)=H1
 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(P1,Y,Y,N,N,N,Y)
 SOLUTN(AU1,Y,Y,N,Y,N,Y)
 SOLUTN(BU2,Y,Y,N,Y,N,Y)
 SOLUTN(CV1,Y,Y,N,Y,N,Y)
 SOLUTN(DV2,Y,Y,N,Y,N,Y)
 SOLUTN(LIQ,Y,Y,N,Y,N,Y)
 SOLUTN(H1,Y,Y,N,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(P1,Y,Y,Y,N,Y,Y)
 TERMS(AU1,Y,Y,Y,Y,Y,Y)
 TERMS(BU2,Y,Y,Y,Y,N,Y)
 TERMS(CV1,Y,Y,Y,Y,Y,Y)
 TERMS(DV2,Y,Y,Y,Y,N,Y)
 TERMS(LIQ,Y,Y,Y,Y,N,Y)
 TERMS(H1,N,Y,Y,N,Y,N)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 EQDVDP = 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.
 RHO2 =100. ;TMP2 =0.
 EL2 =0.
 DVO2DT =0. ;DRH2DP =0.
 ENUL =1.5E-05 ;ENUT =6.7
 PHINT(AU1)=-2.022E+04 ;PHINT(BU2)=-2.022E+04
 PHINT(CV1)=-2.022E+04 ;PHINT(DV2)=-2.022E+04
 PHINT(LIQ)=-2.022E+04
 PRNDTL(AU1)=1. ;PRNDTL(BU2)=1.
 PRNDTL(CV1)=1. ;PRNDTL(DV2)=1.
 PRNDTL(LIQ)=1. ;PRNDTL(H1)=1.5
 PRT(AU1)=1. ;PRT(BU2)=1.
 PRT(CV1)=1. ;PRT(DV2)=1.
 PRT(LIQ)=1. ;PRT(H1)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 CFIPS =1942.380127
 RLOLIM =0. ;CMDOT =0.
 CINT(P1)=1. ;CINT(AU1)=1.
 CINT(BU2)=1. ;CINT(CV1)=1.
 CINT(DV2)=1. ;CINT(LIQ)=1.
 PHINT(P1)=-2.022E+04 ;PHINT(AU1)=-2.022E+04
 PHINT(BU2)=-2.022E+04 ;PHINT(CV1)=-2.022E+04
 PHINT(DV2)=-2.022E+04 ;PHINT(LIQ)=-2.022E+04
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=2. ;FIINIT(AU1)=2.
 FIINIT(BU2)=2. ;FIINIT(CV1)=0.
 FIINIT(DV2)=-0.5 ;FIINIT(GAS)=0.999
 FIINIT(LIQ)=9.999999E-04 ;FIINIT(H1)=0.
 FIINIT(PRPS)=-1.
 
 PATCH(CMP0 ,INIVAL, 5, 9, 4, 6, 1, 1, 1, 1)
 INIT(CMP0 ,PRPS,0. ,198. )
 
 PATCH(CMP1 ,INIVAL, 15, 19, 1, 9, 1, 1, 1, 1)
 INIT(CMP1 ,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(INLET ,WEST , 1, 1, 1, 14, 1, 1, 1, 1)
 COVAL(INLET ,AU1 ,0. ,2. )
 COVAL(INLET ,BU2 ,0. ,2. )
 COVAL(INLET ,GAS , FIXFLU ,1.998 )
 COVAL(INLET ,LIQ , FIXFLU ,0.2 )
 COVAL(INLET ,H1 ,0. ,0. )
 
 PATCH(SKY ,NORTH , 1, 23, 14, 14, 1, 1, 1, 1)
 COVAL(SKY ,LIQ , FIXFLU ,0.05 )
 
 PATCH(OUTLET ,EAST , 23, 23, 1, 14, 1, 1, 1, 1)
 COVAL(OUTLET ,AU1 ,0. ,0. )
 COVAL(OUTLET ,BU2 ,0. ,0. )
 COVAL(OUTLET ,CV1 ,0. ,0. )
 COVAL(OUTLET ,DV2 ,0. ,0. )
 COVAL(OUTLET ,GAS ,1.0E-02 ,0. )
 COVAL(OUTLET ,LIQ ,1. ,0. )
 COVAL(OUTLET ,H1 ,0. , SAME )
 
 PATCH(GRAVITY ,PHASEM, 1, 23, 1, 14, 1, 1, 1, 1)
 COVAL(GRAVITY ,DV2 , FIXFLU ,-9.81 )
 
 PATCH(FLOOR ,SOUTH , 1, 23, 1, 1, 1, 1, 1, 1)
 COVAL(FLOOR ,LIQ ,0.1 ,0. )
 
 PATCH(ROOF1 ,PHASEM, 5, 9, 7, 7, 1, 1, 1, 1)
 COVAL(ROOF1 ,BU2 , FIXFLU ,0.981 )
 
 PATCH(ROOF2 ,PHASEM, 15, 19, 10, 10, 1, 1, 1, 1)
 COVAL(ROOF2 ,BU2 , FIXFLU ,0.981 )
 
 PATCH(IROAD ,NORTH , 10, 14, 1, 3, 1, 1, 1, 1)
 COVAL(IROAD ,H1 ,In-Form:source - see Grp 19)
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 150 ;ISWC1 = 100
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 ISWR1 = 1 ;ISWR2 = 10000
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(AU1)=10
 LITER(BU2)=10 ;LITER(CV1)=10
 LITER(DV2)=10 ;LITER(LIQ)=1
 LITER(H1)=20
 ENDIT(P1)=1.0E-10 ;ENDIT(AU1)=1.0E-03
 ENDIT(BU2)=1.0E-03 ;ENDIT(CV1)=1.0E-03
 ENDIT(DV2)=1.0E-03 ;ENDIT(LIQ)=1.0E-03
 ENDIT(H1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(AU1,FALSDT,1.)
 RELAX(BU2,FALSDT,1.)
 RELAX(CV1,FALSDT,1.)
 RELAX(DV2,FALSDT,1.)
 RELAX(GAS,LINRLX,1.)
 RELAX(LIQ,LINRLX,0.25)
 RELAX(H1,FALSDT,1000.)
 RELAX(PRPS,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(AU1)=1.0E+06 ;VARMIN(AU1)=-1.0E+06
 VARMAX(BU2)=1.0E+06 ;VARMIN(BU2)=-1.0E+06
 VARMAX(CV1)=1.0E+06 ;VARMIN(CV1)=-1.0E+06
 VARMAX(DV2)=1.0E+06 ;VARMIN(DV2)=-1.0E+06
 VARMAX(GAS)=1. ;VARMIN(GAS)=1.0E-06
 VARMAX(LIQ)=1. ;VARMIN(LIQ)=1.0E-09
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,SOURCE,H1!IROAD,C,=0.01*GAS+10.*LIQ)
 SPEDAT(SET,MATERIAL,198,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=170.5 ;EX(AU1)=1.643
 EX(BU2)=1.636 ;EX(CV1)=0.
 EX(DV2)=0.5064 ;EX(GAS)=0.
 EX(LIQ)=0. ;EX(H1)=0.01815
 EX(PRPS)=37.709999
 ************************************************************
  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,N,Y,Y,Y)
 OUTPUT(AU1,Y,N,N,Y,Y,Y)
 OUTPUT(BU2,Y,N,N,Y,Y,Y)
 OUTPUT(CV1,N,N,Y,Y,Y,Y)
 OUTPUT(DV2,Y,N,N,Y,Y,Y)
 OUTPUT(GAS,N,N,N,N,N,N)
 OUTPUT(LIQ,N,N,Y,Y,Y,Y)
 OUTPUT(H1,Y,N,N,Y,Y,Y)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 12 ;IYMON = 3 ;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
 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 10000
 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