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 rectangular plate of dimensions LX * LY is
  * held fixed along its north and west edges
  * subjected to uniform tension along its south edge
  * allowed to contract freely along its east edge
  * in case 1 (plane stress) allowed to contract freely in the
    z-direction
  * in case 2 (plane strain) prevented from contracting in the
    z-direction.
  The distributions of displacement in the xy plane are computed,
  and also the corresponding stresses and strains in all three
  directions.
  A uniform cartesian grid is used.
  The computed results are compared with the analytically-derived
  values.
 
  Cases 3 and 4 represent the same situation but with then lower-IY
  part of the plate being composed of a different material from the
  uper part. This material has 10 times the compressibility of the
  first material.
 
  In case 3, the poisson's ratio is one tenth that of the first
  material, so that the lateral extension remains the same, and
  the solution remains one-dimensional.
 
  In case 4 the poisson's ratio is the same as that of the first
  material; so the lateral extensions differ, and the solution
  becomes two-dimensional.
 
  One-dimensionality can however be restored by making LX much
  smaller than LY, for example by moving two spaces to the left
  (and so activating) the line   LX=LY/100  below.
 
  ENDDIS
  PHOTON USE
  p;;;;
 
 
 
  set prop off
  cl
  msg x-displacement fields
  gr ou z 1
  cont DISX z 1 fil;.0001
  SET VEC COMP - - -
  SET VEC COMP DISX DISY -
  VECT IZ 1 SH DASH 0
  dump
  S204_U
 
  pause
 
  cl
  msg y-displacement fields
  gr ou z 1
  cont DISY z 1 fil;.0001
  vec z 1 co 1
  dump
  S204_V
 
  pause
 
  cl
  msg x-direction strain fields
  msg of interest only for casenos 3 and 4
  gr ou z 1
  cont epsx z 1 fil;.0001
  pause
  cl
  msg y-direction strain fields
  msg of interest only for casenos 3 and 4
  gr ou z 1
  cont epsy z 1 fil;.0001
  pause
  cl
  msg shear-stress fields
  msg of interest only for casenos 3 and 4
  gr ou z 1
  cont stxy z 1 fil;.0001
 
 
  ENDUSE
 ************************************************************
 IRUNN   =         1 ;LIBREF =       604
 ************************************************************
  Group 1. Run Title
 TEXT(2D xy 2-material plate in tension; S604 )
 ************************************************************
  Group 2. Transience
 STEADY  =    T
 ************************************************************
  Groups 3, 4, 5  Grid Information
    * Overall number of cells, RSET(M,NX,NY,NZ,tolerance)
 RSET(M,16,16,1,1.000000E-05)
 ************************************************************
  Group 6. Body-Fitted coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS  =    T
    * Non-default variable names
 NAME(137) =DISY ; NAME(138) =DISX
 NAME(139) =V1/T ; NAME(140) =U1/T
 NAME(141) =V1T  ; NAME(142) =U1T
 NAME(143) =EPSZ ; NAME(144) =EPSX
 NAME(145) =EPSY ; NAME(146) =STXY
 NAME(147) =STRZ ; NAME(148) =STRY
 NAME(149) =STRX ; NAME(150) =PRPS
    * Solved variables list
 SOLVE(DISY,DISX)
    * Stored variables list
 STORE(PRPS,STRX,STRY,STRZ,STXY,EPSY,EPSX,EPSZ)
 STORE(U1T ,V1T ,U1/T,V1/T)
 
 ************************************************************
  Echo InForm settings for Group  7
  inform7begin
 
  ***** SELECT CASENO ******
 integer(caseno)
    caseno = 1  : z free
    caseno = 2  : z fixed
    caseno = 3  : z free, 2nd material has Poisson's
                  ratio and Young's modulus divided by 10
    caseno = 4  : free, 2nd material has only
                  Young's modulus divided by 10
    Note: "theoretical" values for comparison
          are not provided for casenos 3 and 4
 
 caseno=2
  ***** CASENO ******
 
real(CEPSX,CEPSY,CEPS)
REAL(FY,POISSON,YOUNG)
YOUNG   = 1/0.5E-11   ! Young's modulus used for exact solutions
POISSON=0.3           ! Poisson's ratio used for exact solutions
                      ! The above must correspond to the data
                      ! below MATFLG
REAL(LX,LY)
LX=90.e-3
LY=120.e-3
 
FY= -40.0e6  ! H/m^2 = 40 N/mm^2
IF(CASENO.EQ.2) THEN
 CEPSX = FY/YOUNG*(1+POISSON)*POISSON
 CEPSY =  -FY/YOUNG*(1-POISSON**2)
ELSE
 CEPSX = FY/YOUNG*POISSON
 CEPSY =  -FY/YOUNG
ENDIF
 
   **** CALCULATE analytical solution ***
(STORED VAR U1T IS :CEPSX:*XG)
(STORED VAR V1T IS :CEPSY:*(YG -:LY:))
 
