TALK=T;RUN(1,1) DISPLAY Heat exchanger with stress ENDDIS PHOTON USE extrapolate nolim phi 10 1 set prop off vi 1 1 1 gr x 1 y 1 40 gr ou y 40 msg radial dimension enlarged *10 msg pressure contours msg flow directions msg inner: msg right to left msg outer: msg left to right con p1 z 1 y 1 10 fi;0.001 con p1 z 1 y 21 30 fi;0.001 con p1 z m y 1 10 fi;0.001 con p1 z m y 21 30 fi;0.001 *dump tubep1 pause;con off; red msg temperature contours con tem1 z 1 y 1 40 fi;0.001 con tem1 z m y 1 40 fi;0.001 *dump tubetem1 pause;con off; red msg radial strain contours con epsy z 1 y 11 20 fi;0.001 con epsy z 1 y 31 40 fi;0.001 con epsy z m y 11 20 fi;0.001 con epsy z m y 31 40 fi;0.001 *dump tubeepsy pause;con off;red msg radial stress contours con stry z 1 y 11 20 fi;0.001 con stry z 1 y 31 40 fi;0.001 con stry z m y 11 20 fi;0.001 con stry z m y 31 40 fi;0.001 *dump tubestry pause;con off;red msg circumferential strain contours con epsx z 1 y 11 20 fi;0.001 con epsx z 1 y 31 40 fi;0.001 con epsx z m y 11 20 fi;0.001 con epsx z m y 31 40 fi;0.001 *dump tubeepsx * pause;con off;red * msg circumferential stress contours * con strx z 1 fi;0.001 * pause * axial strain contours * con epsz z 1 fi;0.001 pause;con off;red msg axial stress contours con strz z 1 y 11 20 fi;0.001 con strz z 1 y 31 40 fi;0.001 con strz z m y 11 20 fi;0.001 con strz z m y 31 40 fi;0.001 *dump tubestrz ENDUSE ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(heat exchanger with stress ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 0 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = F NX = 12 XULAST =3.1415 XFRAC(1)=0.083333 ;XFRAC(4)=0.333333 XFRAC(7)=0.583333 ;XFRAC(10)=0.833333 ************************************************************ Group 4. Y-Direction Grid Spacing NY = 41 YVLAST =0.081 YFRAC(1)=0.037037 ;YFRAC(2)=0.074074 YFRAC(3)=0.111111 ;YFRAC(4)=0.148148 YFRAC(5)=0.185185 ;YFRAC(6)=0.222222 YFRAC(7)=0.259259 ;YFRAC(8)=0.296296 YFRAC(9)=0.333333 ;YFRAC(10)=0.37037 YFRAC(11)=0.382716 ;YFRAC(12)=0.395062 YFRAC(13)=0.407407 ;YFRAC(14)=0.419753 YFRAC(15)=0.432099 ;YFRAC(16)=0.444444 YFRAC(17)=0.45679 ;YFRAC(18)=0.469136 YFRAC(19)=0.481481 ;YFRAC(20)=0.493827 YFRAC(21)=0.518519 ;YFRAC(22)=0.54321 YFRAC(23)=0.567901 ;YFRAC(24)=0.592593 YFRAC(25)=0.617284 ;YFRAC(26)=0.641975 YFRAC(27)=0.666667 ;YFRAC(28)=0.691358 YFRAC(29)=0.716049 ;YFRAC(30)=0.740741 YFRAC(31)=0.765432 ;YFRAC(32)=0.790123 YFRAC(33)=0.814815 ;YFRAC(34)=0.839506 YFRAC(35)=0.864198 ;YFRAC(36)=0.888889 YFRAC(37)=0.91358 ;YFRAC(38)=0.938272 YFRAC(39)=0.962963 ;YFRAC(40)=0.987654 YFRAC(41)=1. ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 12 ZWLAST =1. ZFRAC(1)=0.017854 ;ZFRAC(4)=0.16868 ZFRAC(7)=0.417624 ;ZFRAC(10)=0.744263 ************************************************************ Group 6. Body-Fitted Coordinates ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd ONEPHS = T NAME(1)=P1 ;NAME(3)=U1 NAME(5)=V1 ;NAME(7)=W1 NAME(134)=LTLS ;NAME(135)=WDIS NAME(136)=EPST ;NAME(137)=ENUL NAME(138)=STRZ ;NAME(139)=STRY NAME(140)=STRX ;NAME(141)=EPSZ NAME(142)=EPSY ;NAME(143)=EPSX NAME(144)=KOND ;NAME(145)=ENUT NAME(146)=DVO1 ;NAME(147)=DRH1 NAME(148)=RHO1 ;NAME(149)=PRPS NAME(150)=TEM1 * Y in SOLUTN argument list denotes: * 1-stored 2-solved 3-whole-field * 4-point-by-point 5-explicit 6-harmonic averaging SOLUTN(P1,Y,Y,Y,N,N,Y) SOLUTN(U1,Y,Y,Y,N,N,Y) SOLUTN(V1,Y,Y,Y,N,N,Y) SOLUTN(W1,Y,Y,Y,N,N,Y) SOLUTN(LTLS,Y,Y,Y,N,N,Y) SOLUTN(WDIS,Y,N,N,N,N,N) SOLUTN(EPST,Y,N,N,N,N,Y) SOLUTN(ENUL,Y,N,N,N,N,Y) SOLUTN(STRZ,Y,N,N,N,N,Y) SOLUTN(STRY,Y,N,N,N,N,Y) SOLUTN(STRX,Y,N,N,N,N,Y) SOLUTN(EPSZ,Y,N,N,N,N,Y) SOLUTN(EPSY,Y,N,N,N,N,Y) SOLUTN(EPSX,Y,N,N,N,N,Y) SOLUTN(KOND,Y,N,N,N,N,Y) SOLUTN(ENUT,Y,N,N,N,N,Y) SOLUTN(DVO1,Y,N,N,N,N,Y) SOLUTN(DRH1,Y,N,N,N,N,Y) SOLUTN(RHO1,Y,N,N,N,N,Y) SOLUTN(PRPS,Y,N,N,N,N,Y) SOLUTN(TEM1,Y,Y,Y,N,N,Y) DEN1 = 148 VISL = 137 VIST = 145 PRPS = 149 ************************************************************ Group 8. Terms & Devices * Y in TERMS argument list denotes: * 1-built-in source 2-convection 3-diffusion 4-transient * 5-first phase variable 6-interphase transport TERMS(P1,Y,Y,Y,N,Y,Y) TERMS(U1,Y,Y,Y,Y,Y,Y) TERMS(V1,Y,Y,Y,Y,Y,Y) TERMS(W1,Y,Y,Y,Y,Y,Y) TERMS(LTLS,N,N,Y,N,Y,Y) TERMS(TEM1,N,Y,Y,Y,Y,Y) DIFCUT =0.5 ;ZDIFAC =1. GALA = F ;ADDDIF = F NEWENT = T ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1 ************************************************************ Group 9. Properties used if PRPS is not stored, and where PRPS = -1.0 if it is! RHO1 =1. ;TMP1 =0. ;EL1 = GRND1 TSURR =0. ;TEMP0 =0. ;PRESS0 =0. DVO1DT =0. ;DRH1DP =0. EMISS =0. ;SCATT =0. RADIA =0. ;RADIB =0. EL1A =0. ;EL1B =1. ;EL1C =0. ENUL =1.0E-05 ;ENUT = GRND8 ENUTA =0. ;ENUTB =0. ;ENUTC =0. IENUTA = 0 PRNDTL(U1)=1. ;PRNDTL(V1)=1. PRNDTL(W1)=1. ;PRNDTL(LTLS)=1. PRNDTL(TEM1)=1. PRT(U1)=1. ;PRT(V1)=1. PRT(W1)=1. ;PRT(LTLS)=1. PRT(TEM1)=1. CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=0. ;FIINIT(U1)=0. FIINIT(V1)=0. ;FIINIT(W1)=0. FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=8.1E-03 FIINIT(EPST)=1.0E-10 ;FIINIT(ENUL)=1.0E-10 FIINIT(STRZ)=1.0E-10 ;FIINIT(STRY)=1.0E-10 FIINIT(STRX)=1.0E-10 ;FIINIT(EPSZ)=1.0E-10 FIINIT(EPSY)=1.0E-10 ;FIINIT(EPSX)=1.0E-10 FIINIT(KOND)=1.0E-10 ;FIINIT(ENUT)=1.0E-10 FIINIT(DVO1)=1.0E-10 ;FIINIT(DRH1)=0. FIINIT(RHO1)=1.0E-10 ;FIINIT(PRPS)=-1. FIINIT(TEM1)=1.0E-10 PATCH(OUTERAIR,INIVAL, 1, 12, 41, 41, 1, 12, 1, 1) INIT(OUTERAIR,P1 ,0. ,1. ) INIT(OUTERAIR,U1 ,0. ,0. ) INIT(OUTERAIR,V1 ,0. ,0. ) INIT(OUTERAIR,W1 ,0. ,0. ) INIT(OUTERAIR,PRPS,0. ,0. ) PATCH(OUTERSUR,INIVAL, 1, 12, 40, 40, 1, 12, 1, 1) INIT(OUTERSUR,TEM1,1.0E+06 ,20. ) PATCH(TUBE ,INIVAL, 1, 12, 1, 10, 1, 12, 1, 1) INIT(TUBE ,P1 ,0. ,1.0E+07 ) INIT(TUBE ,U1 ,0. ,0. ) INIT(TUBE ,V1 ,0. ,0. ) INIT(TUBE ,W1 ,0. ,1. ) INIT(TUBE ,RHO1,0. ,998.22998 ) INIT(TUBE ,PRPS,0. ,67. ) INIT(TUBE ,TEM1,0. ,20. ) PATCH(INNERSOL,INIVAL, 1, 12, 11, 20, 1, 12, 1, 1) INIT(INNERSOL,RHO1,0. ,2700. ) INIT(INNERSOL,PRPS,0. ,100. ) INIT(INNERSOL,TEM1,0. ,20. ) PATCH(SHELL ,INIVAL, 1, 12, 21, 30, 1, 12, 1, 1) INIT(SHELL ,P1 ,0. ,1.0E+06 ) INIT(SHELL ,U1 ,0. ,0. ) INIT(SHELL ,V1 ,0. ,0. ) INIT(SHELL ,W1 ,0. ,-1. ) INIT(SHELL ,RHO1,0. ,1.353E+04 ) INIT(SHELL ,PRPS,0. ,66. ) INIT(SHELL ,TEM1,0. ,80. ) PATCH(OUTERSOL,INIVAL, 1, 12, 31, 40, 1, 12, 1, 1) INIT(OUTERSOL,RHO1,0. ,2700. ) INIT(OUTERSOL,PRPS,0. ,100. ) INIT(OUTERSOL,TEM1,0. ,20. ) INIADD = F FSWEEP = 1 NAMFI =CHAM ************************************************************ Group 12. Patchwise adjustment of terms Patches for this group are printed with those for Group 13. Their names begin either with GP12 or & ************************************************************ Group 13. Boundary & Special Sources PATCH(OUTSIDE ,NORTH , 1, 12, 41, 41, 1, 12, 1, 1) COVAL(OUTSIDE ,P1 , FIXVAL ,1. ) COVAL(OUTSIDE ,U1 , FIXVAL ,0. ) COVAL(OUTSIDE ,V1 , FIXVAL ,0. ) COVAL(OUTSIDE ,W1 , FIXVAL ,0. ) COVAL(OUTSIDE ,TEM1, FIXVAL ,20. ) PATCH(OUTSURF ,NORTH , 1, 12, 40, 40, 1, 12, 1, 1) COVAL(OUTSURF ,TEM1,In-Form:source - see Grp 19) PATCH(TUBEIN ,LOW , 1, 12, 1, 10, 1, 1, 1, 1) COVAL(TUBEIN ,P1 , FIXFLU ,998.22998 ) COVAL(TUBEIN ,W1 ,0. ,1. ) COVAL(TUBEIN ,TEM1,0. ,20. ) PATCH(SHELLIN ,HIGH , 1, 12, 21, 30, 12, 12, 1, 1) COVAL(SHELLIN ,P1 , FIXFLU ,1.353E+04 ) COVAL(SHELLIN ,W1 ,0. ,-1. ) COVAL(SHELLIN ,TEM1,0. ,80. ) PATCH(SHELLOU ,LOW , 1, 12, 21, 30, 1, 1, 1, 1) COVAL(SHELLOU ,P1 ,1000. ,1.0E+06 ) PATCH(BEGTUBE ,WWALL , 1, 1, 1, 10, 1, 12, 1, 1) COVAL(BEGTUBE ,U1 ,1. ,0. ) PATCH(ENDTUBE ,NWALL , 11, 11, 1, 10, 1, 12, 1, 1) COVAL(ENDTUBE ,U1 ,1. ,0. ) PATCH(BEGSHELL,WWALL , 1, 1, 21, 30, 1, 12, 1, 1) COVAL(BEGSHELL,U1 ,1. ,0. ) PATCH(ENDSHELL,NWALL , 11, 11, 21, 30, 1, 12, 1, 1) COVAL(ENDSHELL,U1 ,1. ,0. ) PATCH(LOZENDIN,CELL , 1, 12, 11, 20, 1, 1, 1, 1) COVAL(LOZENDIN,U1 ,1.0E+06 ,0. ) COVAL(LOZENDIN,W1 ,1.0E+06 ,0. ) PATCH(HIZENDIN,CELL , 1, 12, 11, 20, 11, 11, 1, 1) COVAL(HIZENDIN,U1 ,1.0E+06 ,0. ) COVAL(HIZENDIN,W1 ,1.0E+06 ,0. ) PATCH(XBEGIN ,CELL , 1, 1, 11, 20, 1, 12, 1, 1) COVAL(XBEGIN ,U1 ,1.0E+06 ,0. ) PATCH(XENDIN ,CELL , 11, 11, 11, 20, 1, 12, 1, 1) COVAL(XENDIN ,U1 ,1.0E+06 ,0. ) PATCH(LOZENDOU,CELL , 1, 12, 31, 40, 1, 1, 1, 1) COVAL(LOZENDOU,U1 ,1.0E+06 ,0. ) COVAL(LOZENDOU,W1 ,1.0E+06 ,0. ) PATCH(HIZENDOU,CELL , 1, 12, 31, 40, 11, 11, 1, 1) COVAL(HIZENDOU,U1 ,1.0E+06 ,0. ) COVAL(HIZENDOU,W1 ,1.0E+06 ,0. ) PATCH(XBEGOU ,CELL , 1, 1, 31, 40, 1, 12, 1, 1) COVAL(XBEGOU ,U1 ,1.0E+06 ,0. ) PATCH(XENDOU ,CELL , 11, 11, 31, 40, 1, 12, 1, 1) COVAL(XENDOU ,U1 ,1.0E+06 ,0. ) PATCH(BUOYTU ,PHASEM, 1, 12, 1, 10, 1, 12, 1, 1) COVAL(BUOYTU ,U1 , FIXFLU , GRND3 ) COVAL(BUOYTU ,V1 , FIXFLU , GRND3 ) PATCH(BUOYSH ,PHASEM, 1, 12, 21, 30, 1, 12, 1, 1) COVAL(BUOYSH ,U1 , FIXFLU , GRND3 ) COVAL(BUOYSH ,V1 , FIXFLU , GRND3 ) XCYCLE = F EGWF = T WALLCO = GRND2 BUOYA =0. ; BUOYB =-9.81E-04 ; BUOYC =0. ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 200 ;ISWC1 = 1 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1 SELREF = T RESFAC =0. ************************************************************ Group 16. Terminate Iterations LITER(P1)=100 ;LITER(U1)=10 LITER(V1)=10 ;LITER(W1)=10 LITER(LTLS)=20 ;LITER(TEM1)=100 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03 ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03 ENDIT(LTLS)=1.0E-03 ;ENDIT(TEM1)=1.0E-03 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,1.) RELAX(U1,FALSDT,1.0E-02) RELAX(V1,FALSDT,1.0E-02) RELAX(W1,FALSDT,1.0E-02) RELAX(LTLS,FALSDT,1.0E+09) RELAX(WDIS,LINRLX,1.) RELAX(EPST,LINRLX,1.) RELAX(ENUL,LINRLX,1.) RELAX(STRZ,LINRLX,1.) RELAX(STRY,LINRLX,1.) RELAX(STRX,LINRLX,1.) RELAX(EPSZ,LINRLX,1.) RELAX(EPSY,LINRLX,1.) RELAX(EPSX,LINRLX,1.) RELAX(KOND,LINRLX,1.) RELAX(ENUT,LINRLX,1.) RELAX(DVO1,LINRLX,1.) RELAX(DRH1,LINRLX,1.) RELAX(RHO1,LINRLX,1.) RELAX(PRPS,LINRLX,1.) RELAX(TEM1,FALSDT,1.0E+09) OVRRLX =0. EXPERT = F ;NNORSL = F ************************************************************ Group 18. Limits VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06 VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10 VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10 VARMAX(EPST)=1.0E+10 ;VARMIN(EPST)=-1.0E+10 VARMAX(ENUL)=1.0E+10 ;VARMIN(ENUL)=-1.0E+10 VARMAX(STRZ)=1.0E+10 ;VARMIN(STRZ)=-1.0E+10 VARMAX(STRY)=1.0E+10 ;VARMIN(STRY)=-1.0E+10 VARMAX(STRX)=1.0E+10 ;VARMIN(STRX)=-1.0E+10 VARMAX(EPSZ)=1.0E+10 ;VARMIN(EPSZ)=-1.0E+10 VARMAX(EPSY)=1.0E+10 ;VARMIN(EPSY)=-1.0E+10 VARMAX(EPSX)=1.0E+10 ;VARMIN(EPSX)=-1.0E+10 VARMAX(KOND)=1.0E+10 ;VARMIN(KOND)=-1.0E+10 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10 VARMAX(DVO1)=1.0E+10 ;VARMIN(DVO1)=-1.0E+10 VARMAX(DRH1)=1.0E+10 ;VARMIN(DRH1)=-1.0E+10 VARMAX(RHO1)=1.0E+10 ;VARMIN(RHO1)=-1.0E+10 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10 VARMAX(TEM1)=123. ;VARMIN(TEM1)=-0.123 ************************************************************ Group 19. Data transmitted to GROUND GENK = T STRA = T PARSOL = F ISKINA = 5 ;ISKINB = 4 ISG21 = 200 ISG50 = 1 ISG52 = 2 ISG62 = 1 SPEDAT(SET,SOURCE,TEM1!OUTSURF,C,=COVAL(2.0E+10&40)) SPEDAT(SET,GXMONI,PLOTALL,L,T) SPEDAT(SET,MATERIAL,0,L,T) SPEDAT(SET,MATERIAL,67,L,T) SPEDAT(SET,MATERIAL,100,L,T) SPEDAT(SET,MATERIAL,66,L,T) ************************************************************ Group 20. Preliminary Printout ************************************************************ Group 21. Print-out of Variables INIFLD = F ;SUBWGR = F * Y in OUTPUT argument list denotes: * 1-field 2-correction-eq. monitor 3-selective dumping * 4-whole-field residual 5-spot-value table 6-residual table OUTPUT(P1,Y,N,Y,Y,Y,Y) OUTPUT(U1,Y,N,Y,Y,Y,Y) OUTPUT(V1,Y,N,Y,Y,Y,Y) OUTPUT(W1,Y,N,Y,Y,Y,Y) OUTPUT(LTLS,Y,N,Y,Y,Y,Y) OUTPUT(WDIS,Y,N,Y,N,N,N) OUTPUT(EPST,Y,N,Y,N,N,N) OUTPUT(ENUL,Y,N,Y,N,N,N) OUTPUT(STRZ,Y,N,Y,N,N,N) OUTPUT(STRY,Y,N,Y,N,N,N) OUTPUT(STRX,Y,N,Y,N,N,N) OUTPUT(EPSZ,Y,N,Y,N,N,N) OUTPUT(EPSY,Y,N,Y,N,N,N) OUTPUT(EPSX,Y,N,Y,N,N,N) OUTPUT(KOND,Y,N,Y,N,N,N) OUTPUT(ENUT,Y,N,Y,N,N,N) OUTPUT(DVO1,Y,N,Y,N,N,N) OUTPUT(DRH1,Y,N,Y,N,N,N) OUTPUT(RHO1,Y,N,Y,N,N,N) OUTPUT(PRPS,Y,N,Y,N,N,N) OUTPUT(TEM1,Y,N,Y,Y,Y,Y) ************************************************************ Group 22. Monitor Print-Out IXMON = 1 ;IYMON = 1 ;IZMON = 1 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1 UWATCH = T ;USTEER = T HIGHLO = F ************************************************************ Group 23.Field Print-Out & Plot Control NPRINT = 100000 ;NUMCLS = 5 NXPRIN = 3 ;IXPRF = 1 ;IXPRL = 10000 NYPRIN = 1 ;IYPRF = 1 ;IYPRL = 10000 NZPRIN = 3 ;IZPRF = 1 ;IZPRL = 10000 XZPR = F ;YZPR = T IPLTF = 1 ;IPLTL = -1 ;NPLT = -1 ISWPRF = 1 ;ISWPRL = 100000 ITABL = 3 ;IPROF = 1 ABSIZ =0.5 ;ORSIZ =0.4 NTZPRF = 1 ;NCOLPF = 50 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20 No PATCHes yet used for this Group ************************************************************ Group 24. Dumps For Restarts SAVE = T ;NOWIPE = F NSAVE =CHAM STOP