Télécharger pressuw.dgibi

Retour à la liste

Numérotation des lignes :

  1. * fichier : pressuw.dgibi
  2. *
  3. * Containment pressurization (Phebus size)
  4. *
  5. * 3D mesh of a 14.5 m3 cylindrical containment with a 10cm in depth vertical wall.
  6. * Initial pressure and temperature are 1bar and 40oC with the wall at 60oC.
  7. * Steam is injected at a constant 50g/s mass flow rate and a temperature of 150oC.
  8. *
  9. * Transient is computed for 50s. We check the pressure, the averaged temperature,
  10. * the velocity ans the condensation mass flow rate (that starts at 20s) evolutions.
  11. *
  12. * This test case is similar as pressu2.dgibi except for the wall : it is
  13. * splitted in two pieces to illustrate how to define several layers by
  14. * using the rxt . 'PAROIS' data structure.
  15. *
  16. * Auteurs : E. Studer, J.P. Magnaud Novembre 1999
  17. *
  18. 'OPTI' 'DIME' 3 'ELEM' 'CU20' 'TRAC' 'PSC' ;
  19. 'DENS' 1. ;
  20. *
  21. COMPLET = FAUX ;
  22. GRAPH = faux ;
  23. 'SI' COMPLET ;
  24. nbit = 100 ;
  25. DT0 = 1. ;
  26. n1 = 1 ;
  27. n2 = 4 ;
  28. n3 = 4 ;
  29. nn = 2 ;
  30. 'SINO' ;
  31. nbit = 5 ;
  32. DT0 = 10. ;
  33. n1 = 1 ;
  34. n2 = 2 ;
  35. n3 = 2 ;
  36. nn = 1 ;
  37. 'FINS' ;
  38. epsi = 1.D-2 ;
  39. *
  40. *
  41. * Mesh
  42. *
  43. *
  44. * ri=cavity radius, h1=cavity height, sp=wall depth,
  45. * fg1=break to cavity radius ratio
  46. ri = 1.052 ;
  47. h1 = 4.163 ;
  48. sp = 0.05 ;
  49. fg1 = 0.25 ;
  50. fg2 = fg1 * (2.0 ** 0.5) / 2. ;
  51. *
  52. p0 = 0.000 0.000 0.000 ;
  53. p1 = (ri*fg1) 0.000 0.000 ;
  54. p2 = (ri*fg2) (ri*fg2) 0.000 ;
  55. p3 = 0.000 (ri*fg1) 0.000 ;
  56. p4 = ri 0.000 0.000 ;
  57. p5 = 0.000 ri 0.000 ;
  58. p6 = (ri+sp) 0.000 0.000 ;
  59. p7 = 0.000 (ri+sp) 0.000 ;
  60. p8 = (ri+sp+sp) 0.000 0.000 ;
  61. p9 = 0.000 (ri+sp+sp) 0.000 ;
  62. *
  63. * Fluid and structure basement surfaces
  64. * (built by symetry)
  65. l1 = 'DROI' p0 p1 n1 ;
  66. l2 = 'DROI' p1 p2 n1 ;
  67. l3 = 'DROI' p2 p3 n1 ;
  68. l4 = 'DROI' p3 p0 n1 ;
  69. l5 = 'CERC' p4 p0 p5 (2*n1) ;
  70. l6 = 'CERC' p6 p0 p7 (2*n1) ;
  71. l7 = 'CERC' p8 p0 p9 (2*n1) ;
  72. basf0 = 'DALL' l1 l2 l3 l4 'PLAN' ;
  73. basf1 = ('REGL' (l2 'ET' l3) l5 n2) ;
  74. *
  75. l44 = 'COTE' 2 basf1;
  76. ax4 = ('INVE' l4) 'ET' l44 ;
  77. l11 = 'COTE' 4 basf1;
  78. ax1 = l11 'ET' ('INVE' l1) ;
  79. basf = basf0 'ET' ('REGL' (l2 'ET' l3) l5 n2) ;
  80. 'ELIM' basf epsi ;
  81. basf = basf 'ET' ('SYME' basf 'DROI' p0 p3) ;
  82. ax11 = ('SYME' ax1 'DROI' p0 p3) 'ET' ('INVE' ax1) ;
  83. 'ELIM' basf epsi ;
  84. basf = basf 'ET' ('SYME' basf 'DROI' p0 p1) ;
  85. ax44 = ('INVE' ax4) 'ET' ('SYME' ax4 'DROI' p0 p4) ;
  86. 'ELIM' basf epsi ;
  87. basm1 = 'REGL' l5 l6 n3 ;
  88. basm1 = basm1 'ET' ('SYME' basm1 'DROI' p0 p3) ;
  89. 'ELIM' basm1 epsi ;
  90. basm1 = basm1 'ET' ('SYME' basm1 'DROI' p0 p1) ;
  91. 'ELIM' basm1 epsi ;
  92. basm2 = 'REGL' l6 l7 n3 ;
  93. basm2 = basm2 'ET' ('SYME' basm2 'DROI' p0 p3) ;
  94. 'ELIM' basm2 epsi ;
  95. basm2 = basm2 'ET' ('SYME' basm2 'DROI' p0 p1) ;
  96. 'ELIM' (basm1 'ET' basm2) epsi ;
  97. *
  98. * Fluid and structure volumes
  99. * (built by translation)
  100. nz1 = ('ENTI' (h1 '/' (ri '/' 2.))) '*' nn ;
  101. v1 = 0. 0. h1 ;
  102. mt = basf 'VOLU' nz1 'TRAN' v1 ;
  103. wall1 = (basm1 'VOLU' nz1 'TRAN' v1) 'COUL' 'ROUG' ;
  104. wall2 = (basm2 'VOLU' nz1 'TRAN' v1) 'COUL' 'VERT' ;
  105. plan1 = ax11 'TRAN' nz1 v1 ;
  106. plan4 = ax44 'TRAN' nz1 v1 ;
  107. 'ELIM' (mt et wall1 'ET' wall2 'ET' plan1 'ET' plan4) epsi ;
  108. *
  109. * Break at the basement if any
  110. pjg = 'POIN' basf 'PROC' (0. 0. 0.) ;
  111. breche = ('ELEM' basf 'APPUIE' 'LARGEMENT' pjg) 'COUL' 'VERT' ;
  112. *
  113. *
  114. * Data for execrxt.procedur
  115. *
  116. *
  117. rxt = 'TABLE' ;
  118. rxt . 'VERSION' = 'V0' ;
  119. rxt . 'vtf' = mt ;
  120. rxt . 'epsi' = epsi ;
  121. rxt . 'pi' = 0. 0. 0.5 ;
  122. *
  123. rxt . 'DISCR' = 'MACRO';
  124. rxt . 'KPRE' = 'CENTRE';
  125. rxt . 'DT0' = DT0 ;
  126. *
  127. rxt . 'MODTURB' = 'NUTURB' ;
  128. rxt . 'NUT' = 1.D-2 ;
  129. *
  130. rxt . 'ECHAN' = 10. ;
  131. rxt . 'PAROIS' = table ;
  132. rxt . 'PAROIS' . 'Peinture' = table ;
  133. rxt . 'PAROIS' . 'Peinture' . 'vtp' = wall1 ;
  134. rxt . 'PAROIS' . 'Peinture' . 'LAMBDA' = 15. ;
  135. rxt . 'PAROIS' . 'Peinture' . 'ROCP' = 3.9E6 ;
  136. rxt . 'PAROIS' . 'Peinture' . 'Tp0' = 60. ;
  137. rxt . 'PAROIS' . 'Acier' = table ;
  138. rxt . 'PAROIS' . 'Acier' . 'vtp' = wall2 ;
  139. rxt . 'PAROIS' . 'Acier' . 'LAMBDA' = 15. ;
  140. rxt . 'PAROIS' . 'Acier' . 'ROCP' = 3.9E6 ;
  141. rxt . 'PAROIS' . 'Acier' . 'Tp0' = 60. ;
  142. *
  143. rxt . 'VAPEUR' = VRAI ;
  144. rxt . 'TF0' = 40.0 ;
  145. rxt . 'PT0' = 1.0e5 ;
  146. rxt . 'Yvap0' = 0.0023 ;
  147. *
  148. rxt . 'Breches' = 'TABLE' ;
  149. rxt . 'Breches' . 'A' = 'TABLE' ;
  150. rxt . 'Breches' . 'A' . 'scenario' = 'TABLE' ;
  151. rxt . 'Breches' . 'A' . 'Maillage' = breche ;
  152. rxt . 'Breches' . 'A' . 'diru' = (0. 0. 1.) ;
  153. rxt . 'Breches' . 'A' . 'scenario' . 't' = 'PROG' 0.0 1000.0 ;
  154. rxt . 'Breches' . 'A' . 'scenario' . 'qeau' = 'PROG' 0.050 0.050 ;
  155. rxt . 'Breches' . 'A' . 'scenario' . 'qair' = 'PROG' 0.000 0.000 ;
  156. rxt . 'Breches' . 'A' . 'scenario' . 'tinj' = 'PROG' 150.0 150.0 ;
  157. *
  158. rxt . 'GRAPH' = GRAPH ;
  159. rxt . 'DETMAT' = VRAI ;
  160. rxt . 'FRPREC' = 5 ;
  161. rxt . 'RENU' = 'RIEN' ;
  162. *
  163. *
  164. * Transient (with restart after 2 time steps)
  165. *
  166. *
  167. EXECRXT 2 rxt ;
  168. EXECRXT (nbit - 2) rxt ;
  169. *
  170. *
  171. * Tests
  172. *
  173. *
  174. 'SI' ('NON' COMPLET) ;
  175. ERR1 = 0 ;
  176. 'LIST' rxt.TIC.'Tfm' ;
  177. 'LIST' rxt.TIC.'PT' ;
  178. 'LIST' rxt.TIC.'Qc' ;
  179. 'LIST' rxt.TIC.'LMAXU';
  180.  
  181. ltfm = 'PROG'
  182. *40.000 65.434 73.712 81.158 86.814 90.738 ;
  183. 40.000 65.434 73.712 81.158 86.809 90.721 ;
  184.  
  185. lPT = 'PROG'
  186. *1.00000E+05 1.06009E+05 1.21199E+05 1.29592E+05 1.36462E+05 1.43998E+05;
  187. 1.00000E+05 1.06009E+05 1.21199E+05 1.29592E+05 1.36461E+05 1.43987E+05;
  188.  
  189. Lqc = 'PROG'
  190. *0.0000 0.0000 0.0000 3.81471E-04 2.57962E-03 4.78997E-03 ;
  191. 0.0000 0.0000 0.0000 4.06133E-04 2.65247E-03 4.88852E-03 ;
  192.  
  193. Lmaxu = 'PROG'
  194. *0.0000 0.81320 2.0813 2.6901 2.2350 2.5277 ;
  195. 0.0000 0.81320 2.0813 2.6901 2.2350 2.5277 ;
  196.  
  197. tic = rxt . 'TIC' ;
  198. ERtf = 'SOMM' ('ABS'(ltfm - tic . 'Tfm')) '/' 80. ;
  199. ERPT = 'SOMM' ('ABS'(lPT - tic . 'PT' )) '/' 1.e5 ;
  200. ERQc = 'SOMM' ('ABS'(lqc - tic . 'Qc' )) ;
  201. ERum = 'SOMM' ('ABS'(Lmaxu - tic . 'LMAXU')) '/' 2. ;
  202. 'MESS' 'ERtf=' ERtf 'ERPT=' ERPT 'ERQc=' ERQc 'ERum=' ERum ;
  203. 'SI' (ERtf '>' 1.e-4) ; err1 = err1 '+' 1 ; 'FINS' ;
  204. 'SI' (ERPT '>' 1.e-3) ; err1 = err1 '+' 1 ; 'FINS' ;
  205. 'SI' (ERQc '>' 1.e-4) ; err1 = err1 '+' 1 ; 'FINS' ;
  206. 'SI' (ERum '>' 1.e-2) ; err1 = err1 '+' 1 ; 'FINS' ;
  207. 'SI' ('NEG' ERR1 0) ;
  208. 'ERRE' 5 ;
  209. 'FINS' ;
  210. 'FINS' ;
  211. *
  212. *
  213. * Plots devoted to pressu... cases
  214. *
  215. *
  216. 'SI' GRAPH ;
  217. tbt = rxt . 'TBT' ;
  218. tic = rxt . 'TIC' ;
  219. *
  220. $vtf = rxt . 'GEO' . '$vtf' ;
  221. vtf = 'DOMA' $vtf 'MAILLAGE' ;
  222. *
  223. Mpl1 = 'CHAN' 'QUAF' plan1 ;
  224. Mpl4 = 'CHAN' 'QUAF' plan4 ;
  225. 'ELIM' (vtf 'ET' Mpl1 'ET' Mpl4) epsi ;
  226. $mpl1 = 'MODE' Mpl1 'NAVIER_STOKES' 'MACRO' ;
  227. $mpl4 = 'MODE' Mpl4 'NAVIER_STOKES' 'MACRO' ;
  228. plan1 = 'DOMA' $mpl1 'MAILLAGE' ;
  229. plan4 = 'DOMA' $mpl4 'MAILLAGE' ;
  230. plan = plan1 'ET' plan4 ;
  231. cplan = 'CONT' plan ;
  232. *
  233. 'SI' ('EXIS' tic 'TP') ;
  234. $vtp = rxt . 'GEO' . '$vtp' ;
  235. vtp = 'DOMA' $vtp 'MAILLAGE' ;
  236. 'FINS' ;
  237. paroif = rxt . 'GEO' . 'paroif';
  238. cparoif = 'CONT' paroif ;
  239. *
  240. axe = p0 d nz1 (p0 plus v1) ;
  241. axe = 'CHAN' axe 'QUAF' ;
  242. 'ELIM' (axe 'ET' mt) epsi ;
  243. *
  244. un = tic . 'UN';
  245. unp = 'REDU' un plan ;
  246. ung = 'VECT' un 0.5 'UX' 'UY' 'UZ' 'JAUN' ;
  247. ungp = 'VECT' unp 0.5 'UX' 'UY' 'UZ' 'JAUN' ;
  248. tf = tic . 'TF' ;
  249. rho = tic . 'RHO' ;
  250. rair = tic . 'RAIR' ;
  251. 'SI' tbt . 'THE' ; rhe = tic . 'RHE' ; 'FINS' ;
  252. 'SI' tbt . 'TH2' ; rh2 = tic . 'RH2' ; 'FINS' ;
  253. 'SI' tbt . 'TCO' ; rco = tic . 'RCO' ; 'FINS' ;
  254. 'SI' tbt . 'TCO2' ; rco2 = tic . 'RCO2' ; 'FINS' ;
  255. 'SI' tbt . 'VAPEUR' ; rvp = tic . 'RVP' ; 'FINS' ;
  256. *
  257. evauz = 'EVOL' 'CHPO' ('EXCO' un 'UZ') axe ;
  258. 'DESS' evauz
  259. 'TITR' 'Velocity with the z axis' 'MIMA'
  260. 'GRIL' 'POIN' 'GRIS' 'TITX' 'z' 'TITY' ' m/s' ;
  261. 'TRAC' ung plan ('CONT' plan) 'TITR' ' Velocity' ;
  262. *
  263. evatf = 'EVOL' 'CHPO' tf axe ;
  264. 'DESS' evatf
  265. 'TITR' 'Gas temperature with the z axis' 'MIMA'
  266. 'GRIL' 'POIN' 'GRIS' 'TITX' 'z' 'TITY' ' C' ;
  267. 'TRAC' tf plan cplan 'TITR' ' Temperature' ;
  268. 'TRAC' tf paroif cparoif 'TITR' ' Temperature' ;
  269. *
  270. evarh = 'EVOL' 'CHPO' rho axe ;
  271. 'DESS' evarh
  272. 'TITR' 'Gas density with the z axis' 'MIMA'
  273. 'GRIL' 'POIN' 'GRIS' 'TITX' 'z' 'TITY' ' kg/m3' ;
  274. 'TRAC' rho plan ('CONT' plan) ungp 'TITR' ' Density & velocity' ;
  275. 'TRAC' rho paroif cparoif 'TITR' ' Density' ;
  276. *
  277. evavap = 'EVOL' 'CHPO' rvp axe ;
  278. 'DESS' evavap
  279. 'TITR' 'Steam density with the z axis' 'MIMA'
  280. 'GRIL' 'POIN' 'GRIS' 'TITX' 'z' 'TITY' ' kg/m3' ;
  281. 'TRAC' rvp plan cplan 'TITR' ' Steam density' ;
  282. *
  283. Fcond = rxt . 'TIC' . 'Fcondw';
  284. 'TRAC' fcond paroif cparoif 'TITR' ' Fcond kg/m**2' ;
  285. *
  286. * Wall temperature
  287. 'SI' ('EXIS' tic 'TP') ;
  288. 'TRAC' tic . 'TP' vtp 'TITR' ' Wall temperature' ;
  289. 'FINS' ;
  290. 'FINSI' ;
  291.  
  292. 'FIN' ;
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  

© Cast3M 2003 - Tous droits réservés.
Mentions légales