(STORED VAR U1/T IS DISX/(U1T+1.e-20))
(STORED VAR V1/T IS DISY/(V1T+1.e-20))
 
  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  = 1.000000E-05
   *  List of user-defined materials to be read by EARTH
    MATFLG=T;IMAT=3
   *  Name
   *Ind. Dens.  Viscos.  Spec.heat  Conduct.  Expans.  Compr.
   *  
    160 7800.0 0.3 473.0 43.0 1.0E-5 0.5E-11
   *  
    161 7800.0 0.03 473.0 43.0 1.0E-5 0.5E-10
   *  
    162 7800.0 0.3 473.0 43.0 1.0E-5 0.5E-10
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initialise Var/Porosity Fields
 FIINIT(DISY) =  0.000000E+00 ;FIINIT(DISX) =  0.000000E+00
 FIINIT(V1/T) =  1.001000E-10 ;FIINIT(U1/T) =  1.001000E-10
 FIINIT(V1T ) =  1.001000E-10 ;FIINIT(U1T ) =  1.001000E-10
 FIINIT(EPSZ) =  1.001000E-10 ;FIINIT(EPSX) =  1.001000E-10
 FIINIT(EPSY) =  1.001000E-10 ;FIINIT(STXY) =  1.001000E-10
 FIINIT(STRZ) =  1.001000E-10 ;FIINIT(STRY) =  1.001000E-10
 FIINIT(STRX) =  1.001000E-10 ;FIINIT(PRPS) =  1.600000E+02
 
 PATCH (2NDMAT  ,INIVAL,1,0,0,0,0,0,1,1)
 
 
 INIADD  =    F
 ************************************************************
  Echo InForm settings for Group 11
  INFORM11BEGIN
if(caseno.eq.1.or.caseno.eq.2) then
 (INITIAL PRPS at 2ndmat is 160)
endif
if(caseno.eq.3) then
 (INITIAL PRPS at 2ndmat is 161)
 SPEDAT(SET,MATERIAL,161,L,T)
endif
if(caseno.eq.4) then
 (INITIAL PRPS at 2ndmat is 162)
 SPEDAT(SET,MATERIAL,162,L,T)
endif
  INFORM11END
 ************************************************************
  Group 12. Convection and diffusion adjustments
   No PATCHes used for this Group
 ************************************************************
  Group 13. Boundary & Special Sources
 
 PATCH (UP      ,NWALL ,2,0,0,0,0,0,1,1)
 COVAL (UP      ,DISY, 1.000000E+00, 0.000000E+00)
 
 PATCH (FORS01  ,SOUTH ,3,0,0,0,0,0,1,1)
 
 PATCH (AXESZZ  ,WWALL ,4,0,0,0,0,0,1,1)
 COVAL (AXESZZ  ,DISX, 1.000000E+00, 0.000000E+00)
 
 EGWF    =    T
 ************************************************************
  Echo InForm settings for Group 13
  inform13begin
(SOURCE of DISY at FORS01 is COVAL(FIXFLU,:FY:))
  inform13end
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP  =       400
 RESFAC  = 1.000000E-07
 ************************************************************
  Group 16. Terminate Iterations
 ************************************************************
  Group 17. Relaxation
 ************************************************************
  Group 18. Limits
 ************************************************************
  Group 19. EARTH Calls To GROUND Station
 USEGRD  =    T  ;USEGRX =    T
 STRA    =    T
 ASAP    =    T
 PARSOL  =    F
 ISG21   =       400
 ISG50   =         1
 ISG52   =         1
 CSG10   ='q1'
 SPEDAT(SET,BOUNDARY,ZCONST,R,1.00000E+20)
 ************************************************************
  Echo InForm settings for Group 19
  inform19begin
IF(CASENO.EQ.2) THEN
SPEDAT(BOUNDARY,ZCONST,R,1.e20)       ! z contraction prevented
ELSE
SPEDAT(BOUNDARY,ZCONST,R,0.0)         ! z contraction allowed
ENDIF
  inform19end
 ************************************************************
  Group 20. Preliminary Printout
 ECHO    =    T
 ************************************************************
  Group 21. Print-out of Variables
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON   =        14 ;IYMON  =         2 ;IZMON  =         1
 NPRMON  =    100000
 NPRMNT  =         1
 TSTSWP  =        -1
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT  =    100000
 NXPRIN  =         2
 NYPRIN  =         2
 ISWPRF  =         1 ;ISWPRL =    100000
   No PATCHes used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 
 GVIEW(P,0.000000E+00,0.000000E+00,1.000000E+00)
 GVIEW(UP,0.000000E+00,1.000000E+00,0.000000E+00)
 
> DOM,    SIZE,        9.000000E-02, 1.200000E-01, 1.000000E-03
> DOM,    MONIT,       7.593750E-02, 1.125000E-02, 5.000000E-04
> DOM,    SCALE,       1.000000E+00, 1.000000E+00, 1.000000E+00
> DOM,    SNAPSIZE,    1.000000E-02
  > GRID,   RSET_X_1,     16, 1.000000E+00
> GRID,   RSET_Y_1,      8, 1.000000E+00
> GRID,   RSET_Y_2,      8, 1.000000E+00
  > GRID,   RSET_Z_1,      1, 1.000000E+00
 
> OBJ,    NAME,        2NDMAT
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        9.000000E-02, 6.000000E-02, 1.000000E-03
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 
> OBJ,    NAME,        UP
> OBJ,    POSITION,    0.000000E+00, 1.200000E-01, 0.000000E+00
> OBJ,    SIZE,        9.000000E-02, 0.000000E+00, 1.000000E-03
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 
> OBJ,    NAME,        FORS01
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        9.000000E-02, 0.000000E+00, 1.000000E-03
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 
> OBJ,    NAME,        AXESZZ
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        0.000000E+00, 1.200000E-01, 1.000000E-03
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 ************************************************************
STOP