TALK=F;RUN( 1, 1)
 
 ************************************************************
   Q1 created by VDI menu, Version 2007, Date 26/09/07
 CPVNAM=VDI;SPPNAM=Core
 ************************************************************
  Echo DISPLAY / USE settings
  DISPLAY
  Thin cylinder with central hole in cartesian system 
  and TEM(R):
  1) R_I - inner radius, R_O - outer radius  
  2) Plane-Stress 2d problem : STRZ=0
  3) Temperature equation: TEM(R_I) = 10, TEM(R_O) = 0
  4) Stress equation STRY(R_I) = STRY(R_O) = 0
   
  The text-book solution may be found in section 151 of
  Timoshenko.
  ENDDIS
  PHOTON USE
  p;;;;
 
 
 
  set prop off
  cl
  msg PRPS fields
  gr ou z 1
  cont PRPS z 1 fil;.0001
  pause

  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
  pause
 
  cl
  msg y-displacement fields
  gr ou z 1
  cont DISY z 1 fil;.0001
  vec z 1 co 1
  pause
 
  cl
  msg R-displacement fields
  gr ou z 1
  cont DISR z 1 fil;.0001
  vec z 1 co 1
  pause

 
  cl
  msg TEM1
  gr ou z 1
  cont TEM1 z 1 fil;.0001
  pause
 
  cl
  msg TEM1_TH
  gr ou z 1
  cont T1TH z 1 fil;.0001
  pause

  cl
  msg T1/T
  gr ou z 1
  cont T1/T z 1 fil;.0001
  pause

  cl
  msg V1/T
  gr ou z 1
  cont V1/T z 1 fil;.0001
  pause
 
  ENDUSE

 ************************************************************
 IRUNN   =         1 ;LIBREF =       631
 ************************************************************
  Group 1. Run Title
 TEXT(Cooled long cylinder [Cartesian]
 ************************************************************
  Group 2. Transience
 STEADY  =    T
 ************************************************************
  Groups 3, 4, 5  Grid Information
    * Overall number of cells, RSET(M,NX,NY,NZ,tolerance)
 RSET(M,60,60,1,1.000000E-05)
 ************************************************************
  Group 6. Body-Fitted coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS  =    T
    * Solved variables list
 SOLVE(TEM1,DISX,DISY)
    * Stored variables list
 STORE(PRPS,STRX,STRY,STRZ,EPSY,EPSX,EPSZ,EPST)
 STORE(DEN1,ENUL,DVO1,DRH1,V1TH,KOND)
 STORE(V1TH,I_RG,DISR,T1TH)
    * Additional solver options
 SOLUTN(TEM1,Y,Y,Y,N,N,Y)
 SOLUTN(DISX,Y,Y,Y,N,N,Y)
 SOLUTN(DISY,Y,Y,Y,N,N,Y)
 RELAX(DISX,LINRLX, 1.000000E+00)
 RELAX(DISY,LINRLX, 1.000000E+00)
 RELAX(TEM1,LINRLX, 1.000000E+00)

 ************************************************************
  Echo InForm settings for Group  7
  SAVE7BEGIN
 
 REAL(TII,TOO,R_I,R_O,POISSON,YOUNG,ALFAT)
TII=10.0 ! inner TEM1
TOO=0.0  ! outer TEM1
 
R_I=0.2   ! inner radius
R_O=0.8   ! outer radius
 
YOUNG   = 1/(0.5E-11) ! Young's modulus
POISSON=0.3           ! Poisson's ratio
ALFAT=1.0E-5
   ======================================
REAL(BSS)
BSS=R_O/R_I
BSS = LOG(BSS)

(STORED VAR V1/T IS DISR/V1TH WITH IMAT>100)
(STORED VAR T1/T IS TEM1/T1TH WITH IMAT>100)

SPEDAT(BOUNDARY,ZCONST,R,0.0)         ! z contraction allowed

   =============== VTH ====================
real(VSS,VS_1,VS_2,VS_3,I_B) 
VSS = ALFAT*TII*(1+POISSON)/BSS
I_B = 0.25*(R_O**2-R_I**2) - 0.5*R_I**2*BSS
VS_1 = I_B*(1-POISSON)/(1+POISSON)/(R_O**2-R_I**2)
VS_2 = I_B*R_I**2/(R_O**2-R_I**2)
VS_3 = 0.5*R_I**2*(BSS+0.5)

char(RRR)
RRR=(SQRT(XG^2+YG^2))

(STORED VAR I_RG IS 0.5*:RRR:^2*(LOGE(:R_O:/:RRR:)+0.5)-:VS_3:)
(STORED VAR V1TH IS :VSS:/:RRR:*(I_RG + :VS_1:*:RRR:^2+:VS_2:))
(STORED VAR DISR IS SQRT(DISX^2+DISY^2) WITH IMAT>100)

real(TSS) 
TSS = TII/BSS
(STORED VAR T1TH IS :TSS:*LOGE(:R_O:/:RRR:) WITH IMAT>100)

 
  SAVE7END
 ************************************************************
  Group 8. Terms & Devices
 ************************************************************
  Group 9. Properties
 RHO1    = 1.000000E+00
 ENUL    = 1.000000E-05
 CP1     = 1.000000E+00
 ENUT    = 0.000000E+00
 DVO1DT  = 3.410000E-03
 PRNDTL(TEM1) = -2.580000E-02
   *  List of user-defined materials to be read by EARTH
    MATFLG=T;IMAT=3
   *  Name
   *Ind. Dens.  Viscos.  Spec.heat  Conduct.  Expans.  Compr.
   *  
    0 1.189  1.544E-05   1005.0   0.0258  3.41E-3   0.0
    5 1.189  1.544E-05   1005.0   0.0258  3.41E-3   0.0
    160 7800.0 0.3 473.0 0.0258 1.0E-5 0.5E-11
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initialise Var/Porosity Fields
 FIINIT(EPSZ) =  1.001000E-10 ;FIINIT(EPSX) =  1.001000E-10
 FIINIT(EPSY) =  1.001000E-10 ;FIINIT(STRZ) =  1.001000E-10
 FIINIT(STRY) =  1.001000E-10 ;FIINIT(STRX) =  1.001000E-10
 FIINIT(PRPS) = -1.000000E+00 ;FIINIT(DISX) =  0.000000E+00
 FIINIT(DISY) =  0.000000E+00
   No PATCHes used for this Group
 
 
 INIADD  =    F
 ************************************************************
  Echo InForm settings for Group 11
  SAVE11BEGIN

(SOURCE of TEM1 at INNER is COVAL(1.0e7,10.0) !IF(PRPS.EQ.0))    
(SOURCE of TEM1 at OUTER is COVAL(1.0e7,0.0) !IF(PRPS.EQ.5))    


  SAVE11END
 ************************************************************
  Group 12. Convection and diffusion adjustments
   No PATCHes used for this Group
 ************************************************************
  Group 13. Boundary & Special Sources
 
 PATCH (LEFT    ,WWALL ,2,0,0,0,0,0,1,1)
 COVAL (LEFT    ,DISX, 1.000000E+00, 0.000000E+00)
 
 PATCH (BOTTOM  ,SWALL ,3,0,0,0,0,0,1,1)
 COVAL (BOTTOM  ,DISY, 1.000000E+00, 0.000000E+00)
 
 EGWF    =    T
 ************************************************************
  Echo InForm settings for Group 13
  SAVE13BEGIN
 
  SAVE13END
 ************************************************************
  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
 VARMAX(U1  ) = 1.000000E+06 ;VARMIN(U1  ) =-1.000000E+06
 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   =       400
 ISG50   =         1
 ISG52   =         3
 CSG10   ='Q1'
 SPEDAT(SET,BOUNDARY,ZCONST,R,1.00000E+20)
 ************************************************************
  Echo InForm settings for Group 19
  SAVE19BEGIN
 
  SAVE19END
 ************************************************************
  Group 20. Preliminary Printout
 ECHO    =    T
 ************************************************************
  Group 21. Print-out of Variables
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON   =        29 ;IYMON  =        29 ;IZMON  =         1
 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,-1.320743E-01,6.302702E-03,9.912190E-01)
 GVIEW(UP,-1.785754E-01,9.834672E-01,-3.004784E-02)
 
