PYroMat 2.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1010) hide show
  1. PYroMat-2.2.5.dist-info/LICENSE.txt +644 -0
  2. PYroMat-2.2.5.dist-info/METADATA +94 -0
  3. PYroMat-2.2.5.dist-info/RECORD +1010 -0
  4. PYroMat-2.2.5.dist-info/WHEEL +5 -0
  5. PYroMat-2.2.5.dist-info/top_level.txt +5 -0
  6. pyromat/__init__.py +395 -0
  7. pyromat/config.py +166 -0
  8. pyromat/dat.py +574 -0
  9. pyromat/data/ig/Al_H.hpd +464 -0
  10. pyromat/data/ig/Al_H_O.hpd +464 -0
  11. pyromat/data/ig/Al_H_O2.hpd +446 -0
  12. pyromat/data/ig/Al_H_O_1.hpd +482 -0
  13. pyromat/data/ig/B10_H14.hpd +362 -0
  14. pyromat/data/ig/B2_Be_O4.hpd +464 -0
  15. pyromat/data/ig/B2_Cl4.hpd +446 -0
  16. pyromat/data/ig/B2_F4.hpd +466 -0
  17. pyromat/data/ig/B2_F4_O.hpd +465 -0
  18. pyromat/data/ig/B2_H4_O4.hpd +465 -0
  19. pyromat/data/ig/B3_F2_H_O3.hpd +466 -0
  20. pyromat/data/ig/B3_F_H2_O3.hpd +466 -0
  21. pyromat/data/ig/B3_H3_O3.hpd +464 -0
  22. pyromat/data/ig/B3_H3_O6.hpd +465 -0
  23. pyromat/data/ig/B5_H9.hpd +358 -0
  24. pyromat/data/ig/B_Br.hpd +446 -0
  25. pyromat/data/ig/B_Br2.hpd +446 -0
  26. pyromat/data/ig/B_Br2_Cl.hpd +446 -0
  27. pyromat/data/ig/B_Br2_F.hpd +464 -0
  28. pyromat/data/ig/B_Br2_H.hpd +465 -0
  29. pyromat/data/ig/B_Br3.hpd +390 -0
  30. pyromat/data/ig/B_Br_Cl.hpd +447 -0
  31. pyromat/data/ig/B_Br_Cl2.hpd +464 -0
  32. pyromat/data/ig/B_Br_F.hpd +465 -0
  33. pyromat/data/ig/B_Br_F2.hpd +464 -0
  34. pyromat/data/ig/B_Br_O.hpd +465 -0
  35. pyromat/data/ig/B_Cl2_F.hpd +465 -0
  36. pyromat/data/ig/B_Cl2_H.hpd +466 -0
  37. pyromat/data/ig/B_Cl_F2.hpd +465 -0
  38. pyromat/data/ig/B_F2_H.hpd +465 -0
  39. pyromat/data/ig/B_F2_H_O.hpd +466 -0
  40. pyromat/data/ig/B_F4_K.hpd +356 -0
  41. pyromat/data/ig/B_H.hpd +464 -0
  42. pyromat/data/ig/B_H2.hpd +463 -0
  43. pyromat/data/ig/B_H2_O2.hpd +465 -0
  44. pyromat/data/ig/B_H3.hpd +464 -0
  45. pyromat/data/ig/B_H3_O3.hpd +494 -0
  46. pyromat/data/ig/B_H_O.hpd +465 -0
  47. pyromat/data/ig/B_H_O2.hpd +464 -0
  48. pyromat/data/ig/B_H_S.hpd +464 -0
  49. pyromat/data/ig/B_I.hpd +446 -0
  50. pyromat/data/ig/B_I2.hpd +446 -0
  51. pyromat/data/ig/B_I3.hpd +449 -0
  52. pyromat/data/ig/Ba_H2_O2.hpd +322 -0
  53. pyromat/data/ig/Ba_H_O.hpd +447 -0
  54. pyromat/data/ig/Ba_I.hpd +445 -0
  55. pyromat/data/ig/Ba_I2.hpd +263 -0
  56. pyromat/data/ig/Be2.hpd +445 -0
  57. pyromat/data/ig/Be2_Cl4.hpd +445 -0
  58. pyromat/data/ig/Be_F3_Li.hpd +320 -0
  59. pyromat/data/ig/Be_H.hpd +464 -0
  60. pyromat/data/ig/Be_H2_O2.hpd +464 -0
  61. pyromat/data/ig/Be_H_O.hpd +465 -0
  62. pyromat/data/ig/Br2_Fe.hpd +319 -0
  63. pyromat/data/ig/Br2_H2_Si.hpd +465 -0
  64. pyromat/data/ig/Br2_K2.hpd +445 -0
  65. pyromat/data/ig/Br2_Li2.hpd +445 -0
  66. pyromat/data/ig/Br2_Mo.hpd +463 -0
  67. pyromat/data/ig/Br2_Na2.hpd +445 -0
  68. pyromat/data/ig/Br2_Sr.hpd +249 -0
  69. pyromat/data/ig/Br2_Ti.hpd +463 -0
  70. pyromat/data/ig/Br2_Zr.hpd +319 -0
  71. pyromat/data/ig/Br3_H_Si.hpd +466 -0
  72. pyromat/data/ig/Br3_Mo.hpd +445 -0
  73. pyromat/data/ig/Br3_O_P.hpd +448 -0
  74. pyromat/data/ig/Br3_P.hpd +455 -0
  75. pyromat/data/ig/Br3_P_S.hpd +448 -0
  76. pyromat/data/ig/Br3_Ti.hpd +445 -0
  77. pyromat/data/ig/Br3_Zr.hpd +445 -0
  78. pyromat/data/ig/Br4_Fe2.hpd +445 -0
  79. pyromat/data/ig/Br4_Mg2.hpd +445 -0
  80. pyromat/data/ig/Br4_Mo.hpd +445 -0
  81. pyromat/data/ig/Br4_Ti.hpd +389 -0
  82. pyromat/data/ig/Br4_Zr.hpd +445 -0
  83. pyromat/data/ig/Br5_Nb.hpd +398 -0
  84. pyromat/data/ig/Br5_W.hpd +389 -0
  85. pyromat/data/ig/Br6_W.hpd +445 -0
  86. pyromat/data/ig/Br_Cl.hpd +447 -0
  87. pyromat/data/ig/Br_F.hpd +446 -0
  88. pyromat/data/ig/Br_F3.hpd +445 -0
  89. pyromat/data/ig/Br_F5.hpd +446 -0
  90. pyromat/data/ig/Br_F5_S.hpd +465 -0
  91. pyromat/data/ig/Br_H.hpd +476 -0
  92. pyromat/data/ig/Br_H3_Si.hpd +465 -0
  93. pyromat/data/ig/Br_Hg.hpd +446 -0
  94. pyromat/data/ig/Br_I.hpd +465 -0
  95. pyromat/data/ig/Br_K.hpd +285 -0
  96. pyromat/data/ig/Br_Li.hpd +320 -0
  97. pyromat/data/ig/Br_Mo.hpd +463 -0
  98. pyromat/data/ig/Br_N.hpd +445 -0
  99. pyromat/data/ig/Br_N_O.hpd +465 -0
  100. pyromat/data/ig/Br_P.hpd +446 -0
  101. pyromat/data/ig/Br_Ti.hpd +445 -0
  102. pyromat/data/ig/Br_W.hpd +445 -0
  103. pyromat/data/ig/Br_Zr.hpd +463 -0
  104. pyromat/data/ig/C2_Be.hpd +463 -0
  105. pyromat/data/ig/C2_F3_N.hpd +468 -0
  106. pyromat/data/ig/C2_F6.hpd +476 -0
  107. pyromat/data/ig/C4_Ni_O4.hpd +441 -0
  108. pyromat/data/ig/C_B.hpd +464 -0
  109. pyromat/data/ig/C_Br.hpd +446 -0
  110. pyromat/data/ig/C_Br4.hpd +455 -0
  111. pyromat/data/ig/C_Br_F3.hpd +485 -0
  112. pyromat/data/ig/C_Br_N.hpd +484 -0
  113. pyromat/data/ig/C_F3_I.hpd +472 -0
  114. pyromat/data/ig/C_F4_O.hpd +464 -0
  115. pyromat/data/ig/C_F8_S.hpd +469 -0
  116. pyromat/data/ig/C_H3_Cl3_Si.hpd +147 -0
  117. pyromat/data/ig/C_H3_F3_Si.hpd +138 -0
  118. pyromat/data/ig/C_H_F.hpd +465 -0
  119. pyromat/data/ig/C_H_F_O.hpd +465 -0
  120. pyromat/data/ig/C_H_P.hpd +464 -0
  121. pyromat/data/ig/C_I_N.hpd +465 -0
  122. pyromat/data/ig/C_N2_1.hpd +464 -0
  123. pyromat/data/ig/Ca_H2_O2.hpd +446 -0
  124. pyromat/data/ig/Ca_H_O.hpd +447 -0
  125. pyromat/data/ig/Cl10_W2.hpd +445 -0
  126. pyromat/data/ig/Cl2_Co.hpd +319 -0
  127. pyromat/data/ig/Cl2_F_O_P.hpd +466 -0
  128. pyromat/data/ig/Cl2_H2_Si.hpd +465 -0
  129. pyromat/data/ig/Cl2_Hg.hpd +354 -0
  130. pyromat/data/ig/Cl2_Mo_O2.hpd +446 -0
  131. pyromat/data/ig/Cl2_O2_W.hpd +464 -0
  132. pyromat/data/ig/Cl2_W.hpd +463 -0
  133. pyromat/data/ig/Cl2_Zr.hpd +319 -0
  134. pyromat/data/ig/Cl3_Co.hpd +447 -0
  135. pyromat/data/ig/Cl3_F_Si.hpd +447 -0
  136. pyromat/data/ig/Cl3_H_Si.hpd +466 -0
  137. pyromat/data/ig/Cl3_O_P.hpd +483 -0
  138. pyromat/data/ig/Cl3_P_S.hpd +448 -0
  139. pyromat/data/ig/Cl3_Zr.hpd +463 -0
  140. pyromat/data/ig/Cl4_Co2.hpd +445 -0
  141. pyromat/data/ig/Cl4_Mg2.hpd +445 -0
  142. pyromat/data/ig/Cl4_Mo.hpd +354 -0
  143. pyromat/data/ig/Cl4_O_W.hpd +390 -0
  144. pyromat/data/ig/Cl4_W.hpd +445 -0
  145. pyromat/data/ig/Cl4_Zr.hpd +445 -0
  146. pyromat/data/ig/Cl5_Mo.hpd +375 -0
  147. pyromat/data/ig/Cl5_Nb.hpd +403 -0
  148. pyromat/data/ig/Cl5_P.hpd +446 -0
  149. pyromat/data/ig/Cl5_Ta.hpd +403 -0
  150. pyromat/data/ig/Cl5_W.hpd +354 -0
  151. pyromat/data/ig/Cl6_Mo.hpd +445 -0
  152. pyromat/data/ig/Cl6_W.hpd +354 -0
  153. pyromat/data/ig/Cl_Co.hpd +463 -0
  154. pyromat/data/ig/Cl_F2_O_P.hpd +470 -0
  155. pyromat/data/ig/Cl_F3_Si.hpd +465 -0
  156. pyromat/data/ig/Cl_F5.hpd +464 -0
  157. pyromat/data/ig/Cl_F5_S.hpd +466 -0
  158. pyromat/data/ig/Cl_F_Li2.hpd +464 -0
  159. pyromat/data/ig/Cl_F_O3.hpd +472 -0
  160. pyromat/data/ig/Cl_H.hpd +493 -0
  161. pyromat/data/ig/Cl_H3_Si.hpd +466 -0
  162. pyromat/data/ig/Cl_H_O.hpd +465 -0
  163. pyromat/data/ig/Cl_Hg.hpd +445 -0
  164. pyromat/data/ig/Cl_I.hpd +390 -0
  165. pyromat/data/ig/Cl_Li_O.hpd +465 -0
  166. pyromat/data/ig/Cl_P.hpd +446 -0
  167. pyromat/data/ig/Cl_W.hpd +463 -0
  168. pyromat/data/ig/Cl_Zr.hpd +463 -0
  169. pyromat/data/ig/Co.hpd +242 -0
  170. pyromat/data/ig/Co_F2.hpd +249 -0
  171. pyromat/data/ig/Cs2_H2_O2.hpd +464 -0
  172. pyromat/data/ig/Cs_H_O.hpd +322 -0
  173. pyromat/data/ig/D_H.hpd +464 -0
  174. pyromat/data/ig/D_H_O.hpd +467 -0
  175. pyromat/data/ig/F10_Mo2.hpd +445 -0
  176. pyromat/data/ig/F10_S2.hpd +465 -0
  177. pyromat/data/ig/F15_Mo3.hpd +445 -0
  178. pyromat/data/ig/F2_Fe.hpd +249 -0
  179. pyromat/data/ig/F2_H2_Si.hpd +465 -0
  180. pyromat/data/ig/F2_Hg.hpd +321 -0
  181. pyromat/data/ig/F2_Mo.hpd +445 -0
  182. pyromat/data/ig/F2_N2_1.hpd +469 -0
  183. pyromat/data/ig/F2_O_Si.hpd +465 -0
  184. pyromat/data/ig/F2_O_Ti.hpd +446 -0
  185. pyromat/data/ig/F2_S2_1.hpd +446 -0
  186. pyromat/data/ig/F2_Ti.hpd +463 -0
  187. pyromat/data/ig/F2_Zr.hpd +249 -0
  188. pyromat/data/ig/F3_Fe.hpd +445 -0
  189. pyromat/data/ig/F3_H_Si.hpd +465 -0
  190. pyromat/data/ig/F3_Mo.hpd +445 -0
  191. pyromat/data/ig/F3_O_P.hpd +471 -0
  192. pyromat/data/ig/F3_P_S.hpd +465 -0
  193. pyromat/data/ig/F3_Ti.hpd +445 -0
  194. pyromat/data/ig/F3_Zr.hpd +463 -0
  195. pyromat/data/ig/F4_Mo.hpd +463 -0
  196. pyromat/data/ig/F4_Mo_O.hpd +446 -0
  197. pyromat/data/ig/F4_O_W.hpd +390 -0
  198. pyromat/data/ig/F4_Ti.hpd +447 -0
  199. pyromat/data/ig/F4_Zr.hpd +446 -0
  200. pyromat/data/ig/F5_I.hpd +446 -0
  201. pyromat/data/ig/F5_Mo.hpd +445 -0
  202. pyromat/data/ig/F6_Mo.hpd +394 -0
  203. pyromat/data/ig/F6_W.hpd +396 -0
  204. pyromat/data/ig/F7_I.hpd +447 -0
  205. pyromat/data/ig/F_Fe.hpd +445 -0
  206. pyromat/data/ig/F_H.hpd +464 -0
  207. pyromat/data/ig/F_H3_Si.hpd +466 -0
  208. pyromat/data/ig/F_H_O.hpd +465 -0
  209. pyromat/data/ig/F_H_O3_S.hpd +467 -0
  210. pyromat/data/ig/F_Hg.hpd +445 -0
  211. pyromat/data/ig/F_I.hpd +446 -0
  212. pyromat/data/ig/F_Mo.hpd +463 -0
  213. pyromat/data/ig/F_O_Ti.hpd +464 -0
  214. pyromat/data/ig/F_P_S.hpd +464 -0
  215. pyromat/data/ig/F_Ti.hpd +463 -0
  216. pyromat/data/ig/F_W.hpd +463 -0
  217. pyromat/data/ig/F_Zr.hpd +463 -0
  218. pyromat/data/ig/Fe2_I4.hpd +445 -0
  219. pyromat/data/ig/Fe_H2_O2.hpd +466 -0
  220. pyromat/data/ig/Fe_I2.hpd +319 -0
  221. pyromat/data/ig/Fe_S.hpd +194 -0
  222. pyromat/data/ig/Ga.hpd +291 -0
  223. pyromat/data/ig/H2_Mo_O4.hpd +465 -0
  224. pyromat/data/ig/H2_O4_W.hpd +466 -0
  225. pyromat/data/ig/H2_P.hpd +464 -0
  226. pyromat/data/ig/H_Hg.hpd +463 -0
  227. pyromat/data/ig/H_Pb.hpd +463 -0
  228. pyromat/data/ig/H_Zr.hpd +463 -0
  229. pyromat/data/ig/Hf.hpd +116 -0
  230. pyromat/data/ig/Hg_I.hpd +446 -0
  231. pyromat/data/ig/Hg_I2.hpd +355 -0
  232. pyromat/data/ig/Hg_O.hpd +447 -0
  233. pyromat/data/ig/I2_K2.hpd +446 -0
  234. pyromat/data/ig/I2_Li2.hpd +445 -0
  235. pyromat/data/ig/I2_Mo.hpd +464 -0
  236. pyromat/data/ig/I2_Ti.hpd +463 -0
  237. pyromat/data/ig/I2_Zr.hpd +319 -0
  238. pyromat/data/ig/I3_Mo.hpd +446 -0
  239. pyromat/data/ig/I3_Si.hpd +446 -0
  240. pyromat/data/ig/I3_Ti.hpd +445 -0
  241. pyromat/data/ig/I3_Zr.hpd +445 -0
  242. pyromat/data/ig/I4_Mo.hpd +446 -0
  243. pyromat/data/ig/I4_Si.hpd +410 -0
  244. pyromat/data/ig/I4_Ti.hpd +354 -0
  245. pyromat/data/ig/I4_Zr.hpd +445 -0
  246. pyromat/data/ig/I_K.hpd +285 -0
  247. pyromat/data/ig/I_Li.hpd +285 -0
  248. pyromat/data/ig/I_N_O.hpd +465 -0
  249. pyromat/data/ig/I_Sr.hpd +463 -0
  250. pyromat/data/ig/I_Ti.hpd +463 -0
  251. pyromat/data/ig/I_Zr.hpd +445 -0
  252. pyromat/data/ig/Li_Na_O.hpd +464 -0
  253. pyromat/data/ig/Mn.hpd +298 -0
  254. pyromat/data/ig/Mo.hpd +116 -0
  255. pyromat/data/ig/Mo_O.hpd +447 -0
  256. pyromat/data/ig/Mo_O2.hpd +465 -0
  257. pyromat/data/ig/N_P.hpd +464 -0
  258. pyromat/data/ig/O12_W4.hpd +445 -0
  259. pyromat/data/ig/O2_W.hpd +463 -0
  260. pyromat/data/ig/O3_W.hpd +250 -0
  261. pyromat/data/ig/O6_P4.hpd +463 -0
  262. pyromat/data/ig/O6_W2.hpd +445 -0
  263. pyromat/data/ig/O8_W3.hpd +464 -0
  264. pyromat/data/ig/O9_W3.hpd +445 -0
  265. pyromat/data/ig/O_W.hpd +464 -0
  266. pyromat/data/ig/P_S.hpd +446 -0
  267. pyromat/data/ig/Rb.hpd +414 -0
  268. pyromat/data/ig/Rb2.hpd +463 -0
  269. pyromat/data/ig/S3.hpd +444 -0
  270. pyromat/data/ig/S4.hpd +444 -0
  271. pyromat/data/ig/S5.hpd +444 -0
  272. pyromat/data/ig/S6.hpd +451 -0
  273. pyromat/data/ig/S7.hpd +444 -0
  274. pyromat/data/ig2/Al+.hpd +39 -0
  275. pyromat/data/ig2/Al-.hpd +39 -0
  276. pyromat/data/ig2/Al.hpd +43 -0
  277. pyromat/data/ig2/Al2.hpd +42 -0
  278. pyromat/data/ig2/Al2_Br6.hpd +42 -0
  279. pyromat/data/ig2/Al2_Cl6.hpd +48 -0
  280. pyromat/data/ig2/Al2_F6.hpd +42 -0
  281. pyromat/data/ig2/Al2_I6.hpd +43 -0
  282. pyromat/data/ig2/Al2_O+.hpd +40 -0
  283. pyromat/data/ig2/Al2_O.hpd +42 -0
  284. pyromat/data/ig2/Al2_O2+.hpd +40 -0
  285. pyromat/data/ig2/Al2_O2.hpd +42 -0
  286. pyromat/data/ig2/Al_B_O2.hpd +43 -0
  287. pyromat/data/ig2/Al_Br.hpd +42 -0
  288. pyromat/data/ig2/Al_Br3.hpd +42 -0
  289. pyromat/data/ig2/Al_Cl+.hpd +40 -0
  290. pyromat/data/ig2/Al_Cl.hpd +43 -0
  291. pyromat/data/ig2/Al_Cl2+.hpd +40 -0
  292. pyromat/data/ig2/Al_Cl2-.hpd +40 -0
  293. pyromat/data/ig2/Al_Cl2.hpd +42 -0
  294. pyromat/data/ig2/Al_Cl2_F.hpd +44 -0
  295. pyromat/data/ig2/Al_Cl3.hpd +42 -0
  296. pyromat/data/ig2/Al_Cl_F+.hpd +41 -0
  297. pyromat/data/ig2/Al_Cl_F.hpd +43 -0
  298. pyromat/data/ig2/Al_Cl_F2.hpd +44 -0
  299. pyromat/data/ig2/Al_Cl_O.hpd +43 -0
  300. pyromat/data/ig2/Al_F+.hpd +40 -0
  301. pyromat/data/ig2/Al_F.hpd +43 -0
  302. pyromat/data/ig2/Al_F2+.hpd +40 -0
  303. pyromat/data/ig2/Al_F2-.hpd +40 -0
  304. pyromat/data/ig2/Al_F2.hpd +42 -0
  305. pyromat/data/ig2/Al_F2_O-.hpd +41 -0
  306. pyromat/data/ig2/Al_F2_O.hpd +43 -0
  307. pyromat/data/ig2/Al_F3.hpd +45 -0
  308. pyromat/data/ig2/Al_F4-.hpd +40 -0
  309. pyromat/data/ig2/Al_F4_Li.hpd +43 -0
  310. pyromat/data/ig2/Al_F4_Na.hpd +43 -0
  311. pyromat/data/ig2/Al_F_O.hpd +43 -0
  312. pyromat/data/ig2/Al_I.hpd +42 -0
  313. pyromat/data/ig2/Al_I3.hpd +42 -0
  314. pyromat/data/ig2/Al_N.hpd +44 -0
  315. pyromat/data/ig2/Al_O+.hpd +40 -0
  316. pyromat/data/ig2/Al_O-.hpd +40 -0
  317. pyromat/data/ig2/Al_O.hpd +43 -0
  318. pyromat/data/ig2/Al_O2-.hpd +40 -0
  319. pyromat/data/ig2/Al_O2.hpd +42 -0
  320. pyromat/data/ig2/Al_S.hpd +43 -0
  321. pyromat/data/ig2/Ar+.hpd +39 -0
  322. pyromat/data/ig2/Ar.hpd +38 -0
  323. pyromat/data/ig2/B+.hpd +39 -0
  324. pyromat/data/ig2/B-.hpd +39 -0
  325. pyromat/data/ig2/B.hpd +42 -0
  326. pyromat/data/ig2/B2.hpd +38 -0
  327. pyromat/data/ig2/B2_O.hpd +42 -0
  328. pyromat/data/ig2/B2_O2.hpd +42 -0
  329. pyromat/data/ig2/B2_O3.hpd +42 -0
  330. pyromat/data/ig2/B3_Cl3_O3.hpd +44 -0
  331. pyromat/data/ig2/B3_F3_O3.hpd +44 -0
  332. pyromat/data/ig2/B_Be_O2.hpd +40 -0
  333. pyromat/data/ig2/B_Cl+.hpd +40 -0
  334. pyromat/data/ig2/B_Cl.hpd +43 -0
  335. pyromat/data/ig2/B_Cl2+.hpd +40 -0
  336. pyromat/data/ig2/B_Cl2-.hpd +40 -0
  337. pyromat/data/ig2/B_Cl2.hpd +43 -0
  338. pyromat/data/ig2/B_Cl3.hpd +52 -0
  339. pyromat/data/ig2/B_Cl_F.hpd +44 -0
  340. pyromat/data/ig2/B_Cl_O.hpd +43 -0
  341. pyromat/data/ig2/B_F.hpd +44 -0
  342. pyromat/data/ig2/B_F2+.hpd +40 -0
  343. pyromat/data/ig2/B_F2-.hpd +40 -0
  344. pyromat/data/ig2/B_F2.hpd +43 -0
  345. pyromat/data/ig2/B_F2_O.hpd +43 -0
  346. pyromat/data/ig2/B_F3.hpd +52 -0
  347. pyromat/data/ig2/B_F_O.hpd +43 -0
  348. pyromat/data/ig2/B_K_O2.hpd +43 -0
  349. pyromat/data/ig2/B_Li_O2.hpd +43 -0
  350. pyromat/data/ig2/B_N.hpd +43 -0
  351. pyromat/data/ig2/B_Na_O2.hpd +43 -0
  352. pyromat/data/ig2/B_O.hpd +43 -0
  353. pyromat/data/ig2/B_O2-.hpd +40 -0
  354. pyromat/data/ig2/B_O2.hpd +42 -0
  355. pyromat/data/ig2/B_S.hpd +43 -0
  356. pyromat/data/ig2/Ba.hpd +38 -0
  357. pyromat/data/ig2/Ba_Br.hpd +42 -0
  358. pyromat/data/ig2/Ba_Br2.hpd +42 -0
  359. pyromat/data/ig2/Ba_Cl.hpd +39 -0
  360. pyromat/data/ig2/Ba_Cl2.hpd +44 -0
  361. pyromat/data/ig2/Ba_F+.hpd +40 -0
  362. pyromat/data/ig2/Ba_F.hpd +43 -0
  363. pyromat/data/ig2/Ba_F2.hpd +43 -0
  364. pyromat/data/ig2/Ba_S.hpd +44 -0
  365. pyromat/data/ig2/Be+.hpd +39 -0
  366. pyromat/data/ig2/Be.hpd +42 -0
  367. pyromat/data/ig2/Be2_F2_O.hpd +43 -0
  368. pyromat/data/ig2/Be2_O.hpd +42 -0
  369. pyromat/data/ig2/Be2_O2.hpd +42 -0
  370. pyromat/data/ig2/Be3_O3.hpd +39 -0
  371. pyromat/data/ig2/Be4_O4.hpd +39 -0
  372. pyromat/data/ig2/Be_Br.hpd +42 -0
  373. pyromat/data/ig2/Be_Br2.hpd +44 -0
  374. pyromat/data/ig2/Be_Cl+.hpd +40 -0
  375. pyromat/data/ig2/Be_Cl.hpd +43 -0
  376. pyromat/data/ig2/Be_Cl2.hpd +42 -0
  377. pyromat/data/ig2/Be_Cl_F.hpd +43 -0
  378. pyromat/data/ig2/Be_F.hpd +43 -0
  379. pyromat/data/ig2/Be_F2.hpd +42 -0
  380. pyromat/data/ig2/Be_I.hpd +42 -0
  381. pyromat/data/ig2/Be_I2.hpd +44 -0
  382. pyromat/data/ig2/Be_N.hpd +43 -0
  383. pyromat/data/ig2/Be_O.hpd +44 -0
  384. pyromat/data/ig2/Be_S.hpd +44 -0
  385. pyromat/data/ig2/Br.hpd +42 -0
  386. pyromat/data/ig2/Br2.hpd +49 -0
  387. pyromat/data/ig2/Br2_Ca.hpd +42 -0
  388. pyromat/data/ig2/Br2_Hg.hpd +51 -0
  389. pyromat/data/ig2/Br2_Mg.hpd +42 -0
  390. pyromat/data/ig2/Br2_Pb.hpd +42 -0
  391. pyromat/data/ig2/Br2_Si.hpd +43 -0
  392. pyromat/data/ig2/Br3_Si.hpd +43 -0
  393. pyromat/data/ig2/Br4_Pb.hpd +42 -0
  394. pyromat/data/ig2/Br4_Si.hpd +43 -0
  395. pyromat/data/ig2/Br_Ca.hpd +42 -0
  396. pyromat/data/ig2/Br_Mg.hpd +42 -0
  397. pyromat/data/ig2/Br_Na.hpd +43 -0
  398. pyromat/data/ig2/Br_Pb.hpd +42 -0
  399. pyromat/data/ig2/Br_Si.hpd +43 -0
  400. pyromat/data/ig2/Br_Sr.hpd +42 -0
  401. pyromat/data/ig2/C+.hpd +39 -0
  402. pyromat/data/ig2/C-.hpd +39 -0
  403. pyromat/data/ig2/C.hpd +43 -0
  404. pyromat/data/ig2/C10_H21.hpd +39 -0
  405. pyromat/data/ig2/C10_H8.hpd +39 -0
  406. pyromat/data/ig2/C12_D10.hpd +39 -0
  407. pyromat/data/ig2/C12_D9.hpd +39 -0
  408. pyromat/data/ig2/C12_H10.hpd +39 -0
  409. pyromat/data/ig2/C12_H23.hpd +39 -0
  410. pyromat/data/ig2/C12_H9.hpd +39 -0
  411. pyromat/data/ig2/C2+.hpd +39 -0
  412. pyromat/data/ig2/C2-.hpd +39 -0
  413. pyromat/data/ig2/C2.hpd +42 -0
  414. pyromat/data/ig2/C2_Cl2.hpd +50 -0
  415. pyromat/data/ig2/C2_Cl4.hpd +97 -0
  416. pyromat/data/ig2/C2_Cl6.hpd +69 -0
  417. pyromat/data/ig2/C2_F2.hpd +50 -0
  418. pyromat/data/ig2/C2_F4.hpd +55 -0
  419. pyromat/data/ig2/C2_H.hpd +43 -0
  420. pyromat/data/ig2/C2_H2.hpd +50 -0
  421. pyromat/data/ig2/C2_H2_O.hpd +40 -0
  422. pyromat/data/ig2/C2_H3.hpd +39 -0
  423. pyromat/data/ig2/C2_H3_N.hpd +40 -0
  424. pyromat/data/ig2/C2_H3_O.hpd +40 -0
  425. pyromat/data/ig2/C2_H4.hpd +39 -0
  426. pyromat/data/ig2/C2_H4_O.hpd +40 -0
  427. pyromat/data/ig2/C2_H4_O2.hpd +40 -0
  428. pyromat/data/ig2/C2_H4_O4.hpd +40 -0
  429. pyromat/data/ig2/C2_H5.hpd +39 -0
  430. pyromat/data/ig2/C2_H6.hpd +39 -0
  431. pyromat/data/ig2/C2_H6_N2.hpd +40 -0
  432. pyromat/data/ig2/C2_H6_O.hpd +40 -0
  433. pyromat/data/ig2/C2_H_Cl.hpd +51 -0
  434. pyromat/data/ig2/C2_H_F.hpd +52 -0
  435. pyromat/data/ig2/C2_H_N.hpd +40 -0
  436. pyromat/data/ig2/C2_H_O.hpd +40 -0
  437. pyromat/data/ig2/C2_K2_N2.hpd +43 -0
  438. pyromat/data/ig2/C2_N.hpd +42 -0
  439. pyromat/data/ig2/C2_N2.hpd +61 -0
  440. pyromat/data/ig2/C2_N2_Na2.hpd +44 -0
  441. pyromat/data/ig2/C2_O.hpd +39 -0
  442. pyromat/data/ig2/C2_Si.hpd +42 -0
  443. pyromat/data/ig2/C3.hpd +43 -0
  444. pyromat/data/ig2/C3_H3.hpd +39 -0
  445. pyromat/data/ig2/C3_H4.hpd +39 -0
  446. pyromat/data/ig2/C3_H5.hpd +39 -0
  447. pyromat/data/ig2/C3_H6.hpd +39 -0
  448. pyromat/data/ig2/C3_H6_O.hpd +40 -0
  449. pyromat/data/ig2/C3_H7.hpd +39 -0
  450. pyromat/data/ig2/C3_H8.hpd +39 -0
  451. pyromat/data/ig2/C3_H8_O.hpd +40 -0
  452. pyromat/data/ig2/C3_O2.hpd +46 -0
  453. pyromat/data/ig2/C4.hpd +42 -0
  454. pyromat/data/ig2/C4_H10.hpd +39 -0
  455. pyromat/data/ig2/C4_H12_Si.hpd +54 -0
  456. pyromat/data/ig2/C4_H2.hpd +39 -0
  457. pyromat/data/ig2/C4_H4.hpd +39 -0
  458. pyromat/data/ig2/C4_H6.hpd +39 -0
  459. pyromat/data/ig2/C4_H8.hpd +39 -0
  460. pyromat/data/ig2/C4_H8_O4.hpd +40 -0
  461. pyromat/data/ig2/C4_H9.hpd +39 -0
  462. pyromat/data/ig2/C4_N2.hpd +52 -0
  463. pyromat/data/ig2/C5.hpd +42 -0
  464. pyromat/data/ig2/C5_Fe_O5.hpd +49 -0
  465. pyromat/data/ig2/C5_H10.hpd +39 -0
  466. pyromat/data/ig2/C5_H11.hpd +39 -0
  467. pyromat/data/ig2/C5_H12.hpd +39 -0
  468. pyromat/data/ig2/C5_H6.hpd +39 -0
  469. pyromat/data/ig2/C5_H8.hpd +39 -0
  470. pyromat/data/ig2/C6_D5.hpd +39 -0
  471. pyromat/data/ig2/C6_D6.hpd +39 -0
  472. pyromat/data/ig2/C6_H10.hpd +39 -0
  473. pyromat/data/ig2/C6_H12.hpd +39 -0
  474. pyromat/data/ig2/C6_H13.hpd +39 -0
  475. pyromat/data/ig2/C6_H2.hpd +39 -0
  476. pyromat/data/ig2/C6_H5.hpd +39 -0
  477. pyromat/data/ig2/C6_H5_O.hpd +40 -0
  478. pyromat/data/ig2/C6_H6.hpd +39 -0
  479. pyromat/data/ig2/C6_H6_O.hpd +40 -0
  480. pyromat/data/ig2/C7_H14.hpd +39 -0
  481. pyromat/data/ig2/C7_H15.hpd +39 -0
  482. pyromat/data/ig2/C7_H16.hpd +39 -0
  483. pyromat/data/ig2/C7_H7.hpd +39 -0
  484. pyromat/data/ig2/C7_H8.hpd +39 -0
  485. pyromat/data/ig2/C7_H8_O.hpd +40 -0
  486. pyromat/data/ig2/C8_H10.hpd +39 -0
  487. pyromat/data/ig2/C8_H16.hpd +39 -0
  488. pyromat/data/ig2/C8_H17.hpd +39 -0
  489. pyromat/data/ig2/C8_H18.hpd +39 -0
  490. pyromat/data/ig2/C8_H8.hpd +39 -0
  491. pyromat/data/ig2/C9_H19.hpd +39 -0
  492. pyromat/data/ig2/C_Al.hpd +42 -0
  493. pyromat/data/ig2/C_Cl.hpd +43 -0
  494. pyromat/data/ig2/C_Cl2.hpd +43 -0
  495. pyromat/data/ig2/C_Cl2_F2.hpd +85 -0
  496. pyromat/data/ig2/C_Cl2_O.hpd +65 -0
  497. pyromat/data/ig2/C_Cl3.hpd +43 -0
  498. pyromat/data/ig2/C_Cl3_F.hpd +93 -0
  499. pyromat/data/ig2/C_Cl4.hpd +84 -0
  500. pyromat/data/ig2/C_Cl_F3.hpd +65 -0
  501. pyromat/data/ig2/C_Cl_F_O.hpd +52 -0
  502. pyromat/data/ig2/C_Cl_N.hpd +60 -0
  503. pyromat/data/ig2/C_Cl_O.hpd +44 -0
  504. pyromat/data/ig2/C_F+.hpd +40 -0
  505. pyromat/data/ig2/C_F.hpd +43 -0
  506. pyromat/data/ig2/C_F2+.hpd +40 -0
  507. pyromat/data/ig2/C_F2.hpd +45 -0
  508. pyromat/data/ig2/C_F2_O.hpd +60 -0
  509. pyromat/data/ig2/C_F3+.hpd +40 -0
  510. pyromat/data/ig2/C_F3.hpd +43 -0
  511. pyromat/data/ig2/C_F4.hpd +62 -0
  512. pyromat/data/ig2/C_F_N.hpd +43 -0
  513. pyromat/data/ig2/C_F_O.hpd +43 -0
  514. pyromat/data/ig2/C_H+.hpd +40 -0
  515. pyromat/data/ig2/C_H.hpd +43 -0
  516. pyromat/data/ig2/C_H2.hpd +43 -0
  517. pyromat/data/ig2/C_H2_Cl2.hpd +70 -0
  518. pyromat/data/ig2/C_H2_Cl_F.hpd +56 -0
  519. pyromat/data/ig2/C_H2_F2.hpd +40 -0
  520. pyromat/data/ig2/C_H2_O.hpd +82 -0
  521. pyromat/data/ig2/C_H2_O2.hpd +40 -0
  522. pyromat/data/ig2/C_H3.hpd +43 -0
  523. pyromat/data/ig2/C_H3_Cl.hpd +61 -0
  524. pyromat/data/ig2/C_H3_F.hpd +40 -0
  525. pyromat/data/ig2/C_H3_O.hpd +40 -0
  526. pyromat/data/ig2/C_H4.hpd +39 -0
  527. pyromat/data/ig2/C_H4_O.hpd +40 -0
  528. pyromat/data/ig2/C_H_Cl.hpd +44 -0
  529. pyromat/data/ig2/C_H_Cl2_F.hpd +65 -0
  530. pyromat/data/ig2/C_H_Cl3.hpd +65 -0
  531. pyromat/data/ig2/C_H_Cl_F2.hpd +89 -0
  532. pyromat/data/ig2/C_H_F3.hpd +65 -0
  533. pyromat/data/ig2/C_H_N.hpd +72 -0
  534. pyromat/data/ig2/C_H_N_O.hpd +45 -0
  535. pyromat/data/ig2/C_H_O+.hpd +41 -0
  536. pyromat/data/ig2/C_H_O.hpd +44 -0
  537. pyromat/data/ig2/C_H_O2.hpd +40 -0
  538. pyromat/data/ig2/C_K_N.hpd +43 -0
  539. pyromat/data/ig2/C_N+.hpd +40 -0
  540. pyromat/data/ig2/C_N-.hpd +40 -0
  541. pyromat/data/ig2/C_N.hpd +43 -0
  542. pyromat/data/ig2/C_N2.hpd +43 -0
  543. pyromat/data/ig2/C_N_Na.hpd +43 -0
  544. pyromat/data/ig2/C_N_O.hpd +40 -0
  545. pyromat/data/ig2/C_O+.hpd +40 -0
  546. pyromat/data/ig2/C_O.hpd +59 -0
  547. pyromat/data/ig2/C_O2+.hpd +40 -0
  548. pyromat/data/ig2/C_O2.hpd +61 -0
  549. pyromat/data/ig2/C_O_S.hpd +51 -0
  550. pyromat/data/ig2/C_P.hpd +43 -0
  551. pyromat/data/ig2/C_S.hpd +43 -0
  552. pyromat/data/ig2/C_S2.hpd +65 -0
  553. pyromat/data/ig2/C_Si.hpd +42 -0
  554. pyromat/data/ig2/C_Si2.hpd +42 -0
  555. pyromat/data/ig2/Ca+.hpd +39 -0
  556. pyromat/data/ig2/Ca.hpd +42 -0
  557. pyromat/data/ig2/Ca2.hpd +42 -0
  558. pyromat/data/ig2/Ca_Cl.hpd +43 -0
  559. pyromat/data/ig2/Ca_Cl2.hpd +42 -0
  560. pyromat/data/ig2/Ca_F.hpd +43 -0
  561. pyromat/data/ig2/Ca_F2.hpd +42 -0
  562. pyromat/data/ig2/Ca_I.hpd +42 -0
  563. pyromat/data/ig2/Ca_I2.hpd +42 -0
  564. pyromat/data/ig2/Ca_O.hpd +44 -0
  565. pyromat/data/ig2/Ca_S.hpd +44 -0
  566. pyromat/data/ig2/Cl+.hpd +39 -0
  567. pyromat/data/ig2/Cl-.hpd +39 -0
  568. pyromat/data/ig2/Cl.hpd +42 -0
  569. pyromat/data/ig2/Cl2.hpd +52 -0
  570. pyromat/data/ig2/Cl2_Cs2.hpd +42 -0
  571. pyromat/data/ig2/Cl2_Fe.hpd +42 -0
  572. pyromat/data/ig2/Cl2_K2.hpd +42 -0
  573. pyromat/data/ig2/Cl2_Li2.hpd +42 -0
  574. pyromat/data/ig2/Cl2_Mg.hpd +42 -0
  575. pyromat/data/ig2/Cl2_Na2.hpd +43 -0
  576. pyromat/data/ig2/Cl2_Ni.hpd +42 -0
  577. pyromat/data/ig2/Cl2_O.hpd +53 -0
  578. pyromat/data/ig2/Cl2_O2_S.hpd +45 -0
  579. pyromat/data/ig2/Cl2_O_Ti.hpd +43 -0
  580. pyromat/data/ig2/Cl2_Pb+.hpd +40 -0
  581. pyromat/data/ig2/Cl2_Pb.hpd +43 -0
  582. pyromat/data/ig2/Cl2_S+.hpd +40 -0
  583. pyromat/data/ig2/Cl2_S.hpd +54 -0
  584. pyromat/data/ig2/Cl2_S2.hpd +55 -0
  585. pyromat/data/ig2/Cl2_Si.hpd +42 -0
  586. pyromat/data/ig2/Cl2_Sr.hpd +42 -0
  587. pyromat/data/ig2/Cl2_Ti.hpd +42 -0
  588. pyromat/data/ig2/Cl3_Cu3.hpd +42 -0
  589. pyromat/data/ig2/Cl3_Fe.hpd +42 -0
  590. pyromat/data/ig2/Cl3_Li3.hpd +42 -0
  591. pyromat/data/ig2/Cl3_P.hpd +59 -0
  592. pyromat/data/ig2/Cl3_Si.hpd +43 -0
  593. pyromat/data/ig2/Cl3_Ti.hpd +42 -0
  594. pyromat/data/ig2/Cl4_Fe2.hpd +42 -0
  595. pyromat/data/ig2/Cl4_Pb.hpd +42 -0
  596. pyromat/data/ig2/Cl4_Si.hpd +59 -0
  597. pyromat/data/ig2/Cl4_Ti.hpd +54 -0
  598. pyromat/data/ig2/Cl4_V.hpd +39 -0
  599. pyromat/data/ig2/Cl6_Fe2.hpd +42 -0
  600. pyromat/data/ig2/Cl_Cs.hpd +44 -0
  601. pyromat/data/ig2/Cl_Cu.hpd +44 -0
  602. pyromat/data/ig2/Cl_D.hpd +44 -0
  603. pyromat/data/ig2/Cl_D_O.hpd +43 -0
  604. pyromat/data/ig2/Cl_F.hpd +44 -0
  605. pyromat/data/ig2/Cl_F3.hpd +42 -0
  606. pyromat/data/ig2/Cl_F_Mg.hpd +43 -0
  607. pyromat/data/ig2/Cl_F_O2_S.hpd +57 -0
  608. pyromat/data/ig2/Cl_Fe.hpd +42 -0
  609. pyromat/data/ig2/Cl_K.hpd +43 -0
  610. pyromat/data/ig2/Cl_Li.hpd +43 -0
  611. pyromat/data/ig2/Cl_Mg+.hpd +40 -0
  612. pyromat/data/ig2/Cl_Mg.hpd +43 -0
  613. pyromat/data/ig2/Cl_N_O.hpd +53 -0
  614. pyromat/data/ig2/Cl_N_O2.hpd +43 -0
  615. pyromat/data/ig2/Cl_Na.hpd +44 -0
  616. pyromat/data/ig2/Cl_Ni.hpd +44 -0
  617. pyromat/data/ig2/Cl_O.hpd +43 -0
  618. pyromat/data/ig2/Cl_O2.hpd +53 -0
  619. pyromat/data/ig2/Cl_O_Ti.hpd +43 -0
  620. pyromat/data/ig2/Cl_Pb+.hpd +40 -0
  621. pyromat/data/ig2/Cl_Pb.hpd +42 -0
  622. pyromat/data/ig2/Cl_S.hpd +43 -0
  623. pyromat/data/ig2/Cl_S2.hpd +43 -0
  624. pyromat/data/ig2/Cl_Si.hpd +43 -0
  625. pyromat/data/ig2/Cl_Sr.hpd +43 -0
  626. pyromat/data/ig2/Cl_Ti.hpd +42 -0
  627. pyromat/data/ig2/Cr.hpd +42 -0
  628. pyromat/data/ig2/Cr_N.hpd +44 -0
  629. pyromat/data/ig2/Cr_O.hpd +43 -0
  630. pyromat/data/ig2/Cr_O2.hpd +43 -0
  631. pyromat/data/ig2/Cr_O3.hpd +42 -0
  632. pyromat/data/ig2/Cs+.hpd +39 -0
  633. pyromat/data/ig2/Cs.hpd +38 -0
  634. pyromat/data/ig2/Cs2.hpd +42 -0
  635. pyromat/data/ig2/Cs2_F2.hpd +42 -0
  636. pyromat/data/ig2/Cs2_O.hpd +42 -0
  637. pyromat/data/ig2/Cs2_O4_S.hpd +43 -0
  638. pyromat/data/ig2/Cs_F.hpd +44 -0
  639. pyromat/data/ig2/Cs_O.hpd +43 -0
  640. pyromat/data/ig2/Cu+.hpd +39 -0
  641. pyromat/data/ig2/Cu.hpd +38 -0
  642. pyromat/data/ig2/Cu2.hpd +42 -0
  643. pyromat/data/ig2/Cu_F.hpd +43 -0
  644. pyromat/data/ig2/Cu_F2.hpd +42 -0
  645. pyromat/data/ig2/Cu_O.hpd +44 -0
  646. pyromat/data/ig2/D+.hpd +39 -0
  647. pyromat/data/ig2/D-.hpd +39 -0
  648. pyromat/data/ig2/D.hpd +38 -0
  649. pyromat/data/ig2/D2+.hpd +39 -0
  650. pyromat/data/ig2/D2-.hpd +39 -0
  651. pyromat/data/ig2/D2.hpd +44 -0
  652. pyromat/data/ig2/D2_N.hpd +42 -0
  653. pyromat/data/ig2/D2_N2.hpd +43 -0
  654. pyromat/data/ig2/D2_O.hpd +43 -0
  655. pyromat/data/ig2/D2_S.hpd +42 -0
  656. pyromat/data/ig2/D3_N.hpd +43 -0
  657. pyromat/data/ig2/D_F.hpd +44 -0
  658. pyromat/data/ig2/D_N.hpd +43 -0
  659. pyromat/data/ig2/D_O.hpd +43 -0
  660. pyromat/data/ig2/D_S.hpd +43 -0
  661. pyromat/data/ig2/F+.hpd +39 -0
  662. pyromat/data/ig2/F-.hpd +39 -0
  663. pyromat/data/ig2/F.hpd +42 -0
  664. pyromat/data/ig2/F2.hpd +42 -0
  665. pyromat/data/ig2/F2_K-.hpd +40 -0
  666. pyromat/data/ig2/F2_K2.hpd +42 -0
  667. pyromat/data/ig2/F2_Li-.hpd +40 -0
  668. pyromat/data/ig2/F2_Li2.hpd +42 -0
  669. pyromat/data/ig2/F2_Mg+.hpd +40 -0
  670. pyromat/data/ig2/F2_Mg.hpd +43 -0
  671. pyromat/data/ig2/F2_N.hpd +43 -0
  672. pyromat/data/ig2/F2_N2.hpd +53 -0
  673. pyromat/data/ig2/F2_Na-.hpd +40 -0
  674. pyromat/data/ig2/F2_Na2.hpd +42 -0
  675. pyromat/data/ig2/F2_O.hpd +52 -0
  676. pyromat/data/ig2/F2_O2_S.hpd +56 -0
  677. pyromat/data/ig2/F2_O_S.hpd +51 -0
  678. pyromat/data/ig2/F2_P+.hpd +40 -0
  679. pyromat/data/ig2/F2_P.hpd +43 -0
  680. pyromat/data/ig2/F2_Pb.hpd +42 -0
  681. pyromat/data/ig2/F2_S+.hpd +40 -0
  682. pyromat/data/ig2/F2_S-.hpd +40 -0
  683. pyromat/data/ig2/F2_S.hpd +43 -0
  684. pyromat/data/ig2/F2_S2.hpd +43 -0
  685. pyromat/data/ig2/F2_Si.hpd +43 -0
  686. pyromat/data/ig2/F2_Sr.hpd +42 -0
  687. pyromat/data/ig2/F3_Li3.hpd +39 -0
  688. pyromat/data/ig2/F3_N.hpd +50 -0
  689. pyromat/data/ig2/F3_N_O.hpd +51 -0
  690. pyromat/data/ig2/F3_P.hpd +50 -0
  691. pyromat/data/ig2/F3_S+.hpd +40 -0
  692. pyromat/data/ig2/F3_S-.hpd +40 -0
  693. pyromat/data/ig2/F3_S.hpd +43 -0
  694. pyromat/data/ig2/F3_Si.hpd +43 -0
  695. pyromat/data/ig2/F4_Mg2.hpd +42 -0
  696. pyromat/data/ig2/F4_N2.hpd +50 -0
  697. pyromat/data/ig2/F4_Pb.hpd +42 -0
  698. pyromat/data/ig2/F4_S+.hpd +40 -0
  699. pyromat/data/ig2/F4_S-.hpd +40 -0
  700. pyromat/data/ig2/F4_S.hpd +50 -0
  701. pyromat/data/ig2/F4_Si.hpd +49 -0
  702. pyromat/data/ig2/F5_P.hpd +48 -0
  703. pyromat/data/ig2/F5_S+.hpd +40 -0
  704. pyromat/data/ig2/F5_S-.hpd +40 -0
  705. pyromat/data/ig2/F5_S.hpd +43 -0
  706. pyromat/data/ig2/F6_S-.hpd +40 -0
  707. pyromat/data/ig2/F6_S.hpd +51 -0
  708. pyromat/data/ig2/F_K.hpd +43 -0
  709. pyromat/data/ig2/F_Li.hpd +43 -0
  710. pyromat/data/ig2/F_Li_O.hpd +44 -0
  711. pyromat/data/ig2/F_Mg+.hpd +40 -0
  712. pyromat/data/ig2/F_Mg.hpd +43 -0
  713. pyromat/data/ig2/F_N.hpd +43 -0
  714. pyromat/data/ig2/F_N_O.hpd +44 -0
  715. pyromat/data/ig2/F_N_O2.hpd +43 -0
  716. pyromat/data/ig2/F_N_O3.hpd +44 -0
  717. pyromat/data/ig2/F_Na.hpd +43 -0
  718. pyromat/data/ig2/F_O.hpd +43 -0
  719. pyromat/data/ig2/F_O2.hpd +39 -0
  720. pyromat/data/ig2/F_P+.hpd +40 -0
  721. pyromat/data/ig2/F_P-.hpd +40 -0
  722. pyromat/data/ig2/F_P.hpd +43 -0
  723. pyromat/data/ig2/F_Pb.hpd +42 -0
  724. pyromat/data/ig2/F_S+.hpd +40 -0
  725. pyromat/data/ig2/F_S-.hpd +40 -0
  726. pyromat/data/ig2/F_S.hpd +43 -0
  727. pyromat/data/ig2/F_Si.hpd +44 -0
  728. pyromat/data/ig2/F_Sr+.hpd +40 -0
  729. pyromat/data/ig2/F_Sr.hpd +43 -0
  730. pyromat/data/ig2/Fe+.hpd +39 -0
  731. pyromat/data/ig2/Fe-.hpd +39 -0
  732. pyromat/data/ig2/Fe.hpd +42 -0
  733. pyromat/data/ig2/Fe_O.hpd +44 -0
  734. pyromat/data/ig2/H+.hpd +39 -0
  735. pyromat/data/ig2/H-.hpd +39 -0
  736. pyromat/data/ig2/H.hpd +38 -0
  737. pyromat/data/ig2/H2+.hpd +39 -0
  738. pyromat/data/ig2/H2-.hpd +39 -0
  739. pyromat/data/ig2/H2.hpd +49 -0
  740. pyromat/data/ig2/H2_B.hpd +39 -0
  741. pyromat/data/ig2/H2_Ba_O2.hpd +40 -0
  742. pyromat/data/ig2/H2_Be_O2.hpd +40 -0
  743. pyromat/data/ig2/H2_Br2_Si.hpd +40 -0
  744. pyromat/data/ig2/H2_Ca_O2.hpd +40 -0
  745. pyromat/data/ig2/H2_Cl2_Si.hpd +40 -0
  746. pyromat/data/ig2/H2_Cs2_O2.hpd +40 -0
  747. pyromat/data/ig2/H2_F2.hpd +39 -0
  748. pyromat/data/ig2/H2_F2_Si.hpd +40 -0
  749. pyromat/data/ig2/H2_F_N.hpd +40 -0
  750. pyromat/data/ig2/H2_Fe_O2.hpd +40 -0
  751. pyromat/data/ig2/H2_I2_Si.hpd +44 -0
  752. pyromat/data/ig2/H2_K2_O2.hpd +43 -0
  753. pyromat/data/ig2/H2_Li2_O2.hpd +44 -0
  754. pyromat/data/ig2/H2_Mg_O2.hpd +43 -0
  755. pyromat/data/ig2/H2_N.hpd +43 -0
  756. pyromat/data/ig2/H2_N2.hpd +42 -0
  757. pyromat/data/ig2/H2_N2_O2.hpd +40 -0
  758. pyromat/data/ig2/H2_Na2_O2.hpd +44 -0
  759. pyromat/data/ig2/H2_O+.hpd +40 -0
  760. pyromat/data/ig2/H2_O.hpd +50 -0
  761. pyromat/data/ig2/H2_O2.hpd +43 -0
  762. pyromat/data/ig2/H2_O2_Sr.hpd +44 -0
  763. pyromat/data/ig2/H2_O4_S.hpd +68 -0
  764. pyromat/data/ig2/H2_S.hpd +65 -0
  765. pyromat/data/ig2/H2_Si.hpd +39 -0
  766. pyromat/data/ig2/H3_B.hpd +39 -0
  767. pyromat/data/ig2/H3_B3_O3.hpd +40 -0
  768. pyromat/data/ig2/H3_B3_O6.hpd +40 -0
  769. pyromat/data/ig2/H3_Br_Si.hpd +40 -0
  770. pyromat/data/ig2/H3_Cl_Si.hpd +40 -0
  771. pyromat/data/ig2/H3_F3.hpd +39 -0
  772. pyromat/data/ig2/H3_F_Si.hpd +40 -0
  773. pyromat/data/ig2/H3_I_Si.hpd +44 -0
  774. pyromat/data/ig2/H3_N.hpd +50 -0
  775. pyromat/data/ig2/H3_N_O.hpd +40 -0
  776. pyromat/data/ig2/H3_O+.hpd +40 -0
  777. pyromat/data/ig2/H3_P.hpd +54 -0
  778. pyromat/data/ig2/H3_Si.hpd +39 -0
  779. pyromat/data/ig2/H4_F4.hpd +39 -0
  780. pyromat/data/ig2/H4_N+.hpd +40 -0
  781. pyromat/data/ig2/H4_N2.hpd +52 -0
  782. pyromat/data/ig2/H4_Si.hpd +50 -0
  783. pyromat/data/ig2/H5_F5.hpd +39 -0
  784. pyromat/data/ig2/H6_F6.hpd +39 -0
  785. pyromat/data/ig2/H7_F7.hpd +39 -0
  786. pyromat/data/ig2/H_Al.hpd +39 -0
  787. pyromat/data/ig2/H_Al_O+.hpd +41 -0
  788. pyromat/data/ig2/H_Al_O-.hpd +41 -0
  789. pyromat/data/ig2/H_Al_O.hpd +40 -0
  790. pyromat/data/ig2/H_Al_O2.hpd +40 -0
  791. pyromat/data/ig2/H_B.hpd +39 -0
  792. pyromat/data/ig2/H_B_F2.hpd +40 -0
  793. pyromat/data/ig2/H_B_O+.hpd +41 -0
  794. pyromat/data/ig2/H_B_O-.hpd +41 -0
  795. pyromat/data/ig2/H_B_O.hpd +40 -0
  796. pyromat/data/ig2/H_B_O2.hpd +40 -0
  797. pyromat/data/ig2/H_B_S+.hpd +41 -0
  798. pyromat/data/ig2/H_B_S.hpd +40 -0
  799. pyromat/data/ig2/H_Ba_O+.hpd +41 -0
  800. pyromat/data/ig2/H_Ba_O.hpd +40 -0
  801. pyromat/data/ig2/H_Be+.hpd +40 -0
  802. pyromat/data/ig2/H_Be.hpd +39 -0
  803. pyromat/data/ig2/H_Be_O+.hpd +41 -0
  804. pyromat/data/ig2/H_Be_O.hpd +40 -0
  805. pyromat/data/ig2/H_Br.hpd +39 -0
  806. pyromat/data/ig2/H_Br3_Si.hpd +40 -0
  807. pyromat/data/ig2/H_Ca_O+.hpd +41 -0
  808. pyromat/data/ig2/H_Ca_O.hpd +40 -0
  809. pyromat/data/ig2/H_Cl.hpd +39 -0
  810. pyromat/data/ig2/H_Cl3_Si.hpd +40 -0
  811. pyromat/data/ig2/H_Cl_O.hpd +40 -0
  812. pyromat/data/ig2/H_Cs_O+.hpd +41 -0
  813. pyromat/data/ig2/H_Cs_O.hpd +40 -0
  814. pyromat/data/ig2/H_D+.hpd +40 -0
  815. pyromat/data/ig2/H_D-.hpd +40 -0
  816. pyromat/data/ig2/H_D.hpd +39 -0
  817. pyromat/data/ig2/H_D_O.hpd +40 -0
  818. pyromat/data/ig2/H_F.hpd +39 -0
  819. pyromat/data/ig2/H_F2_N.hpd +40 -0
  820. pyromat/data/ig2/H_F3_Si.hpd +40 -0
  821. pyromat/data/ig2/H_F_N.hpd +40 -0
  822. pyromat/data/ig2/H_F_O.hpd +40 -0
  823. pyromat/data/ig2/H_F_O3_S.hpd +41 -0
  824. pyromat/data/ig2/H_I.hpd +43 -0
  825. pyromat/data/ig2/H_I3_Si.hpd +44 -0
  826. pyromat/data/ig2/H_K.hpd +43 -0
  827. pyromat/data/ig2/H_K_O+.hpd +41 -0
  828. pyromat/data/ig2/H_K_O.hpd +44 -0
  829. pyromat/data/ig2/H_Li.hpd +43 -0
  830. pyromat/data/ig2/H_Li_O+.hpd +41 -0
  831. pyromat/data/ig2/H_Li_O.hpd +43 -0
  832. pyromat/data/ig2/H_Mg.hpd +43 -0
  833. pyromat/data/ig2/H_Mg_O+.hpd +41 -0
  834. pyromat/data/ig2/H_Mg_O.hpd +44 -0
  835. pyromat/data/ig2/H_N+.hpd +40 -0
  836. pyromat/data/ig2/H_N.hpd +43 -0
  837. pyromat/data/ig2/H_N3.hpd +39 -0
  838. pyromat/data/ig2/H_N_O.hpd +44 -0
  839. pyromat/data/ig2/H_N_O2.hpd +40 -0
  840. pyromat/data/ig2/H_N_O3.hpd +44 -0
  841. pyromat/data/ig2/H_Na.hpd +43 -0
  842. pyromat/data/ig2/H_Na_O+.hpd +41 -0
  843. pyromat/data/ig2/H_Na_O.hpd +44 -0
  844. pyromat/data/ig2/H_O+.hpd +40 -0
  845. pyromat/data/ig2/H_O-.hpd +40 -0
  846. pyromat/data/ig2/H_O.hpd +43 -0
  847. pyromat/data/ig2/H_O2.hpd +43 -0
  848. pyromat/data/ig2/H_O_Sr+.hpd +41 -0
  849. pyromat/data/ig2/H_O_Sr.hpd +44 -0
  850. pyromat/data/ig2/H_P.hpd +43 -0
  851. pyromat/data/ig2/H_S.hpd +43 -0
  852. pyromat/data/ig2/H_Si+.hpd +40 -0
  853. pyromat/data/ig2/H_Si.hpd +43 -0
  854. pyromat/data/ig2/He+.hpd +39 -0
  855. pyromat/data/ig2/He.hpd +38 -0
  856. pyromat/data/ig2/Hg.hpd +42 -0
  857. pyromat/data/ig2/I.hpd +42 -0
  858. pyromat/data/ig2/I2.hpd +57 -0
  859. pyromat/data/ig2/I2_Mg.hpd +42 -0
  860. pyromat/data/ig2/I2_Pb.hpd +42 -0
  861. pyromat/data/ig2/I2_Si.hpd +43 -0
  862. pyromat/data/ig2/I2_Sr.hpd +42 -0
  863. pyromat/data/ig2/I4_Pb.hpd +42 -0
  864. pyromat/data/ig2/I_Mg.hpd +42 -0
  865. pyromat/data/ig2/I_Na.hpd +39 -0
  866. pyromat/data/ig2/I_Pb.hpd +42 -0
  867. pyromat/data/ig2/I_Si.hpd +43 -0
  868. pyromat/data/ig2/K+.hpd +39 -0
  869. pyromat/data/ig2/K.hpd +42 -0
  870. pyromat/data/ig2/K2.hpd +42 -0
  871. pyromat/data/ig2/K2_O4_S.hpd +43 -0
  872. pyromat/data/ig2/K_O-.hpd +40 -0
  873. pyromat/data/ig2/K_O.hpd +43 -0
  874. pyromat/data/ig2/Kr+.hpd +39 -0
  875. pyromat/data/ig2/Kr.hpd +38 -0
  876. pyromat/data/ig2/Li+.hpd +39 -0
  877. pyromat/data/ig2/Li.hpd +42 -0
  878. pyromat/data/ig2/Li2.hpd +42 -0
  879. pyromat/data/ig2/Li2_O.hpd +44 -0
  880. pyromat/data/ig2/Li2_O2.hpd +42 -0
  881. pyromat/data/ig2/Li2_O4_S.hpd +43 -0
  882. pyromat/data/ig2/Li_N.hpd +43 -0
  883. pyromat/data/ig2/Li_N_O.hpd +43 -0
  884. pyromat/data/ig2/Li_O-.hpd +40 -0
  885. pyromat/data/ig2/Li_O.hpd +43 -0
  886. pyromat/data/ig2/Mg+.hpd +39 -0
  887. pyromat/data/ig2/Mg.hpd +42 -0
  888. pyromat/data/ig2/Mg2.hpd +42 -0
  889. pyromat/data/ig2/Mg_N.hpd +42 -0
  890. pyromat/data/ig2/Mg_O.hpd +44 -0
  891. pyromat/data/ig2/Mg_S.hpd +44 -0
  892. pyromat/data/ig2/Mo2_O6.hpd +39 -0
  893. pyromat/data/ig2/Mo3_O9.hpd +39 -0
  894. pyromat/data/ig2/Mo4_O12.hpd +39 -0
  895. pyromat/data/ig2/Mo5_O15.hpd +39 -0
  896. pyromat/data/ig2/Mo_O3.hpd +42 -0
  897. pyromat/data/ig2/N+.hpd +39 -0
  898. pyromat/data/ig2/N-.hpd +39 -0
  899. pyromat/data/ig2/N.hpd +42 -0
  900. pyromat/data/ig2/N2+.hpd +39 -0
  901. pyromat/data/ig2/N2-.hpd +39 -0
  902. pyromat/data/ig2/N2.hpd +50 -0
  903. pyromat/data/ig2/N2_O+.hpd +40 -0
  904. pyromat/data/ig2/N2_O.hpd +55 -0
  905. pyromat/data/ig2/N2_O3.hpd +43 -0
  906. pyromat/data/ig2/N2_O4.hpd +44 -0
  907. pyromat/data/ig2/N2_O5.hpd +44 -0
  908. pyromat/data/ig2/N3.hpd +38 -0
  909. pyromat/data/ig2/N_O+.hpd +40 -0
  910. pyromat/data/ig2/N_O.hpd +50 -0
  911. pyromat/data/ig2/N_O2-.hpd +40 -0
  912. pyromat/data/ig2/N_O2.hpd +52 -0
  913. pyromat/data/ig2/N_O3-.hpd +40 -0
  914. pyromat/data/ig2/N_O3.hpd +44 -0
  915. pyromat/data/ig2/N_S.hpd +43 -0
  916. pyromat/data/ig2/N_Si.hpd +43 -0
  917. pyromat/data/ig2/N_Si2.hpd +42 -0
  918. pyromat/data/ig2/N_V.hpd +44 -0
  919. pyromat/data/ig2/N_Zr.hpd +39 -0
  920. pyromat/data/ig2/Na+.hpd +39 -0
  921. pyromat/data/ig2/Na.hpd +42 -0
  922. pyromat/data/ig2/Na2.hpd +42 -0
  923. pyromat/data/ig2/Na2_O.hpd +39 -0
  924. pyromat/data/ig2/Na2_O4_S.hpd +47 -0
  925. pyromat/data/ig2/Na_O-.hpd +40 -0
  926. pyromat/data/ig2/Na_O.hpd +44 -0
  927. pyromat/data/ig2/Nb.hpd +38 -0
  928. pyromat/data/ig2/Nb_O.hpd +44 -0
  929. pyromat/data/ig2/Nb_O2.hpd +44 -0
  930. pyromat/data/ig2/Ne+.hpd +39 -0
  931. pyromat/data/ig2/Ne.hpd +38 -0
  932. pyromat/data/ig2/Ni.hpd +42 -0
  933. pyromat/data/ig2/Ni_O.hpd +39 -0
  934. pyromat/data/ig2/Ni_S.hpd +39 -0
  935. pyromat/data/ig2/O+.hpd +39 -0
  936. pyromat/data/ig2/O-.hpd +39 -0
  937. pyromat/data/ig2/O.hpd +38 -0
  938. pyromat/data/ig2/O10_P4.hpd +39 -0
  939. pyromat/data/ig2/O2+.hpd +39 -0
  940. pyromat/data/ig2/O2-.hpd +39 -0
  941. pyromat/data/ig2/O2.hpd +50 -0
  942. pyromat/data/ig2/O2_P.hpd +43 -0
  943. pyromat/data/ig2/O2_S.hpd +58 -0
  944. pyromat/data/ig2/O2_Si.hpd +49 -0
  945. pyromat/data/ig2/O2_Ta.hpd +43 -0
  946. pyromat/data/ig2/O2_Ti.hpd +45 -0
  947. pyromat/data/ig2/O2_V.hpd +43 -0
  948. pyromat/data/ig2/O2_Zr.hpd +42 -0
  949. pyromat/data/ig2/O3.hpd +42 -0
  950. pyromat/data/ig2/O3_S.hpd +44 -0
  951. pyromat/data/ig2/O_P.hpd +43 -0
  952. pyromat/data/ig2/O_Pb.hpd +39 -0
  953. pyromat/data/ig2/O_S.hpd +43 -0
  954. pyromat/data/ig2/O_S2.hpd +43 -0
  955. pyromat/data/ig2/O_Si.hpd +43 -0
  956. pyromat/data/ig2/O_Sr.hpd +44 -0
  957. pyromat/data/ig2/O_Ta.hpd +43 -0
  958. pyromat/data/ig2/O_Ti.hpd +44 -0
  959. pyromat/data/ig2/O_V.hpd +44 -0
  960. pyromat/data/ig2/O_Zr.hpd +44 -0
  961. pyromat/data/ig2/P+.hpd +39 -0
  962. pyromat/data/ig2/P.hpd +44 -0
  963. pyromat/data/ig2/P2.hpd +42 -0
  964. pyromat/data/ig2/P4.hpd +41 -0
  965. pyromat/data/ig2/Pb.hpd +38 -0
  966. pyromat/data/ig2/Pb2.hpd +41 -0
  967. pyromat/data/ig2/Pb_S.hpd +44 -0
  968. pyromat/data/ig2/S+.hpd +39 -0
  969. pyromat/data/ig2/S-.hpd +39 -0
  970. pyromat/data/ig2/S.hpd +45 -0
  971. pyromat/data/ig2/S2.hpd +42 -0
  972. pyromat/data/ig2/S8.hpd +54 -0
  973. pyromat/data/ig2/S_Si.hpd +43 -0
  974. pyromat/data/ig2/S_Sr.hpd +44 -0
  975. pyromat/data/ig2/Si+.hpd +39 -0
  976. pyromat/data/ig2/Si.hpd +42 -0
  977. pyromat/data/ig2/Si2.hpd +42 -0
  978. pyromat/data/ig2/Si3.hpd +43 -0
  979. pyromat/data/ig2/Sr.hpd +42 -0
  980. pyromat/data/ig2/Ta.hpd +42 -0
  981. pyromat/data/ig2/Ti+.hpd +39 -0
  982. pyromat/data/ig2/Ti-.hpd +39 -0
  983. pyromat/data/ig2/Ti.hpd +42 -0
  984. pyromat/data/ig2/V.hpd +42 -0
  985. pyromat/data/ig2/Xe+.hpd +39 -0
  986. pyromat/data/ig2/Xe.hpd +38 -0
  987. pyromat/data/ig2/Zn-.hpd +39 -0
  988. pyromat/data/ig2/Zn.hpd +42 -0
  989. pyromat/data/ig2/Zr.hpd +42 -0
  990. pyromat/data/ig2/e.hpd +38 -0
  991. pyromat/data/igmix/air.hpd +12 -0
  992. pyromat/data/igmix/f5.hpd +10 -0
  993. pyromat/data/igmix/h35.hpd +10 -0
  994. pyromat/data/mp/C2_H2_F4.hpd +332 -0
  995. pyromat/data/mp/C3_H2_F4_1.hpd +373 -0
  996. pyromat/data/mp/C_H4.hpd +454 -0
  997. pyromat/data/mp/C_O2.hpd +512 -0
  998. pyromat/data/mp/H2_O.hpd +592 -0
  999. pyromat/data/mp/N2.hpd +434 -0
  1000. pyromat/data/mp/O2.hpd +381 -0
  1001. pyromat/igtools.py +1800 -0
  1002. pyromat/reg.py +379 -0
  1003. pyromat/registry/_example.py +85 -0
  1004. pyromat/registry/if97.py +2278 -0
  1005. pyromat/registry/ig.py +1931 -0
  1006. pyromat/registry/ig2.py +1400 -0
  1007. pyromat/registry/igmix.py +1230 -0
  1008. pyromat/registry/mp1.py +4460 -0
  1009. pyromat/units.py +617 -0
  1010. pyromat/utility.py +841 -0
