TALK=T;RUN(1,1)
  DISPLAY


  This run analyses the motion of the lubricating fluid in a
  journal-bearing,the geometry of which is represented by means
  of porosities.

  Interesting variants include: changes to the
  size and shape of the journal; and changes to the lubricant
  viscosity.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Steady Journal-Bearing Flow, 3D         )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 50
 XULAST =0.1
 XFRAC(1)=0.02 ;XFRAC(2)=0.04
 XFRAC(3)=0.06 ;XFRAC(4)=0.08
 XFRAC(5)=0.1 ;XFRAC(6)=0.12
 XFRAC(7)=0.14 ;XFRAC(8)=0.16
 XFRAC(9)=0.18 ;XFRAC(10)=0.2
 XFRAC(11)=0.22 ;XFRAC(12)=0.24
 XFRAC(13)=0.26 ;XFRAC(14)=0.28
 XFRAC(15)=0.3 ;XFRAC(16)=0.32
 XFRAC(17)=0.34 ;XFRAC(18)=0.36
 XFRAC(19)=0.38 ;XFRAC(20)=0.4
 XFRAC(21)=0.42 ;XFRAC(22)=0.44
 XFRAC(23)=0.46 ;XFRAC(24)=0.48
 XFRAC(25)=0.5 ;XFRAC(26)=0.52
 XFRAC(27)=0.54 ;XFRAC(28)=0.56
 XFRAC(29)=0.58 ;XFRAC(30)=0.6
 XFRAC(31)=0.62 ;XFRAC(32)=0.64
 XFRAC(33)=0.66 ;XFRAC(34)=0.68
 XFRAC(35)=0.7 ;XFRAC(36)=0.72
 XFRAC(37)=0.74 ;XFRAC(38)=0.76
 XFRAC(39)=0.78 ;XFRAC(40)=0.8
 XFRAC(41)=0.82 ;XFRAC(42)=0.84
 XFRAC(43)=0.86 ;XFRAC(44)=0.88
 XFRAC(45)=0.9 ;XFRAC(46)=0.92
 XFRAC(47)=0.94 ;XFRAC(48)=0.96
 XFRAC(49)=0.98 ;XFRAC(50)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 10
 YVLAST =1.0E-04
 YFRAC(1)=0.1 ;YFRAC(2)=0.2
 YFRAC(3)=0.3 ;YFRAC(4)=0.4
 YFRAC(5)=0.5 ;YFRAC(6)=0.6
 YFRAC(7)=0.7 ;YFRAC(8)=0.8
 YFRAC(9)=0.9 ;YFRAC(10)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 50
 ZWLAST =0.05
 ZFRAC(1)=0.02 ;ZFRAC(2)=0.04
 ZFRAC(3)=0.06 ;ZFRAC(4)=0.08
 ZFRAC(5)=0.1 ;ZFRAC(6)=0.12
 ZFRAC(7)=0.14 ;ZFRAC(8)=0.16
 ZFRAC(9)=0.18 ;ZFRAC(10)=0.2
 ZFRAC(11)=0.22 ;ZFRAC(12)=0.24
 ZFRAC(13)=0.26 ;ZFRAC(14)=0.28
 ZFRAC(15)=0.3 ;ZFRAC(16)=0.32
 ZFRAC(17)=0.34 ;ZFRAC(18)=0.36
 ZFRAC(19)=0.38 ;ZFRAC(20)=0.4
 ZFRAC(21)=0.42 ;ZFRAC(22)=0.44
 ZFRAC(23)=0.46 ;ZFRAC(24)=0.48
 ZFRAC(25)=0.5 ;ZFRAC(26)=0.52
 ZFRAC(27)=0.54 ;ZFRAC(28)=0.56
 ZFRAC(29)=0.58 ;ZFRAC(30)=0.6
 ZFRAC(31)=0.62 ;ZFRAC(32)=0.64
 ZFRAC(33)=0.66 ;ZFRAC(34)=0.68
 ZFRAC(35)=0.7 ;ZFRAC(36)=0.72
 ZFRAC(37)=0.74 ;ZFRAC(38)=0.76
 ZFRAC(39)=0.78 ;ZFRAC(40)=0.8
 ZFRAC(41)=0.82 ;ZFRAC(42)=0.84
 ZFRAC(43)=0.86 ;ZFRAC(44)=0.88
 ZFRAC(45)=0.9 ;ZFRAC(46)=0.92
 ZFRAC(47)=0.94 ;ZFRAC(48)=0.96
 ZFRAC(49)=0.98 ;ZFRAC(50)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
    * X-cyclic boundaries switched
 XCYIZ( 1, T ) ; XCYIZ( 2, T ) ; XCYIZ( 3, T )
 XCYIZ( 4, T ) ; XCYIZ( 5, T ) ; XCYIZ( 6, T )
 XCYIZ( 7, T ) ; XCYIZ( 8, T ) ; XCYIZ( 9, T )
 XCYIZ( 10, T ) ; XCYIZ( 11, T ) ; XCYIZ( 12, T )
 XCYIZ( 13, T ) ; XCYIZ( 14, T ) ; XCYIZ( 15, T )
 XCYIZ( 16, T ) ; XCYIZ( 17, T ) ; XCYIZ( 18, T )
 XCYIZ( 19, T ) ; XCYIZ( 20, T ) ; XCYIZ( 21, T )
 XCYIZ( 22, T ) ; XCYIZ( 23, T ) ; XCYIZ( 24, T )
 XCYIZ( 25, T ) ; XCYIZ( 26, T ) ; XCYIZ( 27, T )
 XCYIZ( 28, T ) ; XCYIZ( 29, T ) ; XCYIZ( 30, T )
 XCYIZ( 31, T ) ; XCYIZ( 32, T ) ; XCYIZ( 33, T )
 XCYIZ( 34, T ) ; XCYIZ( 35, T ) ; XCYIZ( 36, T )
 XCYIZ( 37, T ) ; XCYIZ( 38, T ) ; XCYIZ( 39, T )
 XCYIZ( 40, T ) ; XCYIZ( 41, T ) ; XCYIZ( 42, T )
 XCYIZ( 43, T ) ; XCYIZ( 44, T ) ; XCYIZ( 45, T )
 XCYIZ( 46, T ) ; XCYIZ( 47, T ) ; XCYIZ( 48, T )
 XCYIZ( 49, T ) ; XCYIZ( 50, T )
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(3)=U1
 NAME(5)=V1 ;NAME(7)=W1
 NAME(145)=LTLS ;NAME(146)=WDIS
 NAME(147)=VPOR ;NAME(148)=HPOR
 NAME(149)=NPOR ;NAME(150)=EPOR
    * 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,Y,N,Y)
 SOLUTN(V1,Y,Y,N,Y,N,Y)
 SOLUTN(W1,Y,Y,N,Y,N,Y)
 SOLUTN(LTLS,Y,Y,Y,N,N,Y)
 SOLUTN(WDIS,Y,N,N,N,N,N)
 SOLUTN(VPOR,Y,N,N,N,N,Y)
 SOLUTN(HPOR,Y,N,N,N,N,Y)
 SOLUTN(NPOR,Y,N,N,N,N,Y)
 SOLUTN(EPOR,Y,N,N,N,N,Y)
 EPOR = 150 ;HPOR = 148 ;NPOR = 149 ;VPOR = 147
 ************************************************************
  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(LTLS,N,N,Y,N,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = T
 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 =100. ;ENUT =0.
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRNDTL(W1)=1. ;PRNDTL(LTLS)=1.
 PRT(U1)=1. ;PRT(V1)=1.
 PRT(W1)=1. ;PRT(LTLS)=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)=1.0E-10 ;FIINIT(W1)=1.0E-10
 FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=1.0E-05
 FIINIT(VPOR)=1. ;FIINIT(HPOR)=1.
 FIINIT(NPOR)=1. ;FIINIT(EPOR)=1.
 
 PATCH(POR1 ,LINVLX, 1, 50, 1, 10, 1, 50, 1, 1)
 INIT(POR1 ,VPOR,1. ,1. )
 INIT(POR1 ,HPOR,1. ,1. )
 INIT(POR1 ,NPOR,1. ,1. )
 INIT(POR1 ,EPOR,1. ,1. )
 
 PATCH(POR2 ,LINVLX, 26, 50, 1, 10, 1, 50, 1, 1)
 INIT(POR2 ,VPOR,-2. ,0. )
 INIT(POR2 ,HPOR,-2. ,0. )
 INIT(POR2 ,NPOR,-2. ,0. )
 INIT(POR2 ,EPOR,-2. ,0. )
 
 PATCH(POR3 ,INIVAL, 1, 50, 1, 10, 1, 50, 1, 1)
 INIT(POR3 ,VPOR,0. ,-1. )
 INIT(POR3 ,HPOR,0. ,-1. )
 INIT(POR3 ,NPOR,0. ,-1. )
 INIT(POR3 ,EPOR,0. ,-1. )
 INIADD = T
 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(MOVING ,NWALL , 1, 50, 10, 10, 1, 50, 1, 1)
 COVAL(MOVING ,U1 ,1. ,100. )
 COVAL(MOVING ,W1 ,1. ,0. )
 
 PATCH(FIXED ,SWALL , 1, 50, 1, 1, 1, 50, 1, 1)
 COVAL(FIXED ,U1 ,1. ,0. )
 COVAL(FIXED ,W1 ,1. ,0. )
 
 PATCH(LOWEND ,CELL , 1, 50, 1, 10, 1, 1, 1, 1)
 COVAL(LOWEND ,P1 ,1. ,0. )
 COVAL(LOWEND ,U1 ,0. ,0. )
 COVAL(LOWEND ,V1 ,0. ,0. )
 COVAL(LOWEND ,W1 ,0. ,0. )
 
 PATCH(HIGHEND ,CELL , 1, 50, 1, 10, 50, 50, 1, 1)
 COVAL(HIGHEND ,P1 ,1. ,0. )
 COVAL(HIGHEND ,U1 ,0. ,0. )
 COVAL(HIGHEND ,V1 ,0. ,0. )
 COVAL(HIGHEND ,W1 ,0. ,0. )
 XCYCLE = T
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  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-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=-50 ;LITER(U1)=10
 LITER(V1)=10 ;LITER(W1)=10
 LITER(LTLS)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03
 ENDIT(LTLS)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,0.2)
 RELAX(U1,LINRLX,1.)
 RELAX(V1,FALSDT,1.0E-14)
 RELAX(W1,LINRLX,1.)
 RELAX(LTLS,FALSDT,1.0E+09)
 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(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10
 VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10
 VARMAX(VPOR)=1.0E+10 ;VARMIN(VPOR)=-1.0E+10
 VARMAX(HPOR)=1.0E+10 ;VARMIN(HPOR)=-1.0E+10
 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 ADJEPR = T
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,GXMONI,PLOTALL,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,N,N,N)
 OUTPUT(U1,Y,N,Y,N,N,N)
 OUTPUT(V1,Y,N,Y,N,N,N)
 OUTPUT(W1,Y,N,Y,N,N,N)
 OUTPUT(LTLS,Y,N,Y,Y,Y,Y)
 OUTPUT(WDIS,Y,N,Y,N,N,N)
 OUTPUT(VPOR,Y,N,Y,N,N,N)
 OUTPUT(HPOR,Y,N,Y,N,N,N)
 OUTPUT(NPOR,Y,N,Y,N,N,N)
 OUTPUT(EPOR,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;IYMON = 3 ;IZMON = 5
 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 = T ;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
 
 PATCH(CONTNZ5 ,CONTUR, 1, 50, 1, 10, 5, 5, 1, 1)
 PLOT(CONTNZ5 ,W1 ,0. ,1. )
 
 PATCH(CONTNY3 ,CONTUR, 1, 50, 3, 3, 1, 50, 1, 1)
 PLOT(CONTNY3 ,P1 ,0. ,10. )
 PLOT(CONTNY3 ,U1 ,0. ,10. )
 PLOT(CONTNY3 ,V1 ,0. ,10. )
 PLOT(CONTNY3 ,W1 ,0. ,10. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP