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 z-direction tension, under three possible lateral-constraint conditions: 1. no constraint 2. lateral displacement in x and y directions prevented 3. lateral displacement prevented only in x direction Because the z-direction displacements depend only on z, NX and NY, the number of x- and y-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 is 0.0) ENDDIS ************************************************************ IRUNN = 1 ;LIBREF = 103 ************************************************************ Group 1. Run Title TEXT(Cube in Z-direction tension; S103 ) ************************************************************ Group 2. Transience STEADY = T ************************************************************ Groups 3, 4, 5 Grid Information * Overall number of cells, RSET(M,NX,NY,NZ,tolerance) RSET(M,1,1,10) ************************************************************ 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 ,W1 ) * 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 :z-direction tension, x & y free caseno = 2 : ditto , x & y fixed caseno = 3 : ditto , x fixed, y free 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 SZTH=APPSTR EZTH=APPSTR/YOUNG EYTH=-EZTH*POISSON EXTH=-EZTH*POISSON SYTH=0.0 SXTH=0.0 ENDIF IF(CASENO.EQ.2) THEN EXTH=0.0 EYTH=0.0 TERM=APPSTR EZTH=(APPSTR/YOUNG)*(1+POISSON)*(1-2*POISSON)/(1-POISSON) SZTH=TERM SYTH=TERM*POISSON/(1-POISSON) SXTH=TERM*POISSON/(1-POISSON) ENDIF IF(CASENO.EQ.3) THEN EXTH=0 SYTH=0 SZTH=APPSTR EZTH=(SZTH/YOUNG)*(1+POISSON)*(1-POISSON) EYTH=-EZTH*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(W1 ) = 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 (LFIX ,LWALL ,1,0,0,0,0,0,1,1) PATCH (LFOR ,LOW ,2,0,0,0,0,0,1,1) PATCH (HFIX ,HWALL ,3,0,0,0,0,0,1,1) PATCH (HFOR ,HIGH ,4,0,0,0,0,0,1,1) EGWF = T ************************************************************ Echo InForm settings for Group 13 inform13begin IF(DIRECT) THEN (SOURCE of W1 at LFIX is COVAL(1.0,0.0)) (SOURCE of W1 at HFOR is COVAL(FIXFLU,:APPSTR:)) ELSE (SOURCE of W1 at HFIX is COVAL(1.0,0.0)) (SOURCE of W1 at LFOR is COVAL(FIXFLU,-1*:APPSTR:)) ENDIF inform13end ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 10 RESREF(W1 ) = 0.000000E+00 RESFAC = 1.000000E-03 ************************************************************ Group 16. Terminate Iterations ************************************************************ Group 17. Relaxation RELAX(P1 ,LINRLX, 1.000000E+00) ************************************************************ Group 18. Limits 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 = F ISG21 = 10 ISG50 = 1 ISG52 = 1 CSG10 ='q1' SPEDAT(SET,BOUNDARY,YCONST,R,1.00000E+20) SPEDAT(SET,BOUNDARY,XCONST,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,YCONST,R,0.0) SPEDAT(BOUNDARY,XCONST,R,0.0) ENDIF IF(CASENO.EQ.2) THEN SPEDAT(BOUNDARY,YCONST,R,1.E20) ! prevent y displacement SPEDAT(BOUNDARY,XCONST,R,1.E20) ! prevent x displacement ENDIF IF(CASENO.EQ.3) THEN SPEDAT(BOUNDARY,XCONST,R,1.E20) ! prevent x displacement SPEDAT(BOUNDARY,YCONST,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 TITLE = CUBEINX-DIRECTIONTENSION GVIEW(P,0.000000E+00,9.999875E-01,4.999979E-03) GVIEW(UP,1.000000E+00,0.000000E+00,0.000000E+00) > DOM, SIZE, 1.000000E+00, 1.000000E+00, 1.000000E+01 > DOM, MONIT, 3.971640E+00, 5.000000E-01, 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, 1, 1.000000E+00 > GRID, RSET_Z_1, 10, 1.000000E-01 > OBJ, NAME, LFIX > OBJ, POSITION, 0.000000E+00, 0.000000E+00, 0.000000E+00 > OBJ, SIZE, 1.000000E+00, 1.000000E+00, 0.000000E+00 > OBJ, GEOMETRY, default > OBJ, ROTATION24, 1 > OBJ, TYPE, USER_DEFINED > OBJ, NAME, LFOR > OBJ, POSITION, 0.000000E+00, 0.000000E+00, 0.000000E+00 > OBJ, SIZE, 1.000000E+00, 1.000000E+00, 0.000000E+00 > OBJ, GEOMETRY, default > OBJ, ROTATION24, 1 > OBJ, TYPE, USER_DEFINED > OBJ, NAME, HFIX > OBJ, POSITION, 0.000000E+00, 0.000000E+00, 1.000000E+01 > OBJ, SIZE, 1.000000E+00, 1.000000E+00, 0.000000E+00 > OBJ, GEOMETRY, default > OBJ, ROTATION24, 1 > OBJ, TYPE, USER_DEFINED > OBJ, NAME, HFOR > OBJ, POSITION, 0.000000E+00, 0.000000E+00, 1.000000E+01 > OBJ, SIZE, 1.000000E+00, 1.000000E+00, 0.000000E+00 > OBJ, GEOMETRY, default > OBJ, ROTATION24, 1 > OBJ, TYPE, USER_DEFINED ************************************************************ STOP