@@ -0,0 +1,1400 @@
1
+ import pyromat as pm
2
+ import numpy as np
3
+ import os
4
+
5
+
6
+
7
+ class ig2(pm.reg.__basedata__):
8
+ """Ideal gas class using the NASA polynomial equation of state.
9
+
10
+ ** Available Properties **
11
+ IG2 has property methods:
12
+ T() temperature (unit_temperature)
13
+ p() pressure (unit_pressure)
14
+ d() density (unit_matter / unit_volume)
15
+ v() specific volume (unit_volume / unit_matter)
16
+ cp() spec. heat (unit_energy / unit_temperature / unit_matter)
17
+ cv() spec. heat (unit_energy / unit_temperature / unit_matter)
18
+ gam() spec. heat ratio (dless)
19
+ e() internal energy (unit_energy / unit_matter)
20
+ f() free energy (unit_energy / unit_matter)
21
+ g() Gibbs energy (unit_energy / unit_matter)
22
+ h() enthalpy (unit_energy / unit_matter)
23
+ s() entropy (unit_energy / unit_temperature / unit_matter)
24
+ state() Calculates many properties!
25
+
26
+ These accept any of the following keyword arguments: T, p, d, v, e, h, s
27
+ h(T=452.)
28
+ h(d=1.3, p=3.4)
29
+ h(s=6.2, p=3.4)
30
+
31
+ In the back end, most properties require only temperature except entropy,
32
+ which requires temperature and pressure. When other properties are given,
33
+ temperature is needed, so additional calculations are necessary. In the
34
+ worst case, specifying entropy, enthalpy, or internal energy even requires
35
+ iteration. For performance, once temperature and pressure become available,
36
+ they should always be used. For enthalpy, pressure is not needed, so it
37
+ may be omitted with no ill effect.
38
+
39
+ ** Other Properties **
40
+ There are some properties that do not depend on the state; they only need
41
+ to be converted to the relevant unit system.
42
+ mw() molecular weight (unit_mass / unit_molar)
43
+ R() gas constant
44
+ Tlim() a two-element array with the min,max temperatures
45
+ supported by the data set.
46
+ atoms() returns a dictionary with a key entry for each atom in
47
+ the chemical formula and the corresponding integer
48
+ quantity of each.
49
+
50
+ For more information on any of these methods, access the in-line
51
+ documentation using Python's built-in "help()" function.
52
+ """
53
+
54
+
55
+ def _argparse(self, *varg, **kwarg):
56
+ """Parse the arguments supplied to an IG2 property method
57
+ T,p,d = _argparse(*varg, **kwarg)
58
+
59
+ _ARGPARSE automatically applies the default temperature and pressure,
60
+ def_T or def_p, from the pyromat.config system to deal with unspecified
61
+ parameters. All inputs are re-cast as numpy arrays of at least one
62
+ dimension and inputs are automatically converted from the configured
63
+ user units into kJ, kmol, m^3.
64
+
65
+ The returned variables are arrays of temperature, T, pressure, p, and
66
+ the density, d. Temperature will always be returned, and at least one
67
+ of p and d will be populated as well, but one of them may be None.
68
+ _argparse decides which to populate based on what is most efficient.
69
+ """
70
+ # 1) Handle varg and kward and their defaults
71
+ # 2) Apply the argument rules...
72
+ # 2.1: All arguments must be legal
73
+ # 2.2: Only 2 arguments
74
+ # 2.3: T, e, and h may not be specified together
75
+ # 2.4: d and v may not be specified together
76
+ # 3) Convert the arguments to arrays with dim 1 or greater
77
+ # 4) Convert to standard units
78
+ # 5) Process equivalent arguments
79
+ # 5.1: replace v with d
80
+ # 5.2: replace e or h with T
81
+ # 6) Check for out-of-bounds on basic arguments (This was shifted to last)
82
+ # 7) Case out the possible combinations
83
+ # 8) Broadcast the arrays appropriately
84
+ # 9) Calculate T,p,d
85
+
86
+
87
+ # Fancy tool for tracking iteration issues
88
+ debug = False
89
+
90
+ # 1) Handle varg and kwarg and apply defaults
91
+
92
+ # If varg is specified, assign its values to T,p
93
+ if len(varg) > 0:
94
+ if 'T' in kwarg:
95
+ raise pm.utility.PMParamError('T was specified both positionally and with a keyword.')
96
+ kwarg['T'] = varg[0]
97
+ if len(varg) > 1:
98
+ if 'p' in kwarg:
99
+ raise pm.utility.PMParamError('p was specified both positionally and with a keyword.')
100
+ kwarg['p'] = varg[1]
101
+ if len(varg) > 2:
102
+ raise pm.utility.PMParamError('There are only two positional arguments: T, p.')
103
+
104
+ # Count the number of arguments
105
+ nargs = len(kwarg)
106
+ if nargs == 1:
107
+ if 'T' not in kwarg:
108
+ kwarg['T'] = pm.config.def_T()
109
+ else:
110
+ kwarg['p'] = pm.config.def_p()
111
+ elif nargs == 0:
112
+ kwarg['T'] = pm.config.def_T()
113
+ kwarg['p'] = pm.config.def_p()
114
+
115
+ # 2) Apply the argument rules
116
+ # Re-measure the number of arguments and use sets to enforce
117
+ # the remaining rules
118
+ nargs = len(kwarg)
119
+ args = set(kwarg.keys())
120
+ # A set of the legal arguments
121
+ legal_args = set(['T','p','d','v','e','h','s'])
122
+
123
+ # 2.1: There may only be 2 arguments
124
+ if nargs>2:
125
+ raise pm.utility.PMParamError(
126
+ 'Specifying more than two simultaneous parameters is illegal.')
127
+
128
+ # 2.2: All arguments must be "legal" recognized arguments
129
+ these_args = args - legal_args
130
+ if these_args:
131
+ message = 'Unrecognized propert(y/ies):'
132
+ prefix = ' '
133
+ for name in these_args:
134
+ message += prefix + name
135
+ prefix = ', '
136
+ raise pm.utility.PMParamError(message)
137
+
138
+ # 2.3: T, e, and h may not be specified together
139
+ these_args = set(['T', 'e', 'h']).intersection(args)
140
+ if len(these_args) > 1:
141
+ message = 'Properties may not be specified together:'
142
+ prefix = ' '
143
+ for name in inverse_args:
144
+ message += prefix + name
145
+ prefix = ', '
146
+ raise pm.utility.PMParamError(message)
147
+
148
+ # 2.4: Density and specific volume cannot be specified together
149
+ if 'v' in args and 'd' in args:
150
+ raise pm.utility.PMParamError('Density (d) and specific volume (v) cannot be specified together.')
151
+
152
+ # 3) Convert all arguments to numpy arrays
153
+ # The asarray function does NOT copy the array if it is already
154
+ # a numpy array.
155
+ for name,value in kwarg.items():
156
+ value = np.asarray(value, dtype=float)
157
+ if value.ndim == 0:
158
+ value = np.reshape(value, (1,))
159
+ kwarg[name] = value
160
+
161
+ # 4) Convert the units appropriately
162
+ # This step will only make a copy of the array if the units need
163
+ # to be converted. Otherwise, the array is passed through verbatim
164
+ # As a result, the input array will ONLY be copied if it needs to
165
+ # be reshaped, converted, or retyped.
166
+ # 5) Replace v with d and e/h with T
167
+ if 'T' in kwarg:
168
+ kwarg['T'] = pm.units.temperature_scale(kwarg['T'], to_units='K')
169
+ if 'p' in kwarg:
170
+ kwarg['p'] = pm.units.pressure(kwarg['p'], to_units='Pa')
171
+ if 'd' in kwarg:
172
+ value = pm.units.volume(kwarg['d'], to_units='m3', exponent=-1)
173
+ kwarg['d'] = pm.units.matter(value, self.data['mw'], to_units='kmol')
174
+ if 'v' in kwarg:
175
+ # Convert and replace with d at the same time
176
+ value = pm.units.volume(kwarg['v'], to_units='m3')
177
+ kwarg['d'] = 1./pm.units.matter(value, self.data['mw'], to_units='kmol', exponent=-1)
178
+ if 'h' in kwarg:
179
+ value = kwarg['h']
180
+ value = pm.units.energy(value, to_units='kJ')
181
+ value = pm.units.matter(value, self.data['mw'], to_units='kmol', exponent=-1)
182
+ Tlow = self.data['Tlim'][0]
183
+ Thigh = self.data['Tlim'][-1]
184
+ T = np.full(value.shape, 0.5*(Tlow+Thigh))
185
+ I = np.ones(value.shape, dtype=bool)
186
+ self._iter1(self._h, 'T', value, T, I, Tlow, Thigh)
187
+ kwarg['T'] = T
188
+ if 'e' in kwarg:
189
+ value = kwarg['e']
190
+ value = pm.units.energy(value, to_units='kJ')
191
+ value = pm.units.matter(value, self.data['mw'], to_units='kmol', exponent=-1)
192
+ Tlow = self.data['Tlim'][0]
193
+ Thigh = self.data['Tlim'][-1]
194
+ T = np.full(value.shape, 0.5*(Tlow+Thigh))
195
+ I = np.ones(value.shape, dtype=bool)
196
+ self._iter1(self._e, 'T', value, T, I, Tlow, Thigh)
197
+ kwarg['T'] = T
198
+ if 's' in kwarg:
199
+ value = kwarg['s']
200
+ value = pm.units.energy(value, to_units='kJ')
201
+ value = pm.units.matter(value, self.data['mw'], to_units='kmol', exponent=-1)
202
+ value = pm.units.temperature(value, to_units='K', exponent=-1)
203
+ kwarg['s'] = value
204
+
205
+ # Convert R into J/kmol/K - use this for p = dRT
206
+ # Do NOT use this for s, e, and h relationships
207
+ R = 1000 * pm.units.const_Ru
208
+
209
+ T = p = d = None
210
+ # Entropy requires special iteration
211
+ if 's' in kwarg:
212
+ # If density is specified
213
+ if 'd' in args:
214
+ s,d = np.broadcast_arrays(kwarg['s'], kwarg['d'])
215
+ Tlow = self.data['Tlim'][0]
216
+ Thigh = self.data['Thigh'][-1]
217
+ T = np.full_like(s, 0.5*(Tlow+Thigh))
218
+ I = np.ones_like(s,dtype=bool)
219
+ self._iter1(self._sditer, 'T', s, T, I, Tlow, Thigh, param={'d':d})
220
+
221
+ # If pressure is specified
222
+ elif 'p' in kwarg:
223
+ s,p = np.broadcast_arrays(kwarg['s'], kwarg['p'])
224
+ # adjust entropy to the reference pressure
225
+ s += pm.units.const_Ru * np.log(p / self.data['pref'])
226
+ Tlow = self.data['Tlim'][0]
227
+ Thigh = self.data['Thigh'][-1]
228
+ T = np.full_like(s, 0.5*(Tlow+Thigh))
229
+ I = np.ones_like(s,dtype=bool)
230
+ self._iter1(self._s, 'T', s, T, I, Tlow, Thigh)
231
+ # If temperature is specified
232
+ elif 'T' in kwarg:
233
+ s,T = np.broadcast_arrays(kwarg['s'], kwarg['T'])
234
+ # Calculate the reference entropy at the specified temperature
235
+ s0 = self._s(T)[0]
236
+ p = self.data['pref'] * np.exp((s0-s)/pm.units.const_Ru)
237
+ # Otherwise, this is an illegal combination!
238
+ else:
239
+ raise pm.utility.PMParamError(f'Cannot simultaneously specify parameters: {args}')
240
+ # If temperature is specified
241
+ elif 'T' in kwarg:
242
+ # There isn't much work to do
243
+ if 'p' in kwarg:
244
+ T,p = np.broadcast_arrays(kwarg['T'],kwarg['p'])
245
+ elif 'd' in kwarg:
246
+ T,d = np.broadcast_arrays(kwarg['T'],kwarg['d'])
247
+ else:
248
+ message = 'Please report a bug: Unhandled event [T] in ig2._argparse with args:'
249
+ prefix = ' '
250
+ for name in kwarg:
251
+ message += prefix + name
252
+ prefix = ', '
253
+ raise pm.utility.PMParamError(message)
254
+ # If pressure is specified
255
+ elif 'p' in kwarg:
256
+ if 'd' in kwarg:
257
+ p,d = np.broadcast_arrays(kwarg['p'], kwarg['d'])
258
+ T = p / (R * d)
259
+ else:
260
+ message = 'Please report a bug: Unhandled event [p] in ig2._argparse with args:'
261
+ prefix = ' '
262
+ for name in kwarg:
263
+ message += prefix + name
264
+ prefix = ', '
265
+ raise pm.utility.PMParamError(message)
266
+ else:
267
+ message = 'Please report a bug: Unhandled event [MASTER] in ig2._argparse with args:'
268
+ prefix = ' '
269
+ for name in kwarg:
270
+ message += prefix + name
271
+ prefix = ', '
272
+ raise pm.utility.PMParamError(message)
273
+
274
+ # Test the temperatures for out-of-bounds
275
+ I = np.logical_or(T < self.data['Tlim'][0], T > self.data['Tlim'][-1])
276
+ if I.all():
277
+ raise pm.utility.PMParamError('All of the specified states were out-of-bounds. '
278
+ 'Legal temperatures for {} are between {} and {} Kelvin.'.format(self.data['id'], self.data['Tlim'][0], self.data['Tlim'][-1]))
279
+ elif I.any():
280
+ T[I] = pm.config['def_oob']
281
+ pm.utility.print_warning('Some of the states were out of bounds - setting to config[\'def_oob\']. '
282
+ 'Legal temperatures for {} are between {} and {} Kelvin.'.format(self.data['id'], self.data['Tlim'][0], self.data['Tlim'][-1]))
283
+ return T,p,d
284
+
285
+
286
+ def _crange(self, T, index):
287
+ """Return the down-select boolean array for temperature values in range "index".
288
+ I = _crange(T,index)
289
+
290
+ I is a boolean array used for boolean indexing of the state properties.
291
+ I will be returned such that Tlim[index] <= T[I] < Tlim[index]
292
+ """
293
+ # If the index corresponds to the last range segment, then make
294
+ # the upper boundary inclusive.
295
+ if index == len(self.data['Tlim'])-2:
296
+ return np.logical_and(\
297
+ T >= self.data['Tlim'][index],
298
+ T <= self.data['Tlim'][index+1])
299
+
300
+ return np.logical_and(\
301
+ T >= self.data['Tlim'][index],
302
+ T < self.data['Tlim'][index+1])
303
+
304
+
305
+ def _test(self, tab, report=None):
306
+ """Test the ig data model against a series of criteria
307
+
308
+ _test(tab) # Prints results to stdout
309
+ OR
310
+ _test(tab, report='/path/to/file') # Writes a report file
311
+ OR
312
+ _test(tab, report=open_file_descriptor) # Appends to an open report file
313
+
314
+ tab is a 2D array-like object (numpy array or nested lists) with tabulated
315
+ "truth" data for testing against the calculated values. The tab table must
316
+ have four columns with units:
317
+
318
+ T (K), cp (J/mol/K), s (J/mol/K), h-h(298.15) (kJ/mol/K)
319
+
320
+ These units and values are chosen to be consistent with the typical tabulation
321
+ of JANAF tables. Please note that the enthalpy is in kJ and not J, and that
322
+ it is expressed as the difference from standard temperature (298.15K).
323
+
324
+ Returns True when all criteria are satisfied and False otherwise.
325
+
326
+ The criteria are:
327
+ 1. Data integrity
328
+ 1.1 Tlim must be monotonic
329
+ 1.2 Tlim dimensions must match coefficient dimensions
330
+ len(Tlim) == len(C)+1
331
+ 1.3 There must be 8 coefficients
332
+ len(C[ii]) == 8 for all ii in range(len(C))
333
+
334
+ DATA INTEGRITY FAILURES ARE FATAL
335
+ FAILURES HERE WILL HALT THE TEST
336
+
337
+ 2. Model continuity
338
+ 2.1 cp should not have discontinuities at the Tlim boundaries
339
+ 2.2 h should not have discontinuities
340
+ 2.3 s should not have discontinuities
341
+
342
+ 3. Tabulated reference data should agree with the model in the currently
343
+ configured unit system.
344
+ 3.1 cp should agree with tabulated reference data to within 0.01%
345
+ 3.2 s should agree with reference data to within 0.1 J/mol/K
346
+ 3.3 h should agree with reference data to wihtin 0.01 kJ/mol/K
347
+ 3.4 density at 1000K and 10bar should agree to within .01%.
348
+ 3.5 R should agree to within .01%.
349
+ 3.6 cv should match cp-R at all tabulated conditions to within .01%.
350
+ 3.7 e should match h-RT at all tabulated conditions to within .01%.
351
+ 3.8 gam should match cp/cv at all tabulated conditions to .001
352
+
353
+ Optional keywords that configure the test:
354
+ keyword (default)
355
+ Description
356
+
357
+ """
358
+ # Recurse with a fresh file descriptor if the file is a string
359
+ if isinstance(report, str):
360
+ with open(report, 'w') as ff:
361
+ return self._test(report=ff)
362
+ elif report is None:
363
+ report = sys.stdout
364
+
365
+ # Perform the checks
366
+ result = True
367
+
368
+ Tlim = self.data['Tlim']
369
+ C = self.data['C']
370
+
371
+ report.write(repr(self) + '\n1. Data integrity\n')
372
+
373
+ # 1.1: Tlim must be monotonic
374
+ test = True
375
+ for t0,t1 in zip(Tlim[:-1], Tlim[1:]):
376
+ test = test and (t0<t1)
377
+ if test:
378
+ report.write('[passed]')
379
+ else:
380
+ report.write('[FAILED]')
381
+ report.write(' 1.1: Tlim must increase monotonically\n')
382
+ result = result and test
383
+
384
+ # 1.2: Tlim and C dims must match
385
+ test = (len(Tlim) == len(C)+1)
386
+ result = result and test
387
+ if test:
388
+ report.write('[passed]')
389
+ else:
390
+ report.write('[FAILED]')
391
+ report.write(' 1.2: Tlim and C dimensions must be compatible\n')
392
+
393
+ # 1.3: C must have 8 coefficients
394
+ test = True
395
+ for cc in C:
396
+ test = test and (len(cc)==8)
397
+ result = result and test
398
+ if test:
399
+ report.write('[passed]')
400
+ else:
401
+ report.write('[FAILED]')
402
+ report.write(' 1.3: All temperature regions must have 8 coefficients\n')
403
+
404
+ if not result:
405
+ report.write('[FATAL] Data integrity test failed. Aborting further checks.\n')
406
+ return False
407
+
408
+ # 2. tests for discontinuities
409
+ report.write('2. Model continuity\n')
410
+ cptest = []
411
+ htest = []
412
+ stest = []
413
+ for T in Tlim[1:-1]:
414
+ T = pm.units.temperature_scale(T, from_units='K')
415
+ # Perturb the temperature by +/- 0.01%
416
+ TT = T * np.array([0.9999, 1.0001])
417
+ # Check specific heat continuity to within 0.01%
418
+ cp = self.cp(TT)
419
+ if np.abs(cp[0] - cp[1]) / cp[0] > .0001:
420
+ cptest.append(T)
421
+ # Check enthalpy continuity to within 0.01%
422
+ h = self.h(TT)
423
+ # Adjust for the known change in temperature
424
+ h[1] -= cp[1] * T * .0001
425
+ h[0] += cp[0] * T * .0001
426
+ if np.abs(h[0] - h[1]) / h[0] > .0001:
427
+ htest.append(T)
428
+ s = self.s(TT)
429
+ # Adjust for the known change in temperature
430
+ s[1] -= cp[1] * .0001
431
+ s[0] += cp[0] * .0001
432
+ if np.abs(s[0] - s[1]) / s[0] > .0001:
433
+ stest.append(T)
434
+
435
+ if cptest:
436
+ report.write('[FAILED]')
437
+ result = False
438
+ else:
439
+ report.write('[passed]')
440
+ report.write(' 2.1 cp() must be continuous at piecewise boundaries.\n')
441
+ if cptest:
442
+ report.write(' Failure at T=')
443
+ for T in cptest:
444
+ report.write('%.2f,'%T)
445
+ report.write('\n')
446
+
447
+ if htest:
448
+ report.write('[FAILED]')
449
+ result = False
450
+ else:
451
+ report.write('[passed]')
452
+ report.write(' 2.2 h() must be continuous at piecewise boundaries.\n')
453
+ if htest:
454
+ report.write(' Failure at T=')
455
+ for T in htest:
456
+ report.write('%.2f,'%T)
457
+ report.write('\n')
458
+
459
+ if stest:
460
+ report.write('[FAILED]')
461
+ result = False
462
+ else:
463
+ report.write('[passed]')
464
+ report.write(' 2.3 s() must be continuous at piecewise boundaries.\n')
465
+ if stest:
466
+ report.write(' Failure at T=')
467
+ for T in stest:
468
+ report.write('%.2f,'%T)
469
+ report.write('\n')
470
+
471
+ # 3. Test for model consistency with tabulated values
472
+ # Start by converting the table into the currently configured units
473
+ report.write('3. Numerical consistency checks\n')
474
+ TAB = np.array(self.data['TAB'])
475
+ T = pm.units.temperature_scale(TAB[:,0], from_units='K')
476
+ p = pm.units.pressure(self._pref_bar, from_units='bar')
477
+ cp_test = self.cp(T)
478
+ cv_test = self.cv(T)
479
+ h_test = self.h(T)
480
+ e_test = self.e(T)
481
+ gam_test = self.gam(T)
482
+ s_test = self.s(T=T, p=p)
483
+
484
+
485
+ cp = pm.units.energy(TAB[:,1], from_units='J')
486
+ pm.units.matter(cp, self.data['mw'], from_units='mol', inplace=True, exponent=-1)
487
+ pm.units.temperature(cp, from_units='K', inplace=True, exponent=-1)
488
+
489
+ s = pm.units.energy(TAB[:,2], from_units='J')
490
+ pm.units.matter(s, self.data['mw'], from_units='mol', inplace=True, exponent=-1)
491
+ pm.units.temperature(s, from_units='K', inplace=True, exponent=-1)
492
+ # Convert the entropy error threshold too
493
+ serr = pm.units.energy(0.1, from_units='J')
494
+ serr = pm.units.matter(serr, self.data['mw'], from_units='mol', exponent=-1)
495
+ serr = pm.units.temperature(serr, from_units='K', exponent=-1)
496
+
497
+ h0 = self.h(pm.units.temperature_scale(298.15, from_units='K'))
498
+ h = pm.units.energy(TAB[:,4], from_units='kJ')
499
+ pm.units.matter(h, self.data['mw'], from_units='mol', inplace=True, exponent=-1)
500
+
501
+ # Convert the enthalpy error threshold too
502
+ # herr is also used below on energy checks
503
+ herr = pm.units.energy(0.01, from_units='kJ')
504
+ herr = pm.units.matter(herr, self.data['mw'], from_units='mol', exponent=-1)
505
+
506
+ I = (np.abs(cp_test - cp)/cp > .001)
507
+ if np.any(I):
508
+ result = False
509
+ report.write('[FAILED]')
510
+ else:
511
+ report.write('[passed]')
512
+ report.write(' 3.1 cp must agree with tabulated data to within 0.1%\n')
513
+ if np.all(I):
514
+ report.write(' Failed at all temperatures.\n')
515
+ elif np.any(I):
516
+ report.write(' Failed at T=')
517
+ for tt in T[I]:
518
+ report.write('%.2f,'%tt)
519
+ report.write('\n')
520
+
521
+ I = np.abs(s_test - s) > serr
522
+ if np.any(I):
523
+ report.write('[FAILED]')
524
+ result = False
525
+ else:
526
+ report.write('[passed]')
527
+ report.write(' 3.2 s must agree with tabulated data to within 0.1 J/mol/K\n')
528
+ if np.all(I):
529
+ report.write(' Failed at all temperatures.\n')
530
+ elif np.any(I):
531
+ report.write(' Failed at T=')
532
+ for tt in T[I]:
533
+ report.write('%.2f,'%tt)
534
+ report.write('\n')
535
+
536
+ # 3.3 h must agree with tabulated data
537
+ I = np.abs(h_test - h0 - h) > np.maximum(herr, np.abs(h) * .001)
538
+ if np.any(I):
539
+ report.write('[FAILED]')
540
+ result = False
541
+ else:
542
+ report.write('[passed]')
543
+ report.write(' 3.3 h must agree with tabulated data to within 0.01 kJ/mol or 0.1%\n')
544
+ if np.all(I):
545
+ report.write(' Failed at all temperatures.\n')
546
+ elif np.any(I):
547
+ report.write(' Failed at T=')
548
+ for tt in T[I]:
549
+ report.write('%.2f,'%tt)
550
+ report.write('\n')
551
+
552
+ # 3.4 density at 1000K and 10bar should agree to within .01%.
553
+ TT = 1000.
554
+ pp = 10.
555
+ dd = pp*1e5 / (pm.units.const_Ru * 1000.)
556
+ dd = pm.units.matter(dd, self.data['mw'], from_units='mol')
557
+ dd = pm.units.volume(dd, from_units='m3', exponent=-1)
558
+ TT = pm.units.temperature_scale(TT, from_units = 'K')
559
+ pp = pm.units.pressure(pp, from_units='bar')
560
+
561
+ if np.abs(self.d(T=TT, p=pp) - dd)/dd > .0001:
562
+ report.write('[FAILED]')
563
+ result = False
564
+ else:
565
+ report.write('[passed]')
566
+ report.write(' 3.4 Density at 1000K and 10bar must match IG law to within .01%\n')
567
+
568
+ # 3.5 R should agree to within .01%.
569
+ R = pm.units.energy(pm.units.const_Ru, from_units='J')
570
+ R = pm.units.matter(R, self.data['mw'], from_units='mol', exponent=-1)
571
+ R = pm.units.temperature(R, from_units='K', exponent=-1)
572
+ if np.abs(self.R() - R)/R > .0001:
573
+ report.write('[FAILED]')
574
+ result = False
575
+ else:
576
+ report.write('[passed]')
577
+ report.write(' 3.5 Ideal gas constant must match to within 0.01%\n')
578
+
579
+ # 3.6 cv should match cp-R at all tabulated conditions to within .01%.
580
+ I = np.abs(cv_test + self.R() - cp_test)/cv_test > .0001
581
+ if np.any(I):
582
+ report.write('[FAILED]')
583
+ result = False
584
+ else:
585
+ report.write('[passed]')
586
+ report.write(' 3.6: cv == cp - R to within .01% at all tabulated values\n')
587
+ if np.all(I):
588
+ report.write(' Failed at all temperatures.\n')
589
+ elif np.any(I):
590
+ report.write(' Failed at T=')
591
+ for tt in T[I]:
592
+ report.write('%.2f,'%tt)
593
+ report.write('\n')
594
+
595
+ # 3.7 e should match h-RT at all tabulated conditions to within .01 kJ/mol.
596
+ # Borrow the same herr as from the enthalpy checks
597
+ I = np.abs(e_test + self.R()*T - h_test)/e_test > herr
598
+ if np.any(I):
599
+ report.write('[FAILED]')
600
+ result = False
601
+ else:
602
+ report.write('[passed]')
603
+ report.write(' 3.7: e == h - R*T to within .01 kJ/mol at all tabulated values\n')
604
+ if np.all(I):
605
+ report.write(' Failed at all temperatures.\n')
606
+ elif np.any(I):
607
+ report.write(' Failed at T=')
608
+ for tt in T[I]:
609
+ report.write('%.2f,'%tt)
610
+ report.write('\n')
611
+
612
+ # 3.8 gam should match cp/cv at all tabulated conditions to .001
613
+ I = np.abs(gam_test - cp_test/cv_test) > .001
614
+ if np.any(I):
615
+ report.write('[FAILED]')
616
+ result = False
617
+ else:
618
+ report.write('[passed]')
619
+ report.write(' 3.7: gam = cp/cv to within .001 at all tabulated values\n')
620
+ if np.all(I):
621
+ report.write(' Failed at all temperatures.\n')
622
+ elif np.any(I):
623
+ report.write(' Failed at T=')
624
+ for tt in T[I]:
625
+ report.write('%.2f,'%tt)
626
+ report.write('\n')
627
+
628
+ return result
629
+
630
+
631
+ def _iter1(self, fn, prop, y, x, Ids, xmin, xmax,
632
+ ep=1e-6, Nmax=20, fx_index=1, verbose=False,
633
+ param={}):
634
+ """Invert an inner routine.
635
+
636
+ _iter1(fn, prop, y, x, Ids, xmin, xmax,)
637
+
638
+ Iteration is performed in-place on the x array.
639
+
640
+ *** Required Parameters ***
641
+ fn The inner routine (method) to be inverted. It must have a
642
+ call signature
643
+ f, fx0, ... = fn(x0, x1, ..., diff)
644
+ where f is the value of fn, and fx0 is the derivative of fn
645
+ with respect to prop0. The fx_index keyword can be used to
646
+ change where fx is found in the returned tuple. By default
647
+ it is 1.
648
+ prop The string keyword index of the property to be calculated.
649
+ y An array of N target values for fn().
650
+ x The result array. It should be an N-element floating point
651
+ array that has already been initialized.
652
+ Ids A down-select boolean index array; only x[Ids],y[Ids] will
653
+ be evaluated. This allows iteration in-place on data sets
654
+ where only a portion of the data require iteration. If y is
655
+ a floating point array with N elements, Ids must be a bool
656
+ array with N elements. It will specify a down-selected
657
+ data set with M elements, where M<=N.
658
+ xmin, xmax Upper and lower limit arrays for the x values. These must
659
+ broadcastable to match x and y. Even values outside of the
660
+ down-select region should have legal values.
661
+ *** Optional Parameters ***
662
+ ep Epsilon; fractional error permitted in y (default 1e-6)
663
+ Nmax Maximum number of iterations (default 20)
664
+ fx_index The location of the property derivative in the call
665
+ signature (default 1)
666
+ param A dicitonary of keyword arguments are passed directly to the
667
+ inner routine being inverted.
668
+
669
+ """
670
+ # As the iteration progresses, the number of True elements in
671
+ # Ids will decrease until they are all false
672
+ # There are some important intermediate values that will also
673
+ # require indexable arrays
674
+ dx = np.zeros_like(y, dtype=float)
675
+ error = np.zeros_like(dx, dtype=float)
676
+ IooB = np.zeros_like(Ids, dtype=bool)
677
+
678
+ arg = param.copy()
679
+ count = 0
680
+ while Ids.any():
681
+ # Build the new argument list
682
+ for k,v in param.items():
683
+ # For any array arguments, shrink them along with Ids
684
+ if isinstance(v,np.ndarray):
685
+ arg[k] = v[Ids]
686
+ # Shrink the primary property array
687
+ arg[prop] = x[Ids]
688
+ # Evaluate the funciton and isolate its derivative
689
+ FF = fn( diff=True, **arg)
690
+ yy = FF[0]
691
+ yyx = FF[fx_index]
692
+ # note that x[Ids], yy, yyx, and all the other floating
693
+ # intermediates are now in m-space; the sub-set of values
694
+ # still under iteration.
695
+ # Calculate the error, the linear change in x, and the new x
696
+ error[Ids] = y[Ids] - yy
697
+ dx[Ids] = error[Ids] / yyx
698
+ if verbose:
699
+ print(x, yy, yyx, dx, Ids)
700
+ x[Ids] += dx[Ids]
701
+ # An out-of-bounds index
702
+ IooB = np.logical_or( x < xmin, x > xmax)
703
+ count_oob = 0
704
+ while IooB.any():
705
+ dx[IooB] /= 2.
706
+ x[IooB] -= dx[IooB]
707
+ IooB = np.logical_or( x < xmin, x > xmax)
708
+ # Prevent a while-loop-trap
709
+ count_oob += 1
710
+ if count_oob>Nmax:
711
+ raise pm.utility.PMAnalysisError(
712
+ 'iter1_() failed to produce a guess that was in-bounds')
713
+
714
+ # Check the iteration convergence
715
+ Ids[Ids] = abs(error[Ids]) > abs(ep*y[Ids])
716
+ # Prevent a while-loop-trap
717
+ count += 1
718
+ if count>Nmax:
719
+ pm.utility.print_warning(\
720
+ 'iter1_() failed to converge for %d elements after %d attempts'%(\
721
+ Ids.sum(), Nmax))
722
+ return
723
+
724
+ def _sditer(self, T, d, diff=1):
725
+ s,sT = self._s(T, diff)
726
+ R = 1000 * pm.units.const_Ru
727
+ s -= pm.units.const_Ru * np.log(d * R * T / self.data['pref'])
728
+ if diff:
729
+ sT -= pm.units.const_Ru/T
730
+ else:
731
+ sT = None
732
+ return s,sT
733
+
734
+ def _cp(self, T):
735
+ """Constant pressure specific heat
736
+ _cp(T)
737
+
738
+ Expects temperature in Kelvin and returns cp in kJ/kmol/K
739
+ """
740
+ out = np.full_like(T,pm.config['def_oob'],dtype=float)
741
+ # Loop through the piece-wise temperature ranges
742
+ for index in range(len(self.data['Tlim'])-1):
743
+ # Which elements are in-range?
744
+ I = self._crange(T,index)
745
+ out[I] = 0.
746
+ for c in self.data['C'][index][4::-1]:
747
+ out[I] = c + out[I]*T[I]
748
+ return pm.units.const_Ru * out
749
+
750
+
751
+ def _h(self, T, diff=False):
752
+ """Enthalpy
753
+ h,hT = _h(T)
754
+
755
+ Expects temperature in Kelvin and returns h in kJ/kmol
756
+
757
+ If the optional keyword, diff, is True, then the first derivative of
758
+ enthalpy is also returned; otherwise it is None. This is more
759
+ efficient than calculating specific heat separately.
760
+ """
761
+ out = np.full_like(T,pm.config['def_oob'],dtype=float)
762
+ dh = None
763
+ if diff:
764
+ dh = np.full_like(T,pm.config['def_oob'],dtype=float)
765
+ # Loop through the piece-wise temperature ranges
766
+ for index in range(len(self.data['Tlim'])-1):
767
+ # Which elements are in-range?
768
+ I = self._crange(T,index)
769
+ out[I] = 0.
770
+ if diff:
771
+ dh[I] = 0.
772
+ term = 5.
773
+ for c in self.data['C'][index][4::-1]:
774
+ temp = (c/term + out[I])
775
+ if diff:
776
+ dh[I] = temp + T[I]*dh[I]
777
+ out[I] = T[I]*temp
778
+ term -= 1.
779
+ out[I] += self.data['C'][index][5]
780
+ if diff:
781
+ dh *= pm.units.const_Ru
782
+ return pm.units.const_Ru * out, dh
783
+
784
+
785
+ def _g(self, T, diff=False):
786
+ """Gibbs energy at the reference pressure
787
+ g,gT = _g(T)
788
+
789
+ Expects temperature in Kelvin and returns g in kJ/kmol
790
+
791
+ If the optional keyword, diff, is True, then the first derivative of
792
+ Gibbs energy is also returned; otherwise it is None. This is more
793
+ efficient than calculating specific heat separately.
794
+ """
795
+ out = np.full_like(T,pm.config['def_oob'],dtype=float)
796
+ dg = None
797
+ if diff:
798
+ dg = np.full_like(T,pm.config['def_oob'],dtype=float)
799
+ # Loop through the piece-wise temperature ranges
800
+ for index in range(len(self.data['Tlim'])-1):
801
+ # Which elements are in-range?
802
+ I = self._crange(T,index)
803
+ t = T[I]
804
+ logt = np.log(t)
805
+ C = self.data['C'][index]
806
+ out[I] = -C[0]*t*logt + C[5] + t*(C[0]-C[6] + t*(-0.5*C[1] + t*(-1./6.*C[2] + t*(-1./12.*C[3] + t*(-.05*C[4])))))
807
+ if diff:
808
+ dg[I] = -C[0]*(1+logt) + C[0]-C[6] + t*(-C[1] + t*(-0.5*C[2] + t*(-1./3.*C[3] + t*(-.25*C[4]))))
809
+ if diff:
810
+ dg *= pm.units.const_Ru
811
+ return pm.units.const_Ru * out, dg
812
+
813
+
814
+ def _e(self, T, diff=False):
815
+ """Ineternal energy
816
+ e,eT = _e(T)
817
+
818
+ Expects temperature in Kelvin and returns h in kJ/kmol
819
+
820
+ If the optional keyword, diff, is True, then the first derivative of
821
+ enthalpy is also returned; otherwise it is None. This is more
822
+ efficient than calculating specific heat separately.
823
+ """
824
+ e,de = self._h(T,diff)
825
+ e -= pm.units.const_Ru*T
826
+ if diff:
827
+ de -= pm.units.const_Ru
828
+ return e,de
829
+
830
+ def _f(self, T, diff=False):
831
+ """Free (Helmholtz) energy at the reference pressure
832
+ f,fT = _f(T)
833
+
834
+ Expects temperature in Kelvin and returns h in kJ/kmol
835
+
836
+ If the optional keyword, diff, is True, then the first derivative of
837
+ free energy is also returned; otherwise it is None. This is more
838
+ efficient than calculating specific heat separately.
839
+ """
840
+ f,df = self._g(T,diff)
841
+ f -= pm.units.const_Ru*T
842
+ if diff:
843
+ df -= pm.units.const_Ru
844
+ return f,df
845
+
846
+ def _s(self, T, diff=False):
847
+ """Entropy at reference pressure
848
+
849
+ s, sT = _s(T, diff=True)
850
+
851
+ Expects temperature in Kelvin, p in bar, and returns s in kJ/kmol/K
852
+
853
+ If the optional keyword, diff, is True, then the derivative of entropy
854
+ with respect to temperature is also returned. Otherwise, it is returned
855
+ as None.
856
+ """
857
+ out = np.full_like(T,pm.config['def_oob'],dtype=float)
858
+ sT = None
859
+ if diff:
860
+ sT = np.full_like(T,pm.config['def_oob'],dtype=float)
861
+ # Loop through the piece-wise temperature ranges
862
+ for index in range(len(self.data['Tlim'])-1):
863
+ # Which elements are in-range?
864
+ I = self._crange(T,index)
865
+ out[I] = 0.
866
+ if diff:
867
+ sT[I] = 0.
868
+ term = 4.
869
+ for c in self.data['C'][index][4:0:-1]:
870
+ if diff:
871
+ sT[I] = out[I] + T[I]*sT[I]
872
+ out[I] = c/term + T[I]*out[I]
873
+ term -= 1.
874
+ if diff:
875
+ sT[I] = out[I] + T[I]*sT[I]
876
+ sT[I] += self.data['C'][index][0] / T[I]
877
+ out[I] = T[I]*out[I]\
878
+ + self.data['C'][index][6]\
879
+ + self.data['C'][index][0] * np.log(T[I])
880
+
881
+ # Rescale the outputs
882
+ out *= pm.units.const_Ru
883
+ if diff:
884
+ sT *= pm.units.const_Ru
885
+ return out, sT
886
+
887
+
888
+
889
+ def Tlim(self):
890
+ """Temperature limits
891
+ (Tmin, Tmax) = Tlim()
892
+ Returns the temperature limits on the ig data set.
893
+
894
+ Accepts None
895
+ Returns unit_temperature
896
+ """
897
+ Tmin = pm.units.temperature_scale(self.data['Tlim'][0], from_units='K')
898
+ Tmax = pm.units.temperature_scale(self.data['Tlim'][-1], from_units='K')
899
+ return (Tmin,Tmax)
900
+
901
+ #
902
+ # EOS methods
903
+ #
904
+ def d(self,*varg, **kwarg):
905
+ """Density
906
+ d(...)
907
+
908
+ All ideal gas properties accept two other properties as flexible inputs
909
+ Below are the recognized keywords, their meaning, and the config entries
910
+ that determine their units.
911
+ T temperature unit_temperature
912
+ p pressure unit_pressure
913
+ d density unit_matter / unit_volume
914
+ v specific volume unit_volume / unit_matter
915
+ e internal energy unit_energy / unit_matter
916
+ h enthalpy unit_energy / unit_matter
917
+ s entropy unit_energy / unit_matter / unit_temperature
918
+
919
+ If no keywords are specified, the positional arguments are interpreted
920
+ as (T,p). To configure their defaults, use the def_T and def_p config
921
+ entries.
922
+
923
+ Returns density in unit_matter / unit_volume
924
+ """
925
+ T,p,d = self._argparse(*varg, **kwarg)
926
+ if d is None:
927
+ d = p / (1000*pm.units.const_Ru * T)
928
+ scale = pm.units.matter(1., self.data['mw'], from_units='kmol')
929
+ scale = pm.units.volume(scale, from_units='m3', exponent=-1)
930
+ np.multiply(d, scale, out=d)
931
+ return d
932
+
933
+ def v(self, *varg, **kwarg):
934
+ """Specific volume
935
+ v(...)
936
+
937
+ All ideal gas properties accept two other properties as flexible inputs
938
+ Below are the recognized keywords, their meaning, and the config entries
939
+ that determine their units.
940
+ T temperature unit_temperature
941
+ p pressure unit_pressure
942
+ d density unit_matter / unit_volume
943
+ v specific volume unit_volume / unit_matter
944
+ e internal energy unit_energy / unit_matter
945
+ h enthalpy unit_energy / unit_matter
946
+ s entropy unit_energy / unit_matter / unit_temperature
947
+
948
+ If no keywords are specified, the positional arguments are interpreted
949
+ as (T,p). To configure their defaults, use the def_T and def_p config
950
+ entries.
951
+
952
+ Returns voume in unit_volume / unit_matter
953
+ """
954
+ return 1./self.d(*varg, **kwarg)
955
+
956
+ def T(self, *varg, **kwarg):
957
+ """Temperature
958
+ T(...)
959
+
960
+ All ideal gas properties accept two other properties as flexible inputs
961
+ Below are the recognized keywords, their meaning, and the config entries
962
+ that determine their units.
963
+ T temperature unit_temperature
964
+ p pressure unit_pressure
965
+ d density unit_matter / unit_volume
966
+ v specific volume unit_volume / unit_matter
967
+ e internal energy unit_energy / unit_matter
968
+ h enthalpy unit_energy / unit_matter
969
+ s entropy unit_energy / unit_matter / unit_temperature
970
+
971
+ If no keywords are specified, the positional arguments are interpreted
972
+ as (T,p). To configure their defaults, use the def_T and def_p config
973
+ entries.
974
+
975
+ Returns temperature in unit_temperature
976
+ """
977
+ # T is a special case. If there is only one parameter given,
978
+ # the default should not be T=def_T, so we need to override
979
+ # the behavior of _argparse.
980
+ if len(varg) + len(kwarg) == 1:
981
+ kwarg['p'] = pm.config['def_p']
982
+
983
+ T,p,d = self._argparse(*varg, **kwarg)
984
+ pm.units.temperature_scale(T, from_units='K', inplace=True)
985
+ return T
986
+
987
+ def p(self, *varg, **kwarg):
988
+ """Pressure
989
+ p(...)
990
+
991
+ All ideal gas properties accept two other properties as flexible inputs
992
+ Below are the recognized keywords, their meaning, and the config entries
993
+ that determine their units.
994
+ T temperature unit_temperature
995
+ p pressure unit_pressure
996
+ d density unit_matter / unit_volume
997
+ v specific volume unit_volume / unit_matter
998
+ e internal energy unit_energy / unit_matter
999
+ h enthalpy unit_energy / unit_matter
1000
+ s entropy unit_energy / unit_matter / unit_temperature
1001
+
1002
+ If no keywords are specified, the positional arguments are interpreted
1003
+ as (T,p). To configure their defaults, use the def_T and def_p config
1004
+ entries.
1005
+
1006
+ Returns pressure in unit_pressure
1007
+ """
1008
+ T,p,d = self._argparse(*varg, **kwarg)
1009
+ if p is None:
1010
+ p = d * 1000*pm.units.const_Ru * T
1011
+ pm.units.pressure(p, from_units='Pa', inplace=True)
1012
+ return p
1013
+
1014
+ def mw(self, *varg, **kwarg):
1015
+ """Molecular weight
1016
+ mw(...)
1017
+
1018
+ Ignores the arguments are returns molecular weight as
1019
+ unit_mass / unit_molar
1020
+ """
1021
+ mw = pm.units.mass(self.data['mw'],from_units='g')
1022
+ mw = pm.units.molar(mw,from_units='mol',exponent=-1)
1023
+ return mw
1024
+
1025
+ def R(self,T=None,p=None):
1026
+ """Ideal gas constant
1027
+ R(...)
1028
+
1029
+ Ignores the arguments are returns the gas constant as
1030
+ unit_energy / unit_matter / unit_temperature
1031
+ """
1032
+ R = pm.units.energy(pm.units.const_Ru, from_units='J')
1033
+ R = pm.units.temperature(R, from_units='K', exponent=-1)
1034
+ R = pm.units.matter(R, self.data['mw'], from_units='mol', exponent=-1)
1035
+ return R
1036
+
1037
+ def gam(self,*varg, **kwarg):
1038
+ """Specific heat ratio
1039
+ gam(...)
1040
+
1041
+ All ideal gas properties accept two other properties as flexible inputs
1042
+ Below are the recognized keywords, their meaning, and the config entries
1043
+ that determine their units.
1044
+ T temperature unit_temperature
1045
+ p pressure unit_pressure
1046
+ d density unit_matter / unit_volume
1047
+ v specific volume unit_volume / unit_matter
1048
+ e internal energy unit_energy / unit_matter
1049
+ h enthalpy unit_energy / unit_matter
1050
+ s entropy unit_energy / unit_matter / unit_temperature
1051
+
1052
+ If no keywords are specified, the positional arguments are interpreted
1053
+ as (T,p). To configure their defaults, use the def_T and def_p config
1054
+ entries.
1055
+
1056
+ Returns ideal gas ratio, which is dimensionless.
1057
+ """
1058
+ T,p,d = self._argparse(*varg, **kwarg)
1059
+ cp = self._cp(T)
1060
+ return cp/(cp-pm.units.const_Ru)
1061
+
1062
+
1063
+ def cp(self, *varg, **kwarg):
1064
+ """Constant-pressure specific heat
1065
+ cp(...)
1066
+
1067
+ All ideal gas properties accept two other properties as flexible inputs
1068
+ Below are the recognized keywords, their meaning, and the config entries
1069
+ that determine their units.
1070
+ T temperature unit_temperature
1071
+ p pressure unit_pressure
1072
+ d density unit_matter / unit_volume
1073
+ v specific volume unit_volume / unit_matter
1074
+ e internal energy unit_energy / unit_matter
1075
+ h enthalpy unit_energy / unit_matter
1076
+ s entropy unit_energy / unit_matter / unit_temperature
1077
+
1078
+ If no keywords are specified, the positional arguments are interpreted
1079
+ as (T,p). To configure their defaults, use the def_T and def_p config
1080
+ entries.
1081
+
1082
+ Returns specific heat in unit_energy / unit_matter / unit_temperature
1083
+ """
1084
+ T,p,d = self._argparse(*varg, **kwarg)
1085
+ # Apply the model
1086
+ out = self._cp(T)
1087
+ # calculate a conversion factor
1088
+ scale = pm.units.energy(1, from_units='kJ')
1089
+ scale = pm.units.temperature(scale, from_units='K', exponent=-1)
1090
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1091
+ # Apply the conversion factor in-place and return
1092
+ np.multiply(out, scale, out=out)
1093
+ return out
1094
+
1095
+ def cv(self,*varg, **kwarg):
1096
+ """Constant-volume specific heat
1097
+ cv(...)
1098
+
1099
+ All ideal gas properties accept two other properties as flexible inputs
1100
+ Below are the recognized keywords, their meaning, and the config entries
1101
+ that determine their units.
1102
+ T temperature unit_temperature
1103
+ p pressure unit_pressure
1104
+ d density unit_matter / unit_volume
1105
+ v specific volume unit_volume / unit_matter
1106
+ e internal energy unit_energy / unit_matter
1107
+ h enthalpy unit_energy / unit_matter
1108
+ s entropy unit_energy / unit_matter / unit_temperature
1109
+
1110
+ If no keywords are specified, the positional arguments are interpreted
1111
+ as (T,p). To configure their defaults, use the def_T and def_p config
1112
+ entries.
1113
+
1114
+ Returns specific heat in unit_energy / unit_matter / unit_temperature
1115
+ """
1116
+ T,p,d = self._argparse(*varg, **kwarg)
1117
+ # Apply the model
1118
+ out = self._cp(T) - pm.units.const_Ru
1119
+ # calculate a conversion factor
1120
+ scale = pm.units.energy(1, from_units='kJ')
1121
+ scale = pm.units.temperature(scale, from_units='K', exponent=-1)
1122
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1123
+ # Apply the conversion factor in-place and return
1124
+ np.multiply(out, scale, out=out)
1125
+ return out
1126
+
1127
+ def h(self,*varg, **kwarg):
1128
+ """Enthalpy
1129
+ h(...)
1130
+
1131
+ All ideal gas properties accept two other properties as flexible inputs
1132
+ Below are the recognized keywords, their meaning, and the config entries
1133
+ that determine their units.
1134
+ T temperature unit_temperature
1135
+ p pressure unit_pressure
1136
+ d density unit_matter / unit_volume
1137
+ v specific volume unit_volume / unit_matter
1138
+ e internal energy unit_energy / unit_matter
1139
+ h enthalpy unit_energy / unit_matter
1140
+ s entropy unit_energy / unit_matter / unit_temperature
1141
+
1142
+ If no keywords are specified, the positional arguments are interpreted
1143
+ as (T,p). To configure their defaults, use the def_T and def_p config
1144
+ entries.
1145
+
1146
+ Returns enthalpy in unit_energy / unit_matter
1147
+ """
1148
+ T,p,d = self._argparse(*varg, **kwarg)
1149
+ # Apply the model
1150
+ out = self._h(T)[0]
1151
+ # calculate a conversion factor
1152
+ scale = pm.units.energy(1, from_units='kJ')
1153
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1154
+ # Apply the conversion factor in-place and return
1155
+ np.multiply(out, scale, out=out)
1156
+ return out
1157
+
1158
+ def s(self,*varg,**kwarg):
1159
+ """Entropy
1160
+ s(...)
1161
+
1162
+ All ideal gas properties accept two other properties as flexible inputs
1163
+ Below are the recognized keywords, their meaning, and the config entries
1164
+ that determine their units.
1165
+ T temperature unit_temperature
1166
+ p pressure unit_pressure
1167
+ d density unit_matter / unit_volume
1168
+ v specific volume unit_volume / unit_matter
1169
+ e internal energy unit_energy / unit_matter
1170
+ h enthalpy unit_energy / unit_matter
1171
+ s entropy unit_energy / unit_matter / unit_temperature
1172
+
1173
+ If no keywords are specified, the positional arguments are interpreted
1174
+ as (T,p). To configure their defaults, use the def_T and def_p config
1175
+ entries.
1176
+
1177
+ Returns entropy in unit_energy / unit_matter / unit_temperature
1178
+ """
1179
+ T,p,d = self._argparse(*varg, **kwarg)
1180
+ if p is None:
1181
+ p = d * (1000*pm.units.const_Ru * T)
1182
+
1183
+ # Apply the model
1184
+ out = self._s(T)[0] - pm.units.const_Ru * np.log(p/self.data['pref'])
1185
+ # calculate a conversion factor
1186
+ scale = pm.units.energy(1, from_units='kJ')
1187
+ scale = pm.units.temperature(scale, from_units='K', exponent=-1)
1188
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1189
+ # Apply the conversion factor in-place and return
1190
+ np.multiply(out, scale, out=out)
1191
+ return out
1192
+
1193
+ def e(self,*varg, **kwarg):
1194
+ """Internal energy
1195
+ e(...)
1196
+
1197
+ All ideal gas properties accept two other properties as flexible inputs
1198
+ Below are the recognized keywords, their meaning, and the config entries
1199
+ that determine their units.
1200
+ T temperature unit_temperature
1201
+ p pressure unit_pressure
1202
+ d density unit_matter / unit_volume
1203
+ v specific volume unit_volume / unit_matter
1204
+ e internal energy unit_energy / unit_matter
1205
+ h enthalpy unit_energy / unit_matter
1206
+ s entropy unit_energy / unit_matter / unit_temperature
1207
+
1208
+ If no keywords are specified, the positional arguments are interpreted
1209
+ as (T,p). To configure their defaults, use the def_T and def_p config
1210
+ entries.
1211
+
1212
+ Returns internal energy in unit_energy / unit_matter
1213
+ """
1214
+ T,p,d = self._argparse(*varg, **kwarg)
1215
+ # Apply the model
1216
+ out = self._h(T)[0] - pm.units.const_Ru*T
1217
+ # calculate a conversion factor
1218
+ scale = pm.units.energy(1, from_units='J')
1219
+ scale = pm.units.matter(scale, self.data['mw'], from_units='mol', exponent=-1)
1220
+ # Apply the conversion factor in-place and return
1221
+ np.multiply(out, scale, out=out)
1222
+ return out
1223
+
1224
+ def g(self,*varg, **kwarg):
1225
+ """Gibbs energy
1226
+ g(...)
1227
+
1228
+ All ideal gas properties accept two other properties as flexible inputs
1229
+ Below are the recognized keywords, their meaning, and the config entries
1230
+ that determine their units.
1231
+ T temperature unit_temperature
1232
+ p pressure unit_pressure
1233
+ d density unit_matter / unit_volume
1234
+ v specific volume unit_volume / unit_matter
1235
+ e internal energy unit_energy / unit_matter
1236
+ h enthalpy unit_energy / unit_matter
1237
+ s entropy unit_energy / unit_matter / unit_temperature
1238
+
1239
+ If no keywords are specified, the positional arguments are interpreted
1240
+ as (T,p). To configure their defaults, use the def_T and def_p config
1241
+ entries.
1242
+
1243
+ Returns Gibbs energy in unit_energy / unit_matter
1244
+ """
1245
+ T,p,d = self._argparse(*varg, **kwarg)
1246
+ # Apply the model
1247
+ out = self._g(T)[0] + T * pm.units.const_Ru * np.log(p/self.data['pref'])
1248
+ # calculate a conversion factor
1249
+ scale = pm.units.energy(1, from_units='kJ')
1250
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1251
+ # Apply the conversion factor in-place and return
1252
+ np.multiply(out, scale, out=out)
1253
+ return out
1254
+
1255
+ def f(self,*varg, **kwarg):
1256
+ """Free (Helmholtz) energy
1257
+ f(...)
1258
+
1259
+ All ideal gas properties accept two other properties as flexible inputs
1260
+ Below are the recognized keywords, their meaning, and the config entries
1261
+ that determine their units.
1262
+ T temperature unit_temperature
1263
+ p pressure unit_pressure
1264
+ d density unit_matter / unit_volume
1265
+ v specific volume unit_volume / unit_matter
1266
+ e internal energy unit_energy / unit_matter
1267
+ h enthalpy unit_energy / unit_matter
1268
+ s entropy unit_energy / unit_matter / unit_temperature
1269
+
1270
+ If no keywords are specified, the positional arguments are interpreted
1271
+ as (T,p). To configure their defaults, use the def_T and def_p config
1272
+ entries.
1273
+
1274
+ Returns free energy in unit_energy / unit_matter
1275
+ """
1276
+ T,p,d = self._argparse(*varg, **kwarg)
1277
+ # Apply the model
1278
+ out = self._f(T)[0] + T * pm.units.const_Ru * np.log(p/self.data['pref'])
1279
+ # calculate a conversion factor
1280
+ scale = pm.units.energy(1, from_units='kJ')
1281
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1282
+ # Apply the conversion factor in-place and return
1283
+ np.multiply(out, scale, out=out)
1284
+ return out
1285
+
1286
+ def state(self, *varg, **kwarg):
1287
+ """Calculate all properties at a state
1288
+ sd = state(...)
1289
+
1290
+ The properties are returned in a dictionary with keys:
1291
+ T temperature unit_temperature
1292
+ p pressure unit_pressure
1293
+ d density unit_matter / unit_volume
1294
+ v specific volume unit_volume / unit_matter
1295
+ e internal energy unit_energy / unit_matter
1296
+ h enthalpy unit_energy / unit_matter
1297
+ s entropy unit_energy / unit_matter / unit_temperature
1298
+ cp const. p sp. ht. unit_energy / unit_matter / unit_temperature
1299
+ cv const. v sp. ht. unit_energy / unit_matter / unit_temperature
1300
+
1301
+ Like all of the other property functions, arguments may be any two of
1302
+ T, p, d, v, e, h, and s.
1303
+ """
1304
+ Ru = pm.units.const_Ru
1305
+ T,p,d = self._argparse(*varg, **kwarg)
1306
+ # Make sure we have both pressure and density
1307
+ if d is None:
1308
+ d = p / (1000 * Ru * T)
1309
+ elif p is None:
1310
+ p = 1000 * d * Ru * T
1311
+
1312
+ # Now entropy
1313
+ s = self._s(T,False)[0] - Ru * np.log(p / self.data['pref'])
1314
+
1315
+ # Enthalpy and specific heat at once
1316
+ h,cp = self._h(T,True)
1317
+ cv = cp - Ru
1318
+ gam = cp/cv
1319
+ e = h - Ru*T
1320
+
1321
+ # Finally build the output
1322
+ out = {}
1323
+ out['T'] = pm.units.temperature_scale(T, from_units='K')
1324
+ out['p'] = pm.units.pressure(p, from_units='Pa')
1325
+ scale = pm.units.matter(1., self.data['mw'], from_units='kmol')
1326
+ scale = pm.units.volume(scale, from_units='m3', exponent=-1)
1327
+ out['d'] = scale * d
1328
+ out['v'] = 1./out['d']
1329
+ scale = pm.units.energy(1., from_units='kJ')
1330
+ scale = pm.units.matter(scale, self.data['mw'], from_units='kmol', exponent=-1)
1331
+ out['h'] = h * scale
1332
+ out['e'] = e * scale
1333
+ out['gam'] = gam
1334
+ scale = pm.units.temperature(scale, from_units='K', exponent=-1)
1335
+ out['s'] = s * scale
1336
+ out['cp'] = cp * scale
1337
+ out['cv'] = cv * scale
1338
+ return out
1339
+
1340
+
1341
+ def T_s(self,s,p=None, d=None):
1342
+ """Temperature as a function of entropy
1343
+ ** Deprecated - use T() **
1344
+
1345
+ T = T_s(s)
1346
+ or
1347
+ T = T_s(s,p)
1348
+
1349
+ Accepts unit_energy / unit_matter / unit_temperature
1350
+ unit_pressure
1351
+ unit_matter / unit_volume
1352
+ Returns unit_temperature
1353
+ """
1354
+ if p is not None:
1355
+ return self.T(s=s, p=p)
1356
+ elif d is not None:
1357
+ return self.T(s=s, d=d)
1358
+ return self.T(s=s)
1359
+
1360
+
1361
+ def T_h(self,h, p=None, d=None):
1362
+ """Temperature as a function of enthalpy
1363
+ ** Deprecated - use T() **
1364
+
1365
+ T = T_h(h)
1366
+ or
1367
+ T = T_h(h,...)
1368
+
1369
+ Returns the temperature as a function of enthalpy and pressure. Ideal
1370
+ gas enthalpy is not a function of pressure, so the p term is merely a
1371
+ placeholder.
1372
+
1373
+ Accepts unit_energy / unit_matter / unit_temperature
1374
+ unit_pressure
1375
+ Returns unit_temperature
1376
+ """
1377
+ if p is not None:
1378
+ return self.T(h=h, p=p)
1379
+ elif d is not None:
1380
+ return self.T(h=h, d=d)
1381
+ return self.T(h=h)
1382
+
1383
+
1384
+ def p_s(self,s,T=None):
1385
+ """Pressure as a function of entropy
1386
+ ** Deprecated - use p() **
1387
+
1388
+ p = ig_instance.p_s(s)
1389
+ or
1390
+ p = ig_instance.p_s(s,...)
1391
+
1392
+ Returns the pressure as a function of entropy and temperature.
1393
+
1394
+ Accepts unit_energy / unit_matter / unit_temperature
1395
+ unit_temperature
1396
+ Returns unit_pressure
1397
+ """
1398
+ if T is not None:
1399
+ return self.p(s=s,T=T)
1400
+ return self.p(s=s)