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

This case is like 370, but use the y-direction instead of z.

An InForm-made box object moves uniformly along a duct, the
cross-section of which it wholly fills.
The duct contains a porous medium causing resistance to flow
The ends of the duct are partially open.
The fluid is compressible.

Parameters are provided which enable the effects on convergence
and accuracy to be noted of:
* box size divided by cell size;
* time to traverse a cell divided by time step;
* the compressibility factor;
* the resistance coefficient;
* pressure-drop coefficients at the ends of the duct.

Line-printer profile plots are used for assisting interpretation

ENDDIS
************************************************************
Group 1. Run Title and Number
************************************************************
************************************************************

TEXT(MOFOR - In-Form: BOX linear motion X-dir)

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

IRUNN = 1 ;LIBREF = 0
************************************************************
Group 2. Time dependence
* Set overall time and no. of steps
TFIRST =0. ;TLAST =1.
FSTEP = 1 ;LSTEP = 50
TFRAC(1)=0.02 ;TFRAC(11)=0.22
TFRAC(21)=0.42 ;TFRAC(31)=0.62
TFRAC(41)=0.82
************************************************************
Group 3. X-Direction Grid Spacing
CARTES = T
NX = 1
XULAST =2.
XFRAC(1)=1.
************************************************************
Group 4. Y-Direction Grid Spacing
NY = 50
YVLAST =1.
YFRAC(1)=9.99999E-03 ;YFRAC(2)=0.030204
YFRAC(3)=0.050408 ;YFRAC(4)=0.070612
YFRAC(5)=0.090816 ;YFRAC(6)=0.11102
YFRAC(7)=0.131224 ;YFRAC(8)=0.151429
YFRAC(9)=0.171633 ;YFRAC(10)=0.191837
YFRAC(11)=0.212041 ;YFRAC(12)=0.232245
YFRAC(13)=0.252449 ;YFRAC(14)=0.272653
YFRAC(15)=0.292857 ;YFRAC(16)=0.313061
YFRAC(17)=0.333265 ;YFRAC(18)=0.353469
YFRAC(19)=0.373673 ;YFRAC(20)=0.393878
YFRAC(21)=0.414082 ;YFRAC(22)=0.434286
YFRAC(23)=0.45449 ;YFRAC(24)=0.474694
YFRAC(25)=0.494898 ;YFRAC(26)=0.515102
YFRAC(27)=0.535306 ;YFRAC(28)=0.55551
YFRAC(29)=0.575714 ;YFRAC(30)=0.595918
YFRAC(31)=0.616122 ;YFRAC(32)=0.636327
YFRAC(33)=0.656531 ;YFRAC(34)=0.676735
YFRAC(35)=0.696939 ;YFRAC(36)=0.717143
YFRAC(37)=0.737347 ;YFRAC(38)=0.757551
YFRAC(39)=0.777755 ;YFRAC(40)=0.797959
YFRAC(41)=0.818163 ;YFRAC(42)=0.838367
YFRAC(43)=0.858571 ;YFRAC(44)=0.878776
YFRAC(45)=0.89898 ;YFRAC(46)=0.919184
YFRAC(47)=0.939388 ;YFRAC(48)=0.959592
YFRAC(49)=0.979796 ;YFRAC(50)=1.
************************************************************
Group 5. Z-Direction Grid Spacing
PARAB = F
NZ = 1
ZWLAST =0.1
ZFRAC(1)=1.
************************************************************
Group 6. Body-Fitted Coordinates
************************************************************
Group 7. Variables: STOREd,SOLVEd,NAMEd
ONEPHS = T
NAME(1)=P1 ;NAME(5)=V1
NAME(16)=C1 ;NAME(143)=FLOY
NAME(144)=RSV1 ;NAME(145)=ANP1
NAME(146)=APV1 ;NAME(147)=SOV1
NAME(148)=RHO1 ;NAME(149)=PRPS
NAME(150)=OBID
* 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(V1,Y,Y,N,N,N,Y)
SOLUTN(C1,Y,Y,N,N,N,Y)
SOLUTN(FLOY,Y,N,N,N,N,Y)
SOLUTN(RSV1,Y,N,N,N,N,Y)
SOLUTN(ANP1,Y,N,N,N,N,Y)
SOLUTN(APV1,Y,N,N,N,N,Y)
SOLUTN(SOV1,Y,N,N,N,N,Y)
SOLUTN(RHO1,Y,N,N,N,N,Y)
SOLUTN(PRPS,Y,N,N,N,N,Y)
SOLUTN(OBID,Y,N,N,N,N,Y)
DEN1 = 148
PRPS = 149
************************************************************
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(V1,Y,Y,Y,Y,Y,Y)
TERMS(C1,N,Y,N,Y,Y,Y)
DIFCUT =0.5 ;ZDIFAC =1.
GALA = F ;ADDDIF = F
ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
DENPCO = T
************************************************************
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.
ENUL =1.0E-05 ;ENUT =0.
PRNDTL(V1)=1.
PRT(V1)=1.
CP1 =1. ;CP2 =1.
************************************************************
Group 10.Inter-Phase Transfer Processes
************************************************************
Group 11.Initial field variables (PHIs)
FIINIT(P1)=1.0E-10 ;FIINIT(V1)=1.0E-10
FIINIT(C1)=1.0E-10 ;FIINIT(FLOY)=1.0E-10
FIINIT(RSV1)=1.0E-10 ;FIINIT(ANP1)=1.0E-10
FIINIT(APV1)=1.0E-10 ;FIINIT(SOV1)=1.0E-10
FIINIT(RHO1)=1.0E-10 ;FIINIT(PRPS)=-1.
FIINIT(OBID)=1.0E-10

