TALK=F;RUN( 1, 1)
 
 ************************************************************
   Q1 created by VDI menu, Version 2007, Date 16/01/07
 CPVNAM=VDI;SPPNAM=Core
 ************************************************************
  Echo DISPLAY / USE settings
  DISPLAY
  A cubical block is subjected to y-direction tension, under 
  three possible lateral-constraint conditions:
  1. no constraint
  2. lateral displacement in x and z directions prevented 
  3. lateral displacement prevented only in x direction
  
  Because the y-direction displacements depend only on y, NX and NZ, 
  the number of x- and z-direction intervals, are both set to 1.
  
  The boolean variable 'direct' toggles which end is fixed and which
  is pulled.
  
  The stresses and strains are calculated; and their textbook
  values also. the former divided by the latter are printed as: 
    SX/T, EX/T, etc, the values of which should be close to 1.0
  (but they will be printed as 0.0 if the theoretical value 0.0)

  ENDDIS
 ************************************************************
 IRUNN   =         1 ;LIBREF =       102
 ************************************************************
  Group 1. Run Title
 TEXT(Cube in Y-direction tension; S102       )
 ************************************************************
  Group 2. Transience
 STEADY  =    T
 ************************************************************
  Groups 3, 4, 5  Grid Information
    * Overall number of cells, RSET(M,NX,NY,NZ,tolerance)
 RSET(M,1,10,1)
 ************************************************************
  Group 6. Body-Fitted coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS  =    T
    * Non-default variable names
 NAME(133) =EZTH ; NAME(134) =EPSZ
 NAME(135) =EYTH ; NAME(136) =EPSY
 NAME(137) =EXTH ; NAME(138) =EPSX
 NAME(139) =SZTH ; NAME(140) =STRZ
 NAME(141) =SYTH ; NAME(142) =STRY
 NAME(143) =SXTH ; NAME(144) =STRX
 NAME(145) =P1TH ; NAME(146) =DRH1
 NAME(147) =DVO1 ; NAME(148) =ENUL
 NAME(149) =DEN1 ; NAME(150) =PRPS
    * Solved variables list
 SOLVE(P1  ,V1  )
    * Stored variables list
 STORE(PRPS,DEN1,ENUL,DVO1,DRH1,P1TH,STRX,SXTH)
 STORE(STRY,SYTH,STRZ,SZTH,EPSX,EXTH,EPSY,EYTH)
 STORE(EPSZ,EZTH)
 
 ************************************************************
  Echo InForm settings for Group  7
  inform7begin
 
 integer(caseno)
  ***** SELECT CASENO ******
  caseno = 1 .. y-direction tension, x & z free
  caseno = 2 :  ditto            , x & z fixed
  caseno = 3 :  ditto            , x free, z fixed
 caseno=2
  ***** CASENO ******
 real(appstr)
 appstr = 1.e9
 boolean(direct)
 direct=f
 
 REAL(YOUNG, POISSON)
 POISSON = 0.3          ! must conform with matflg value
 YOUNG   = 1/(0.5E-11)  ! must conform with matflg value
 
REAL(P1TH,EXTH,EYTH,EZTH,SXTH,SYTH,SZTH,TERM)
  Formulae for the theoretical values
IF(CASENO.EQ.1) THEN
SYTH=APPSTR
EYTH=APPSTR/YOUNG
EXTH=-EYTH*POISSON
EZTH=-EYTH*POISSON
SXTH=0.0
SZTH=0.0
ENDIF
 
IF(CASENO.EQ.2) THEN
EXTH=0.0
EZTH=0.0
TERM=APPSTR
EYTH=(APPSTR/YOUNG)*(1+POISSON)*(1-2*POISSON)/(1-POISSON)
SYTH=TERM
SXTH=TERM*POISSON/(1-POISSON)
SZTH=TERM*POISSON/(1-POISSON)
ENDIF
 
IF(CASENO.EQ.3) THEN
EXTH=0
SZTH=0
SYTH=APPSTR
EYTH=(SYTH/YOUNG)*(1+POISSON)*(1-POISSON)
EZTH=-EYTH*POISSON/(1-POISSON)
P1TH=EYTH+EZTH
SXTH=P1TH*YOUNG*POISSON/(1-2*POISSON)/(1+POISSON)
ENDIF
 
 
  *** load from S001 and S002 ***
 
  Macro containing frequently-useful settings for
  stress-and-strain-in-solids simulations
