TALK=T;RUN(1,1) S624

  
  notes by dbs 16-17.01.13
  Library case s640 is here upgraded and partially parameterised 
  for instructional purposes. A corresponding SimScene should be 
  created.
  
  Additional choices which it will be instructive to make 
  available to the user include:
  * the use of the staggered rather than collocated formulation
  * free-end rather than fixed-end constraint
  * solution for temperature in place of prescription
  * flow of internal and external fluids so as to permit 
    lonsitudinal temperature gradient to arise
  * removal of the inner cavity so as to permit comparisone with 
    exact solution as in case s630.   
  * transient operation (when temperature is solved rather than 
    specified)
  * refinment of grid so as to investigate possible stress 
    concentrations near the unchamfered corners, and to
    investigate how chamfering might diminish them.     
    
 
 ************************************************************
   Q1 created by VDI menu, Version 2007, Date 16/01/07
 CPVNAM=VDI;SPPNAM=Core
 ************************************************************
  Echo DISPLAY / USE settings
  
  A hollow cylinder immersed in an outer fluid contains an internal 
  concentric cylindrical cavity with a second fluid at a different
  pressure, A linear temperature radial temperature gradient is 
  imposed on the solid
  
  ^------------------------------------------------------^outthi
  cylour ------------- outlen ---------------------------v
          
               ---------hollen--------
        holpos>!                    ! ^ holrad
               !                    !
  -------------!                    !--------------------^cylinr             
  - --- - --- -  --- - --- - --- - - -- - --- - --- -    v
  hollow, thick-walled cylinder, immersed in an outer fluid,
  contains a second fluid having a different pressur within a 
  concentric cavity.                                                        
  The outer surface of the cylinder is held at temperature -30,
  A uniform radial temperature gradient is imposed.
  
  The Collocated-Displacement formulation is employed.
  
  ************************************
  PQ1 Part 1 Declarations and settings
  ************************************
  xml-group general
  insert declaration and settings below
  
  xml-group geometry
  insert declaration and settings below
real(angsiz) ! angular size of domain, radians 
angsiz=0.5
  
real(outlen) ! outer cylinder length
outlen=1.0
  
real(outthi) ! thickness of outer fluid
outthi=0.002

real(hollen)  ! inner hole lemgth
hollen=0.45
  
real(cylour) ! outer radius of cylinder
cylour=0.8
  
real(cylinr) ! innermost radius  
cylinr=0.2

real(holrad) ! larger inner radius 
holrad=0.3

real(holpos) ! lengthwise position of cavity
holpos=0.25
  xml-group variables solved
  insert declaration and settings below
                                 
  xml-group material properties
  insert declaration and settings below
  
  xml-group model choices
  insert declaration and settings below
  
  xml-group initial condition
  insert declaration and settings below
  
  xml-group boundary conditions
  insert declaration and settings below
real(DTE_R) ! radial temperature gradient
DTE_R = 0.0 
  DTE_R = 100.0 

real(TE_R)  ! external temperature
TE_R = -30.0 

real(pout) ! outer pressure
pout=1.e6