> DOM,    SIZE,        1.000000E+00, 1.000000E+00, 2.000000E-01
> DOM,    MONIT,       4.750000E-01, 4.750000E-01, 1.000000E-01
> DOM,    SCALE,       1.000000E+00, 1.000000E+00, 1.000000E+00
  > GRID,   RSET_X_1,     12, 1.000000E+00
  > GRID,   RSET_X_2,     36, 1.000000E+00
  > GRID,   RSET_X_3,     12, 1.000000E+00
  > GRID,   RSET_Y_1,     12, 1.000000E+00
  > GRID,   RSET_Y_2,     36, 1.000000E+00
  > GRID,   RSET_Y_3,     12, 1.000000E+00
  > GRID,   RSET_Z_1,      1, 1.000000E+00
 
> OBJ,    NAME,        OUTER
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        9.999998E-01, 1.000000E+00, 2.000000E-01
> OBJ,    GEOMETRY,    quarter-cylinder
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        BLOCKAGE
> OBJ,    COLOR-MODE,  DEFAULT2
> OBJ,    COLOR-VAL,         42
> OBJ,    OPAQUE,            50
> OBJ,    MATERIAL,    5,  Carbon Dioxide at 27 deg C, 1 atm
 
> OBJ,    NAME,        LEFT
> OBJ,    POSITION,    0.000000E+00, 2.000000E-01, 0.000000E+00
> OBJ,    SIZE,        0.000000E+00, 6.000000E-01, 2.000000E-01
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 
> OBJ,    NAME,        BOTTOM
> OBJ,    POSITION,    2.000000E-01, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        6.000000E-01, 0.000000E+00, 2.000000E-01
> OBJ,    GEOMETRY,    default
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
 
> OBJ,    NAME,        BODY
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        8.000000E-01, 8.000000E-01, 2.000000E-01
> OBJ,    GEOMETRY,    quarter-cylinder
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        BLOCKAGE
> OBJ,    COLOR-MODE,  USER
> OBJ,    COLOR-VAL,         13
> OBJ,    MATERIAL,    160,NOTSET
 
> OBJ,    NAME,        INNER
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        2.000000E-01, 2.000000E-01, 2.000000E-01
> OBJ,    GEOMETRY,    quarter-cylinder
> OBJ,    ROTATION24,        1
> OBJ,    VISIBLE,     NO
> OBJ,    TYPE,        BLOCKAGE
> OBJ,    COLOR-MODE,  USER
> OBJ,    COLOR-VAL,         15
> OBJ,    MATERIAL,    0,  Air at 20 deg C, 1 atm, treated as i
 ************************************************************
STOP