(stored var SXTH is :SXTH: with IMAT>100)
(stored var SYTH is :SYTH: with IMAT>100)
(stored var SZTH is :SZTH: with IMAT>100)
(stored var EXTH is :EXTH: with IMAT>100)
(stored var EYTH is :EYTH: with IMAT>100)
(stored var EZTH is :EZTH: with IMAT>100)
(stored var P1TH is :EZTH: with IMAT>100)
 
P1TH=EXTH+EYTH+EZTH
 
(stored var P1TH is :P1TH:)
 
(stored var SX/T is STRX/SXTH with IMAT>100)
(stored var SY/T is STRY/SYTH with IMAT>100)
(stored var SZ/T is STRZ/SZTH with IMAT>100)
(stored var EX/T is EPSX/EXTH with IMAT>100)
(stored var EY/T is EPSY/EYTH with IMAT>100)
(stored var EZ/T is EPSZ/EZTH with IMAT>100)
 

FIINIT(EXTH)=-1.234E-11  ! to print as none
FIINIT(EYTH)=-1.234E-11  ! to print as none
FIINIT(EZTH)=-1.234E-11  ! to print as none
FIINIT(SXTH)=-1.234E-11  ! to print as none
FIINIT(SYTH)=-1.234E-11  ! to print as none
FIINIT(SZTH)=-1.234E-11  ! to print as none
 
  inform7end
 ************************************************************
  Group 8. Terms & Devices
 ************************************************************
  Group 9. Properties
    * Domain material index is 160 signifying:
    * NOTSET
 SETPRPS(1,160,Q1)
 ENUT    = 0.000000E+00
 DRH1DP  = 5.000000E-12
 DVO1DT  = 3.700000E-06
   *  List of user-defined materials to be read by EARTH
    MATFLG=T;IMAT=1
   *  Name
   *Ind. Dens.  Viscos.  Spec.heat  Conduct.  Expans.  Compr.
   *  
    160 7800.0 0.3 473.0 43.0 0.37E-5 0.5E-11
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initialise Var/Porosity Fields
 FIINIT(P1  ) =  0.000000E+00 ;FIINIT(V1  ) =  0.000000E+00
 FIINIT(EZTH) = -1.234000E-11 ;FIINIT(EPSZ) =  1.001000E-10
 FIINIT(EYTH) = -1.234000E-11 ;FIINIT(EPSY) =  1.001000E-10
 FIINIT(EXTH) = -1.234000E-11 ;FIINIT(EPSX) =  1.001000E-10
 FIINIT(SZTH) = -1.234000E-11 ;FIINIT(STRZ) =  1.001000E-10
 FIINIT(SYTH) = -1.234000E-11 ;FIINIT(STRY) =  1.001000E-10
 FIINIT(SXTH) = -1.234000E-11 ;FIINIT(STRX) =  1.001000E-10
 FIINIT(P1TH) =  1.001000E-10 ;FIINIT(DRH1) =  1.001000E-10
 FIINIT(DVO1) =  1.001000E-10 ;FIINIT(ENUL) =  1.001000E-10
 FIINIT(DEN1) =  1.001000E-10 ;FIINIT(PRPS) =  1.600000E+02
   No PATCHes used for this Group
 
 
 INIADD  =    F
 ************************************************************
  Group 12. Convection and diffusion adjustments
   No PATCHes used for this Group
 ************************************************************
  Group 13. Boundary & Special Sources
 
 PATCH (SFIX    ,SWALL  ,1,0,0,0,0,0,1,1)
 
 PATCH (SFOR    ,SOUTH  ,2,0,0,0,0,0,1,1)

 PATCH (NFIX    ,NWALL  ,3,0,0,0,0,0,1,1)
 
 PATCH (NFOR    ,NORTH   ,4,0,0,0,0,0,1,1)
 
 EGWF    =    T
 ************************************************************
  Echo InForm settings for Group 13
  inform13begin
 
 IF(DIRECT) THEN
 (SOURCE of V1 at SFIX is COVAL(1.0,0.0))
 (SOURCE of V1 at NFOR is COVAL(FIXFLU,:APPSTR:))
 ELSE
 (SOURCE of V1 at NFIX is COVAL(1.0,0.0))
 (SOURCE of V1 at SFOR is COVAL(FIXFLU,-1*:APPSTR:))
 ENDIF
 
  inform13end
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP  =        10
 RESREF(V1  ) =  0.000000E+00
 RESFAC  = 1.000000E-03
 ************************************************************
  Group 16. Terminate Iterations
 ************************************************************
  Group 17. Relaxation
 RELAX(P1  ,LINRLX, 1.000000E+00)
 ************************************************************
  Group 18. Limits
 VARMAX(V1  ) = 1.000000E+06 ;VARMIN(V1  ) =-1.000000E+06
 ************************************************************
  Group 19. EARTH Calls To GROUND Station
 USEGRD  =    T  ;USEGRX =    T
 STRA    =    T
 ASAP    =    T
 PARSOL  =    F
 ISG21   =        10
 ISG50   =         1
 ISG52   =         1
 CSG10   ='q1'
 SPEDAT(SET,BOUNDARY,XCONST,R,1.00000E+20)
 SPEDAT(SET,BOUNDARY,ZCONST,R,1.00000E+20)
 ************************************************************
  Echo InForm settings for Group 19
  inform19begin
 
  Effect of constraints in y and z directions