real(pin)  ! inner pressure
pin=1.e7

  xml-group output settings
  insert declaration and settings below
  
  xml-group computational grid
  insert declaration and settings below
  
  xml-group other numerical
  insert declaration and settings below
  
  
  ************************************

  
  PHOTON USE
  p;;;;
 
 
  set prop off
  msg
  msg DISY contours
  msg
  cont DISY x 1 fil;.0001
  SET VEC COMP - - -
  SET VEC COMP - DISY DISZ
  VECT IX 1  col 1
 
  pause
 
  cl
  msg
  msg tem1 contours
  msg
  cont tem1 x 1 fil;.0001
  pause
 
  cl
  msg
  msg DISZ contours
  msg
  cont DISZ x 1 fil;.0001
  pause
 
 
  cl
  msg
  msg strZ contours
  msg
  cont strZ x 1 fil;.0001
  pause
 
 
  cl
  msg
  msg strx contours
  msg
  cont strx x 1 fil;.0001
  pause
 
 
  cl
  msg
  msg stry contours
  msg
  cont stry x 1 fil;.0001
  pause
 
  ENDUSE
 ************************************************************
 IRUNN   =         1 ;LIBREF =         0
 ************************************************************
  Group 1. Run Title
 TEXT(Pressurised long cylinder with hole;S624)
 ************************************************************
  Group 2. Transience
 STEADY  =    T
 ************************************************************
  Groups 3, 4, 5  Grid Information
    * Overall number of cells, RSET(M,NX,NY,NZ,tolerance)
 RSET(M,1,22,20,2.000030E-04)
    * Cylindrical-polar grid
 CARTES=F
 ************************************************************
  Group 6. Body-Fitted coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS  =    T
    * Non-default variable names
 NAME(139) =EPST ; NAME(140) =TEM1
 NAME(141) =EPSZ ; NAME(142) =EPSX
 NAME(143) =EPSY ; NAME(144) =DRH1
 NAME(145) =DVO1 ; NAME(146) =ENUL
 NAME(147) =DEN1 ; NAME(148) =PRPS
 NAME(149) =DISZ ; NAME(150) =DISY
    * Solved variables list
 SOLVE(DISZ,DISY)
    * Stored variables list
 STORE(PRPS,DEN1,ENUL,DVO1,DRH1,EPSY,EPSX,EPSZ)
 STORE(TEM1,EPST,W1  ,V1  ,P1  )
    * Additional solver options
 SOLUTN(DISZ,Y,Y,Y,N,N,N)
 SOLUTN(DISY,Y,Y,Y,N,N,N)
 store(strx,stry,strz,epsx,epsy,epsz)
 ************************************************************
  Echo InForm settings for Group  7
  inform7begin
  Linear temperature profile imposed on solid
