Télécharger pressu2.dgibi

Retour à la liste

Numérotation des lignes :

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

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