IF(CASENO.EQ.1) THEN
SPEDAT(BOUNDARY,XCONST,R,0.0)
SPEDAT(BOUNDARY,ZCONST,R,0.0)
ENDIF
IF(CASENO.EQ.2) THEN
SPEDAT(BOUNDARY,XCONST,R,1.E20)  ! prevent y displacement
SPEDAT(BOUNDARY,ZCONST,R,1.E20)  ! prevent z displacement
ENDIF
IF(CASENO.EQ.3) THEN
SPEDAT(BOUNDARY,XCONST,R,1.E20)  ! prevent y displacement
SPEDAT(BOUNDARY,ZCONST,R,0.0)
ENDIF
 
  inform19end
 ************************************************************
  Group 20. Preliminary Printout
 ECHO    =    T
 ************************************************************
  Group 21. Print-out of Variables
 ************************************************************
  Group 22. Monitor Print-Out
 NPRMON  =    100000
 NPRMNT  =         1
 TSTSWP  =        -1
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT  =    100000
 ISWPRF  =         1 ;ISWPRL =    100000
   No PATCHes used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 
 GVIEW(P,2.661084E-01,-3.670429E-02,9.632436E-01)
 GVIEW(UP,8.642086E-01,-4.335673E-01,-2.552702E-01)
 
> DOM,    SIZE,        1.000000E+00, 1.000000E+01, 1.000000E+00
> DOM,    MONIT,       5.000000E-01, 3.500000E+00, 5.000000E-01
> DOM,    SCALE,       1.000000E+00, 1.000000E+00, 1.000000E+00
> DOM,    SNAPSIZE,    1.000000E-02
> GRID,   RSET_X_1,     1, 1.000000E 00
  > GRID,   RSET_Y_1,   10, 1.000000E-01
  > GRID,   RSET_Z_1,   1, 1.000000E+00
 
> OBJ,    NAME,        SFIX
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        1.000000E+00, 0.000000E+00, 1.000000E+00
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 
> OBJ,    NAME,        SFOR
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        1.000000E+00, 0.000000E+00, 1.000000E+00
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED

> OBJ,    NAME,        NFIX
> OBJ,    POSITION,    0.000000E+00, 1.000000E+01, 0.000000E+00
> OBJ,    SIZE,        1.000000E+00, 0.000000E+00, 1.000000E+00
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED

> OBJ,    NAME,        NFOR
> OBJ,    POSITION,    0.000000E+00, 1.000000E+01, 0.000000E+00
> OBJ,    SIZE,        1.000000E+00, 0.000000E+00, 1.000000E+00
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 ************************************************************
STOP