(STORED VAR TEM1 IS (:TE_R:+:DTE_R:*(YG-0.2)) with imat>100)
  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=2
   *  Name
   *Ind. Dens.  Viscos.  Spec.heat  Conduct.  Expans.  Compr.
   *  
    160 7800.0 0.3 473.0 43.0 1.0E-5 0.5E-11
   *  
    68 1.0 1.E+20 1000.0 0.0 0 0
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initialise Var/Porosity Fields
 FIINIT(EPST) =  1.001000E-10 ;FIINIT(TEM1) =  1.001000E-10
 FIINIT(EPSZ) =  1.001000E-10 ;FIINIT(EPSX) =  1.001000E-10
 FIINIT(EPSY) =  1.001000E-10 ;FIINIT(DRH1) =  1.001000E-10
 FIINIT(DVO1) =  1.001000E-10 ;FIINIT(ENUL) =  1.001000E-10
 FIINIT(PRPS) =  1.600000E+02 ;FIINIT(DISZ) =  1.001000E-10
 FIINIT(DISY) =  1.001000E-10
   No PATCHes used for this Group
 
 
 INIADD  =    F
 ************************************************************
  Echo InForm settings for Group 11
  inform11begin
  inform11end
 ************************************************************
  Group 12. Convection and diffusion adjustments
   No PATCHes used for this Group
 ************************************************************
  Group 13. Boundary & Special Sources
 
 PATCH (Z01     ,LWALL ,4,0,0,0,0,0,1,1)
 COVAL (Z01     ,DISZ, 1.000000E+00, 0.000000E+00)
 
 PATCH (Z02     ,HWALL ,5,0,0,0,0,0,1,1)
 COVAL (Z02     ,DISZ, 1.000000E+00, 0.000000E+00)
 
 EGWF    =    T
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP  =      1200
 RESFAC  = 1.000000E-03
 ************************************************************
  Group 16. Terminate Iterations
 ************************************************************
  Group 17. Relaxation
 RELAX(DISZ,LINRLX, 1.000000E+00)
 RELAX(DISY,LINRLX, 1.000000E+00)
 ************************************************************
  Group 18. Limits
 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
 STRA    =    T
 ASAP    =    T
 PARSOL  =    T
 ISG21   =      1200
 ISG52   =         3
 CSG10   ='q1'
 SPEDAT(SET,BOUNDARY,XCONST,R,1.00000E+20)
 ************************************************************
  Group 20. Preliminary Printout
 ECHO    =    T
 ************************************************************
  Group 21. Print-out of Variables
 OUTPUT(P1  ,y,y,y,y,y,y)
 OUTPUT(V1  ,Y,y,Y,Y,Y,Y)
 OUTPUT(W1  ,Y,y,Y,Y,Y,Y)
 OUTPUT(EPSZ,y,y,y,y,y,y)
 OUTPUT(EPSX,y,y,y,y,y,y)
 OUTPUT(EPSY,y,y,y,y,y,y)
 OUTPUT(DRH1,y,y,y,y,y,y)
 OUTPUT(DVO1,y,y,y,y,y,y)
 OUTPUT(ENUL,y,y,y,y,y,y)
 OUTPUT(DEN1,y,y,y,y,y,y)
 OUTPUT(PRPS,y,y,y,y,y,y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON   =         1 ;IYMON  =        21 ;IZMON  =        10
 NPRMON  =    100000
 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
 ************************************************************
  Group 24. Dumps For Restarts
 
  Note that VR objects are used here unnecessarily; for the grid
  is cylindrical polar and all the 'objects' fit it exactly.
 
 GVIEW(P,-1.000000E+00,0.000000E+00,0.000000E+00)
 GVIEW(UP,0.000000E+00,1.000000E+00,0.000000E+00)
 
> DOM,    SIZE,        angsiz, cylour+outthi      , outlen       
> DOM,    MONIT,       2.500000E-01, 7.850000E-01, 4.750000E-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,      1, 1.000000E+00
> GRID,   RSET_Y_2,     10, 1.000000E+00
> GRID,   RSET_Y_3,     10, 1.000000E+00
> GRID,   RSET_Y_4,      1, 1.000000E+00
> GRID,   RSET_Z_1,      5, 1.000000E+00
> GRID,   RSET_Z_2,      9, 1.000000E+00
> GRID,   RSET_Z_3,      6, 1.000000E+00


> OBJ,    NAME,        POUT
> OBJ,    POSITION,    0.000000E+00, cylour, 0.000000E+00
> OBJ,    SIZE,        angsiz, outthi , outlen       
> OBJ,    GEOMETRY,    polcubt2
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        BLOCKAGE
> OBJ,    MATERIAL,    0,  Air at 20 deg C, 1 atm, treated as i
> OBJ,    INI_PRESS,   pout
> OBJ,    SCAL_FIXF,   Per-unit-volume

> OBJ,    NAME,        PIN
> OBJ,    POSITION,    0.000000E+00, 0.000000E+00, 0.000000E+00
> OBJ,    SIZE,        angsiz, cylinr, outlen
> OBJ,    GEOMETRY,    polcubt2
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        BLOCKAGE
> OBJ,    MATERIAL,    0,  Air at 20 deg C, 1 atm, treated as i
> OBJ,    INI_PRESS,   pin
> OBJ,    SCAL_FIXF,   Per-unit-volume
     
 
> OBJ,    NAME,        PHOLE
> OBJ,    POSITION,    0.000000E+00, cylinr, holpos
  > OBJ,    POSITION,    0.000000E+00, 2.000000E-01, 2.500000E-01
  > OBJ,    SIZE,        5.000000bnE-01, 3.000000E-01, 4.50000E-01
> OBJ,    SIZE,        angsiz, holrad, hollen          
> OBJ,    GEOMETRY,    polcubt2
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        BLOCKAGE
> OBJ,    MATERIAL,    0,  Air at 20 deg C, 1 atm, treated as i
> OBJ,    INI_PRESS,    1.000000E+07
> OBJ,    SCAL_FIXF,   Per-unit-volume
 
> OBJ,    NAME,        Z01
> OBJ,    POSITION,    0.000000E+00, cylinr, 0.000000E+00
> OBJ,    SIZE,        angsiz, cylour-cylinr, 0.000000E+00
> OBJ,    GEOMETRY,    poldef
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED

> OBJ,    NAME,        Z02
> OBJ,    POSITION,    0.000000E+00, cylinr, outlen
> OBJ,    SIZE,        angsiz, cylour-cylinr, 0.000000E+00
> OBJ,    GEOMETRY,    poldef
> OBJ,    ROTATION24,        1
> OBJ,    TYPE,        USER_DEFINED
  
STOP