PATCH(INIC1 ,INIVAL, 1, 1, 1, 10, 1, 1, 1, 1)
INIT(INIC1 ,C1 ,0. ,1. )

PATCH(^OB3 ,INIVAL, 3, 0, 0, 0, 0, 0, 1, 1)
INIT(^OB3 ,PRPS,0. ,198. )
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(RESIST ,VOLUME, 1, 1, 1, 50, 1, 1, 1, 50)
COVAL(RESIST ,V1 ,10. ,0. )

PATCH(INLET ,CELL , 1, 1, 1, 1, 1, 1, 1, 50)
COVAL(INLET ,P1 ,1. ,0. )
COVAL(INLET ,C1 ,0. ,1. )

PATCH(OUTLET ,CELL , 1, 1, 50, 50, 1, 1, 1, 50)
COVAL(OUTLET ,P1 ,1. ,0. )
XCYCLE = F
EGWF = T
WALLCO = GRND2
************************************************************
Group 14. Downstream Pressure For PARAB
************************************************************
Group 15. Terminate Sweeps
LSWEEP = 60 ;ISWC1 = 1
LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
SELREF = T
RESFAC =1.0E-02
************************************************************
Group 16. Terminate Iterations
LITER(P1)=20 ;LITER(V1)=10
LITER(C1)=20
ENDIT(P1)=1.0E-03 ;ENDIT(V1)=1.0E-03
ENDIT(C1)=1.0E-03
************************************************************
Group 17. Relaxation
RELAX(P1,LINRLX,0.1)
RELAX(V1,FALSDT,1.)
RELAX(C1,FALSDT,1.0E+09)
RELAX(FLOY,LINRLX,1.)
RELAX(RSV1,LINRLX,1.)
RELAX(ANP1,LINRLX,1.)
RELAX(APV1,LINRLX,1.)
RELAX(SOV1,LINRLX,1.)
RELAX(RHO1,LINRLX,0.1)
RELAX(PRPS,LINRLX,1.)
RELAX(OBID,LINRLX,1.)
OVRRLX =0.
EXPERT = F ;NNORSL = F
************************************************************
Group 18. Limits
VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
VARMAX(C1)=1.0E+10 ;VARMIN(C1)=-1.0E+10
VARMAX(FLOY)=1.0E+10 ;VARMIN(FLOY)=-1.0E+10
VARMAX(RSV1)=1.0E+10 ;VARMIN(RSV1)=-1.0E+10
VARMAX(ANP1)=1.0E+10 ;VARMIN(ANP1)=-1.0E+10
VARMAX(APV1)=1.0E+10 ;VARMIN(APV1)=-1.0E+10
VARMAX(SOV1)=1.0E+10 ;VARMIN(SOV1)=-1.0E+10
VARMAX(RHO1)=1.0E+10 ;VARMIN(RHO1)=-1.0E+10
VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
VARMAX(OBID)=1.0E+10 ;VARMIN(OBID)=-1.0E+10
************************************************************
Group 19. Data transmitted to GROUND
CONWIZ = T
ISG52 = 2
ISG62 = 0
SPEDAT(SET,MOFOR,MOFFILE,C,NOTSET)
SPEDAT(SET,GXMONI,TRANSIENT,L,F)
SPEDAT(SET,PROPERTY,RHO1,C,=1.0+0.1*P1)
SPEDAT(SET,PROPERTY,DRH1DP,C,=0.1)
SPEDAT(SET,MOVOB,BOX,C,=POS(0.0&0.15*YVLAST+1.*TIM&0.0&0&0&0&0&0&\$)
SPEDAT(SET,MOVOB,BOX,C,0&0))
SPEDAT(SET,STORED,SOV1,C,=SORC(V1)!SOURCS)
SPEDAT(SET,STORED,APV1,C,=APCO(V1)!EQCOEF)
SPEDAT(SET,STORED,ANP1,C,=ANCO(P1)!EQCOEF)
SPEDAT(SET,STORED,RSV1,C,=RESI(V1)!RESIDU)
SPEDAT(SET,STORED,FLOY,C,=RHO1*V1!ZSLFIN)
SPEDAT(SET,OBJNAM,^OB3,C,BOX)
SPEDAT(SET,OBJTYP,^OB3,C,BLOCKAGE)
SPEDAT(SET,BOX,MATERIAL,R,198.)
SPEDAT(SET,FACETDAT,NUMOBJ,I,3)
SPEDAT(SET,MATERIAL,198,L,T)
************************************************************
Group 20. Preliminary Printout
DISTIL = T ;NULLPR = F
NDST = 0
DSTTOL =1.0E-02
EX(P1)=0.01848 ;EX(V1)=0.1301
EX(C1)=0.9001 ;EX(FLOY)=0.1274
EX(RSV1)=5.231E-06 ;EX(ANP1)=0.1452
EX(APV1)=0.2697 ;EX(SOV1)=2.482E-04
EX(RHO1)=0.9996 ;EX(PRPS)=0.
EX(OBID)=0.
************************************************************
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(V1,Y,N,Y,Y,Y,Y)
OUTPUT(C1,Y,N,Y,Y,Y,Y)
OUTPUT(FLOY,Y,N,Y,N,N,N)
OUTPUT(RSV1,Y,N,Y,N,N,N)
OUTPUT(ANP1,Y,N,Y,N,N,N)
OUTPUT(APV1,Y,N,Y,N,N,N)
OUTPUT(SOV1,Y,N,Y,N,N,N)
OUTPUT(RHO1,Y,N,Y,N,N,N)
OUTPUT(PRPS,Y,N,Y,N,N,N)
OUTPUT(OBID,Y,N,Y,N,N,N)
************************************************************
Group 22. Monitor Print-Out
IXMON = 1 ;IYMON = 14 ;IZMON = 1
NPRMON = 60 ;NPRMNT = 1 ;TSTSWP = -1
UWATCH = T ;USTEER = T
HIGHLO = F
************************************************************
Group 23.Field Print-Out & Plot Control
NPRINT = 100000 ;NUMCLS = 5
NTPRIN = 10 ;ISTPRF = 1 ;ISTPRL = 100000
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

