TALK=T;RUN( 1, 1)

 ************************************************************
   Q1 created by VDI menu, Version 3.5, Date 15/03/02
 CPVNAM=VDI;SPPNAM=Core
 ************************************************************
  Echo DISPLAY / USE settings
  PHOTON USE
  p



  surf mark x;.99
  surf mark y;.99
  surf mark z;.99
  gr ou z 1
  gr ou z m;gr ou y 1;gr ou y m
  vec x 5 sh
  ENDUSE
 ************************************************************
 IRUNN   =       1 ;LIBREF =       0
 ************************************************************
  Group 1. Run Title
 TEXT( Drag of rectangular box                )
 ************************************************************
  Group 2. Transience
 STEADY  =    T
 ************************************************************
  Groups 3, 4, 5  Grid Information
    * Overall number of cells, RSET(M,NX,NY,NZ,tolerance)
 RSET(M,10,20,20)
 ************************************************************
  Group 6. Body-Fitted coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS  =    T
    * Non-default variable names
 NAME(148) =MARK ; NAME(149) =VISL
 NAME(150) =DEN1
    * Solved variables list
 SOLVE(P1  ,U1  ,V1  ,W1  )
    * Stored variables list
 STORE(DEN1,VISL,MARK)
    * Additional solver options
 SOLUTN(P1  ,Y,Y,Y,N,N,N)

 ************************************************************
  Group 8. Terms & Devices
 NEWENL  =    T
 ************************************************************
  Group 9. Properties
 RHO1    = 1.000000E+00
 ENUL    = GRND
 CP1     = 1.005000E+03
 ENUT    = 0.000000E+00
 EMISS   = 0.000000E+00 ;SCATT  = 0.000000E+00
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Echo PLANT settings
   PLANTBEGIN
NAMSAT=MOSG
ENUL=GRND
   VISL=1.
   REGION() 0
   VISL=2.e5
   REGION() 1

PATCH(SS001VEL,CELL,1,NX,1,NY,1,NZ,1,lstep)
   CO=2.e5
   VAL=0.0
COVAL(SS001VEL,V1,GRND,GRND)
   CO=2.e5
   VAL=0.0
COVAL(SS001VEL,W1,GRND,GRND)
   CO=2.e5
   VAL=0.0
COVAL(SS001VEL,U1,GRND,GRND)

               *** Drag force ***
   DRAG = SUM(AHIGH*((P1+DEN1*W1**2)-              (P1[,,NZ$
]+DEN1*W1[,,NZ-1]**2)))
  REGION(1,NX,1,NY,1,1)
               *** Drag coefficient ***
   CODRAG = SUM(DRAG/((14.44*6.+5.4*3.6)*DEN1*10.**2))
  REGION(1,1,1,1,1,1)
  PLANTEND
 ************************************************************
  Group 11.Initialise Var/Porosity Fields
 FIINIT(P1  ) =  0.000000E+00 ;FIINIT(U1  ) =  0.000000E+00
 FIINIT(MARK) =  0.000000E+00 ;FIINIT(VISL) =  1.001000E-10
 FIINIT(DEN1) =  1.001000E-10

 PATCH (INIMARK ,INIVAL,1,0,0,0,0,0,1,1)
 INIT(INIMARK ,MARK, 0.000000E+00, 1.000000E+00)


 INIADD  =    F
 ************************************************************
  Group 12. Convection and diffusion adjustments
   No PATCHes used for this Group
 ************************************************************
  Group 13. Boundary & Special Sources
   No PATCHes used for this Group

 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP  =     200
 RESFAC  = 1.000000E-02
 ************************************************************
  Group 16. Terminate Iterations
 ************************************************************
  Group 17. Relaxation
 RELAX(P1  ,LINRLX, 5.000000E-01)
 RELAX(U1  ,FALSDT, 1.000000E-01)
 RELAX(V1  ,FALSDT, 1.000000E-01)
 RELAX(W1  ,FALSDT, 1.000000E-01)
 ************************************************************
  Group 18. Limits
 VARMAX(U1  ) = 1.000000E+06 ;VARMIN(U1  ) =-1.000000E+06
 VARMAX(V1  ) = 1.000000E+06 ;VARMIN(V1  ) =-1.000000E+06
 VARMAX(W1  ) = 1.000000E+06 ;VARMIN(W1  ) =-1.000000E+06
 ************************************************************
  Group 19. EARTH Calls To GROUND Station
 USEGRD  =    T  ;USEGRX =    T
 NAMSAT  =MOSG
 ASAP    =    T
 ************************************************************
  Group 20. Preliminary Printout
 ECHO    =    T
 ************************************************************
  Group 21. Print-out of Variables
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON   =       5 ;IYMON  =      12 ;IZMON  =       1
 NPRMON  =     200
 NPRMNT  =       1
 TSTSWP  =      -1
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT  =  100000
 NYPRIN  =       1
 NZPRIN  =       1
 ISWPRF  =       1 ;ISWPRL =  100000
   No PATCHes used for this Group
 ************************************************************
  Group 24. Dumps For Restarts

 GVIEW(P,7.929659E-01,4.337993E-01,4.278121E-01)
 GVIEW(UP,-3.634789E-01,9.003602E-01,-2.392381E-01)

> DOM,    SIZE,        9.000000E+00, 9.000000E+00, 2.000000E+01
> DOM,    MONIT,       4.050000E+00, 5.175000E+00, 5.000000E-01
> DOM,    SCALE,       1.000000E+00, 1.000000E+00, 1.000000E+00
> DOM,    SNAPSIZE,    1.000000E-02
> GRID,   RSET_X_1,      3, 1.000000E+00
> GRID,   RSET_X_2,      4, 1.000000E+00
> GRID,   RSET_X_3,      3, 1.000000E+00
> GRID,   RSET_Y_1,      6, 1.000000E+00
> GRID,   RSET_Y_2,      6, 1.000000E+00
> GRID,   RSET_Y_3,      8, 1.000000E+00
> GRID,   RSET_Z_1,      6, 1.000000E+00
> GRID,   RSET_Z_2,      6, 1.000000E+00
> GRID,   RSET_Z_3,      8, 1.000000E+00

> OBJ,    NAME,        INIMARK
> OBJ,    POSITION,    2.700000E+00, 2.700000E+00, 6.000000E+00
> OBJ,    SIZE,        3.600000E+00, 2.700000E+00, 6.000000E+00
> OBJ,    CLIPART,     default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED

> OBJ,    NAME,        INLW
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        9.000000E+00, 9.000000E+00, 0.000000E+00
> OBJ,    CLIPART,     cube3t
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        INLET
> OBJ,    PRESSURE,      1.000000E+00
> OBJ,    VELOCITY,      0.000000E+00, 0.000000E+00, 1.000000E+01
> OBJ,    TEMPERATURE,   0.000000E+00

> OBJ,    NAME,        OUTLE
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 2.000000E+01
> OBJ,    SIZE,        9.000000E+00, 9.000000E+00, 0.000000E+00
> OBJ,    CLIPART,     cube12t
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        OUTLET
> OBJ,    PRESSURE,      0.000000E+00
> OBJ,    TEMPERATURE,  -1.026000E+04
> OBJ,    COEFFICIENT,   1.000000E+03
STOP