PATCH(YPLOT10 ,PROFIL, 1, 1, 1, 49, 1, 1, 10, 10)
PLOT(YPLOT10 ,P1 ,0. ,0. )
PLOT(YPLOT10 ,V1 ,0. ,0. )
PLOT(YPLOT10 ,C1 ,0. ,2. )
PLOT(YPLOT10 ,FLOY,0. ,0. )
PLOT(YPLOT10 ,RHO1,0.8 ,1.2 )

PATCH(YPLOT20 ,PROFIL, 1, 1, 1, 49, 1, 1, 20, 20)
PLOT(YPLOT20 ,P1 ,0. ,0. )
PLOT(YPLOT20 ,V1 ,0. ,0. )
PLOT(YPLOT20 ,C1 ,0. ,2. )
PLOT(YPLOT20 ,FLOY,0. ,0. )
PLOT(YPLOT20 ,RHO1,0.8 ,1.2 )

PATCH(YPLOT30 ,PROFIL, 1, 1, 1, 49, 1, 1, 30, 30)
PLOT(YPLOT30 ,P1 ,0. ,0. )
PLOT(YPLOT30 ,V1 ,0. ,0. )
PLOT(YPLOT30 ,C1 ,0. ,2. )
PLOT(YPLOT30 ,FLOY,0. ,0. )
PLOT(YPLOT30 ,RHO1,0.8 ,1.2 )

PATCH(YPLOT40 ,PROFIL, 1, 1, 1, 49, 1, 1, 40, 40)
PLOT(YPLOT40 ,P1 ,0. ,0. )
PLOT(YPLOT40 ,V1 ,0. ,0. )
PLOT(YPLOT40 ,C1 ,0. ,2. )
PLOT(YPLOT40 ,FLOY,0. ,0. )
PLOT(YPLOT40 ,RHO1,0.8 ,1.2 )

PATCH(YPLOT50 ,PROFIL, 1, 1, 1, 49, 1, 1, 50, 50)
PLOT(YPLOT50 ,P1 ,0. ,0. )
PLOT(YPLOT50 ,V1 ,0. ,0. )
PLOT(YPLOT50 ,C1 ,0. ,2. )
PLOT(YPLOT50 ,FLOY,0. ,0. )
PLOT(YPLOT50 ,RHO1,0.8 ,1.2 )
************************************************************
Group 24. Dumps For Restarts
SAVE = T ;NOWIPE = F
NSAVE =CHAM
STOP
```