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.
- PYroMat-2.2.5.dist-info/LICENSE.txt +644 -0
- PYroMat-2.2.5.dist-info/METADATA +94 -0
- PYroMat-2.2.5.dist-info/RECORD +1010 -0
- PYroMat-2.2.5.dist-info/WHEEL +5 -0
- PYroMat-2.2.5.dist-info/top_level.txt +5 -0
- pyromat/__init__.py +395 -0
- pyromat/config.py +166 -0
- pyromat/dat.py +574 -0
- pyromat/data/ig/Al_H.hpd +464 -0
- pyromat/data/ig/Al_H_O.hpd +464 -0
- pyromat/data/ig/Al_H_O2.hpd +446 -0
- pyromat/data/ig/Al_H_O_1.hpd +482 -0
- pyromat/data/ig/B10_H14.hpd +362 -0
- pyromat/data/ig/B2_Be_O4.hpd +464 -0
- pyromat/data/ig/B2_Cl4.hpd +446 -0
- pyromat/data/ig/B2_F4.hpd +466 -0
- pyromat/data/ig/B2_F4_O.hpd +465 -0
- pyromat/data/ig/B2_H4_O4.hpd +465 -0
- pyromat/data/ig/B3_F2_H_O3.hpd +466 -0
- pyromat/data/ig/B3_F_H2_O3.hpd +466 -0
- pyromat/data/ig/B3_H3_O3.hpd +464 -0
- pyromat/data/ig/B3_H3_O6.hpd +465 -0
- pyromat/data/ig/B5_H9.hpd +358 -0
- pyromat/data/ig/B_Br.hpd +446 -0
- pyromat/data/ig/B_Br2.hpd +446 -0
- pyromat/data/ig/B_Br2_Cl.hpd +446 -0
- pyromat/data/ig/B_Br2_F.hpd +464 -0
- pyromat/data/ig/B_Br2_H.hpd +465 -0
- pyromat/data/ig/B_Br3.hpd +390 -0
- pyromat/data/ig/B_Br_Cl.hpd +447 -0
- pyromat/data/ig/B_Br_Cl2.hpd +464 -0
- pyromat/data/ig/B_Br_F.hpd +465 -0
- pyromat/data/ig/B_Br_F2.hpd +464 -0
- pyromat/data/ig/B_Br_O.hpd +465 -0
- pyromat/data/ig/B_Cl2_F.hpd +465 -0
- pyromat/data/ig/B_Cl2_H.hpd +466 -0
- pyromat/data/ig/B_Cl_F2.hpd +465 -0
- pyromat/data/ig/B_F2_H.hpd +465 -0
- pyromat/data/ig/B_F2_H_O.hpd +466 -0
- pyromat/data/ig/B_F4_K.hpd +356 -0
- pyromat/data/ig/B_H.hpd +464 -0
- pyromat/data/ig/B_H2.hpd +463 -0
- pyromat/data/ig/B_H2_O2.hpd +465 -0
- pyromat/data/ig/B_H3.hpd +464 -0
- pyromat/data/ig/B_H3_O3.hpd +494 -0
- pyromat/data/ig/B_H_O.hpd +465 -0
- pyromat/data/ig/B_H_O2.hpd +464 -0
- pyromat/data/ig/B_H_S.hpd +464 -0
- pyromat/data/ig/B_I.hpd +446 -0
- pyromat/data/ig/B_I2.hpd +446 -0
- pyromat/data/ig/B_I3.hpd +449 -0
- pyromat/data/ig/Ba_H2_O2.hpd +322 -0
- pyromat/data/ig/Ba_H_O.hpd +447 -0
- pyromat/data/ig/Ba_I.hpd +445 -0
- pyromat/data/ig/Ba_I2.hpd +263 -0
- pyromat/data/ig/Be2.hpd +445 -0
- pyromat/data/ig/Be2_Cl4.hpd +445 -0
- pyromat/data/ig/Be_F3_Li.hpd +320 -0
- pyromat/data/ig/Be_H.hpd +464 -0
- pyromat/data/ig/Be_H2_O2.hpd +464 -0
- pyromat/data/ig/Be_H_O.hpd +465 -0
- pyromat/data/ig/Br2_Fe.hpd +319 -0
- pyromat/data/ig/Br2_H2_Si.hpd +465 -0
- pyromat/data/ig/Br2_K2.hpd +445 -0
- pyromat/data/ig/Br2_Li2.hpd +445 -0
- pyromat/data/ig/Br2_Mo.hpd +463 -0
- pyromat/data/ig/Br2_Na2.hpd +445 -0
- pyromat/data/ig/Br2_Sr.hpd +249 -0
- pyromat/data/ig/Br2_Ti.hpd +463 -0
- pyromat/data/ig/Br2_Zr.hpd +319 -0
- pyromat/data/ig/Br3_H_Si.hpd +466 -0
- pyromat/data/ig/Br3_Mo.hpd +445 -0
- pyromat/data/ig/Br3_O_P.hpd +448 -0
- pyromat/data/ig/Br3_P.hpd +455 -0
- pyromat/data/ig/Br3_P_S.hpd +448 -0
- pyromat/data/ig/Br3_Ti.hpd +445 -0
- pyromat/data/ig/Br3_Zr.hpd +445 -0
- pyromat/data/ig/Br4_Fe2.hpd +445 -0
- pyromat/data/ig/Br4_Mg2.hpd +445 -0
- pyromat/data/ig/Br4_Mo.hpd +445 -0
- pyromat/data/ig/Br4_Ti.hpd +389 -0
- pyromat/data/ig/Br4_Zr.hpd +445 -0
- pyromat/data/ig/Br5_Nb.hpd +398 -0
- pyromat/data/ig/Br5_W.hpd +389 -0
- pyromat/data/ig/Br6_W.hpd +445 -0
- pyromat/data/ig/Br_Cl.hpd +447 -0
- pyromat/data/ig/Br_F.hpd +446 -0
- pyromat/data/ig/Br_F3.hpd +445 -0
- pyromat/data/ig/Br_F5.hpd +446 -0
- pyromat/data/ig/Br_F5_S.hpd +465 -0
- pyromat/data/ig/Br_H.hpd +476 -0
- pyromat/data/ig/Br_H3_Si.hpd +465 -0
- pyromat/data/ig/Br_Hg.hpd +446 -0
- pyromat/data/ig/Br_I.hpd +465 -0
- pyromat/data/ig/Br_K.hpd +285 -0
- pyromat/data/ig/Br_Li.hpd +320 -0
- pyromat/data/ig/Br_Mo.hpd +463 -0
- pyromat/data/ig/Br_N.hpd +445 -0
- pyromat/data/ig/Br_N_O.hpd +465 -0
- pyromat/data/ig/Br_P.hpd +446 -0
- pyromat/data/ig/Br_Ti.hpd +445 -0
- pyromat/data/ig/Br_W.hpd +445 -0
- pyromat/data/ig/Br_Zr.hpd +463 -0
- pyromat/data/ig/C2_Be.hpd +463 -0
- pyromat/data/ig/C2_F3_N.hpd +468 -0
- pyromat/data/ig/C2_F6.hpd +476 -0
- pyromat/data/ig/C4_Ni_O4.hpd +441 -0
- pyromat/data/ig/C_B.hpd +464 -0
- pyromat/data/ig/C_Br.hpd +446 -0
- pyromat/data/ig/C_Br4.hpd +455 -0
- pyromat/data/ig/C_Br_F3.hpd +485 -0
- pyromat/data/ig/C_Br_N.hpd +484 -0
- pyromat/data/ig/C_F3_I.hpd +472 -0
- pyromat/data/ig/C_F4_O.hpd +464 -0
- pyromat/data/ig/C_F8_S.hpd +469 -0
- pyromat/data/ig/C_H3_Cl3_Si.hpd +147 -0
- pyromat/data/ig/C_H3_F3_Si.hpd +138 -0
- pyromat/data/ig/C_H_F.hpd +465 -0
- pyromat/data/ig/C_H_F_O.hpd +465 -0
- pyromat/data/ig/C_H_P.hpd +464 -0
- pyromat/data/ig/C_I_N.hpd +465 -0
- pyromat/data/ig/C_N2_1.hpd +464 -0
- pyromat/data/ig/Ca_H2_O2.hpd +446 -0
- pyromat/data/ig/Ca_H_O.hpd +447 -0
- pyromat/data/ig/Cl10_W2.hpd +445 -0
- pyromat/data/ig/Cl2_Co.hpd +319 -0
- pyromat/data/ig/Cl2_F_O_P.hpd +466 -0
- pyromat/data/ig/Cl2_H2_Si.hpd +465 -0
- pyromat/data/ig/Cl2_Hg.hpd +354 -0
- pyromat/data/ig/Cl2_Mo_O2.hpd +446 -0
- pyromat/data/ig/Cl2_O2_W.hpd +464 -0
- pyromat/data/ig/Cl2_W.hpd +463 -0
- pyromat/data/ig/Cl2_Zr.hpd +319 -0
- pyromat/data/ig/Cl3_Co.hpd +447 -0
- pyromat/data/ig/Cl3_F_Si.hpd +447 -0
- pyromat/data/ig/Cl3_H_Si.hpd +466 -0
- pyromat/data/ig/Cl3_O_P.hpd +483 -0
- pyromat/data/ig/Cl3_P_S.hpd +448 -0
- pyromat/data/ig/Cl3_Zr.hpd +463 -0
- pyromat/data/ig/Cl4_Co2.hpd +445 -0
- pyromat/data/ig/Cl4_Mg2.hpd +445 -0
- pyromat/data/ig/Cl4_Mo.hpd +354 -0
- pyromat/data/ig/Cl4_O_W.hpd +390 -0
- pyromat/data/ig/Cl4_W.hpd +445 -0
- pyromat/data/ig/Cl4_Zr.hpd +445 -0
- pyromat/data/ig/Cl5_Mo.hpd +375 -0
- pyromat/data/ig/Cl5_Nb.hpd +403 -0
- pyromat/data/ig/Cl5_P.hpd +446 -0
- pyromat/data/ig/Cl5_Ta.hpd +403 -0
- pyromat/data/ig/Cl5_W.hpd +354 -0
- pyromat/data/ig/Cl6_Mo.hpd +445 -0
- pyromat/data/ig/Cl6_W.hpd +354 -0
- pyromat/data/ig/Cl_Co.hpd +463 -0
- pyromat/data/ig/Cl_F2_O_P.hpd +470 -0
- pyromat/data/ig/Cl_F3_Si.hpd +465 -0
- pyromat/data/ig/Cl_F5.hpd +464 -0
- pyromat/data/ig/Cl_F5_S.hpd +466 -0
- pyromat/data/ig/Cl_F_Li2.hpd +464 -0
- pyromat/data/ig/Cl_F_O3.hpd +472 -0
- pyromat/data/ig/Cl_H.hpd +493 -0
- pyromat/data/ig/Cl_H3_Si.hpd +466 -0
- pyromat/data/ig/Cl_H_O.hpd +465 -0
- pyromat/data/ig/Cl_Hg.hpd +445 -0
- pyromat/data/ig/Cl_I.hpd +390 -0
- pyromat/data/ig/Cl_Li_O.hpd +465 -0
- pyromat/data/ig/Cl_P.hpd +446 -0
- pyromat/data/ig/Cl_W.hpd +463 -0
- pyromat/data/ig/Cl_Zr.hpd +463 -0
- pyromat/data/ig/Co.hpd +242 -0
- pyromat/data/ig/Co_F2.hpd +249 -0
- pyromat/data/ig/Cs2_H2_O2.hpd +464 -0
- pyromat/data/ig/Cs_H_O.hpd +322 -0
- pyromat/data/ig/D_H.hpd +464 -0
- pyromat/data/ig/D_H_O.hpd +467 -0
- pyromat/data/ig/F10_Mo2.hpd +445 -0
- pyromat/data/ig/F10_S2.hpd +465 -0
- pyromat/data/ig/F15_Mo3.hpd +445 -0
- pyromat/data/ig/F2_Fe.hpd +249 -0
- pyromat/data/ig/F2_H2_Si.hpd +465 -0
- pyromat/data/ig/F2_Hg.hpd +321 -0
- pyromat/data/ig/F2_Mo.hpd +445 -0
- pyromat/data/ig/F2_N2_1.hpd +469 -0
- pyromat/data/ig/F2_O_Si.hpd +465 -0
- pyromat/data/ig/F2_O_Ti.hpd +446 -0
- pyromat/data/ig/F2_S2_1.hpd +446 -0
- pyromat/data/ig/F2_Ti.hpd +463 -0
- pyromat/data/ig/F2_Zr.hpd +249 -0
- pyromat/data/ig/F3_Fe.hpd +445 -0
- pyromat/data/ig/F3_H_Si.hpd +465 -0
- pyromat/data/ig/F3_Mo.hpd +445 -0
- pyromat/data/ig/F3_O_P.hpd +471 -0
- pyromat/data/ig/F3_P_S.hpd +465 -0
- pyromat/data/ig/F3_Ti.hpd +445 -0
- pyromat/data/ig/F3_Zr.hpd +463 -0
- pyromat/data/ig/F4_Mo.hpd +463 -0
- pyromat/data/ig/F4_Mo_O.hpd +446 -0
- pyromat/data/ig/F4_O_W.hpd +390 -0
- pyromat/data/ig/F4_Ti.hpd +447 -0
- pyromat/data/ig/F4_Zr.hpd +446 -0
- pyromat/data/ig/F5_I.hpd +446 -0
- pyromat/data/ig/F5_Mo.hpd +445 -0
- pyromat/data/ig/F6_Mo.hpd +394 -0
- pyromat/data/ig/F6_W.hpd +396 -0
- pyromat/data/ig/F7_I.hpd +447 -0
- pyromat/data/ig/F_Fe.hpd +445 -0
- pyromat/data/ig/F_H.hpd +464 -0
- pyromat/data/ig/F_H3_Si.hpd +466 -0
- pyromat/data/ig/F_H_O.hpd +465 -0
- pyromat/data/ig/F_H_O3_S.hpd +467 -0
- pyromat/data/ig/F_Hg.hpd +445 -0
- pyromat/data/ig/F_I.hpd +446 -0
- pyromat/data/ig/F_Mo.hpd +463 -0
- pyromat/data/ig/F_O_Ti.hpd +464 -0
- pyromat/data/ig/F_P_S.hpd +464 -0
- pyromat/data/ig/F_Ti.hpd +463 -0
- pyromat/data/ig/F_W.hpd +463 -0
- pyromat/data/ig/F_Zr.hpd +463 -0
- pyromat/data/ig/Fe2_I4.hpd +445 -0
- pyromat/data/ig/Fe_H2_O2.hpd +466 -0
- pyromat/data/ig/Fe_I2.hpd +319 -0
- pyromat/data/ig/Fe_S.hpd +194 -0
- pyromat/data/ig/Ga.hpd +291 -0
- pyromat/data/ig/H2_Mo_O4.hpd +465 -0
- pyromat/data/ig/H2_O4_W.hpd +466 -0
- pyromat/data/ig/H2_P.hpd +464 -0
- pyromat/data/ig/H_Hg.hpd +463 -0
- pyromat/data/ig/H_Pb.hpd +463 -0
- pyromat/data/ig/H_Zr.hpd +463 -0
- pyromat/data/ig/Hf.hpd +116 -0
- pyromat/data/ig/Hg_I.hpd +446 -0
- pyromat/data/ig/Hg_I2.hpd +355 -0
- pyromat/data/ig/Hg_O.hpd +447 -0
- pyromat/data/ig/I2_K2.hpd +446 -0
- pyromat/data/ig/I2_Li2.hpd +445 -0
- pyromat/data/ig/I2_Mo.hpd +464 -0
- pyromat/data/ig/I2_Ti.hpd +463 -0
- pyromat/data/ig/I2_Zr.hpd +319 -0
- pyromat/data/ig/I3_Mo.hpd +446 -0
- pyromat/data/ig/I3_Si.hpd +446 -0
- pyromat/data/ig/I3_Ti.hpd +445 -0
- pyromat/data/ig/I3_Zr.hpd +445 -0
- pyromat/data/ig/I4_Mo.hpd +446 -0
- pyromat/data/ig/I4_Si.hpd +410 -0
- pyromat/data/ig/I4_Ti.hpd +354 -0
- pyromat/data/ig/I4_Zr.hpd +445 -0
- pyromat/data/ig/I_K.hpd +285 -0
- pyromat/data/ig/I_Li.hpd +285 -0
- pyromat/data/ig/I_N_O.hpd +465 -0
- pyromat/data/ig/I_Sr.hpd +463 -0
- pyromat/data/ig/I_Ti.hpd +463 -0
- pyromat/data/ig/I_Zr.hpd +445 -0
- pyromat/data/ig/Li_Na_O.hpd +464 -0
- pyromat/data/ig/Mn.hpd +298 -0
- pyromat/data/ig/Mo.hpd +116 -0
- pyromat/data/ig/Mo_O.hpd +447 -0
- pyromat/data/ig/Mo_O2.hpd +465 -0
- pyromat/data/ig/N_P.hpd +464 -0
- pyromat/data/ig/O12_W4.hpd +445 -0
- pyromat/data/ig/O2_W.hpd +463 -0
- pyromat/data/ig/O3_W.hpd +250 -0
- pyromat/data/ig/O6_P4.hpd +463 -0
- pyromat/data/ig/O6_W2.hpd +445 -0
- pyromat/data/ig/O8_W3.hpd +464 -0
- pyromat/data/ig/O9_W3.hpd +445 -0
- pyromat/data/ig/O_W.hpd +464 -0
- pyromat/data/ig/P_S.hpd +446 -0
- pyromat/data/ig/Rb.hpd +414 -0
- pyromat/data/ig/Rb2.hpd +463 -0
- pyromat/data/ig/S3.hpd +444 -0
- pyromat/data/ig/S4.hpd +444 -0
- pyromat/data/ig/S5.hpd +444 -0
- pyromat/data/ig/S6.hpd +451 -0
- pyromat/data/ig/S7.hpd +444 -0
- pyromat/data/ig2/Al+.hpd +39 -0
- pyromat/data/ig2/Al-.hpd +39 -0
- pyromat/data/ig2/Al.hpd +43 -0
- pyromat/data/ig2/Al2.hpd +42 -0
- pyromat/data/ig2/Al2_Br6.hpd +42 -0
- pyromat/data/ig2/Al2_Cl6.hpd +48 -0
- pyromat/data/ig2/Al2_F6.hpd +42 -0
- pyromat/data/ig2/Al2_I6.hpd +43 -0
- pyromat/data/ig2/Al2_O+.hpd +40 -0
- pyromat/data/ig2/Al2_O.hpd +42 -0
- pyromat/data/ig2/Al2_O2+.hpd +40 -0
- pyromat/data/ig2/Al2_O2.hpd +42 -0
- pyromat/data/ig2/Al_B_O2.hpd +43 -0
- pyromat/data/ig2/Al_Br.hpd +42 -0
- pyromat/data/ig2/Al_Br3.hpd +42 -0
- pyromat/data/ig2/Al_Cl+.hpd +40 -0
- pyromat/data/ig2/Al_Cl.hpd +43 -0
- pyromat/data/ig2/Al_Cl2+.hpd +40 -0
- pyromat/data/ig2/Al_Cl2-.hpd +40 -0
- pyromat/data/ig2/Al_Cl2.hpd +42 -0
- pyromat/data/ig2/Al_Cl2_F.hpd +44 -0
- pyromat/data/ig2/Al_Cl3.hpd +42 -0
- pyromat/data/ig2/Al_Cl_F+.hpd +41 -0
- pyromat/data/ig2/Al_Cl_F.hpd +43 -0
- pyromat/data/ig2/Al_Cl_F2.hpd +44 -0
- pyromat/data/ig2/Al_Cl_O.hpd +43 -0
- pyromat/data/ig2/Al_F+.hpd +40 -0
- pyromat/data/ig2/Al_F.hpd +43 -0
- pyromat/data/ig2/Al_F2+.hpd +40 -0
- pyromat/data/ig2/Al_F2-.hpd +40 -0
- pyromat/data/ig2/Al_F2.hpd +42 -0
- pyromat/data/ig2/Al_F2_O-.hpd +41 -0
- pyromat/data/ig2/Al_F2_O.hpd +43 -0
- pyromat/data/ig2/Al_F3.hpd +45 -0
- pyromat/data/ig2/Al_F4-.hpd +40 -0
- pyromat/data/ig2/Al_F4_Li.hpd +43 -0
- pyromat/data/ig2/Al_F4_Na.hpd +43 -0
- pyromat/data/ig2/Al_F_O.hpd +43 -0
- pyromat/data/ig2/Al_I.hpd +42 -0
- pyromat/data/ig2/Al_I3.hpd +42 -0
- pyromat/data/ig2/Al_N.hpd +44 -0
- pyromat/data/ig2/Al_O+.hpd +40 -0
- pyromat/data/ig2/Al_O-.hpd +40 -0
- pyromat/data/ig2/Al_O.hpd +43 -0
- pyromat/data/ig2/Al_O2-.hpd +40 -0
- pyromat/data/ig2/Al_O2.hpd +42 -0
- pyromat/data/ig2/Al_S.hpd +43 -0
- pyromat/data/ig2/Ar+.hpd +39 -0
- pyromat/data/ig2/Ar.hpd +38 -0
- pyromat/data/ig2/B+.hpd +39 -0
- pyromat/data/ig2/B-.hpd +39 -0
- pyromat/data/ig2/B.hpd +42 -0
- pyromat/data/ig2/B2.hpd +38 -0
- pyromat/data/ig2/B2_O.hpd +42 -0
- pyromat/data/ig2/B2_O2.hpd +42 -0
- pyromat/data/ig2/B2_O3.hpd +42 -0
- pyromat/data/ig2/B3_Cl3_O3.hpd +44 -0
- pyromat/data/ig2/B3_F3_O3.hpd +44 -0
- pyromat/data/ig2/B_Be_O2.hpd +40 -0
- pyromat/data/ig2/B_Cl+.hpd +40 -0
- pyromat/data/ig2/B_Cl.hpd +43 -0
- pyromat/data/ig2/B_Cl2+.hpd +40 -0
- pyromat/data/ig2/B_Cl2-.hpd +40 -0
- pyromat/data/ig2/B_Cl2.hpd +43 -0
- pyromat/data/ig2/B_Cl3.hpd +52 -0
- pyromat/data/ig2/B_Cl_F.hpd +44 -0
- pyromat/data/ig2/B_Cl_O.hpd +43 -0
- pyromat/data/ig2/B_F.hpd +44 -0
- pyromat/data/ig2/B_F2+.hpd +40 -0
- pyromat/data/ig2/B_F2-.hpd +40 -0
- pyromat/data/ig2/B_F2.hpd +43 -0
- pyromat/data/ig2/B_F2_O.hpd +43 -0
- pyromat/data/ig2/B_F3.hpd +52 -0
- pyromat/data/ig2/B_F_O.hpd +43 -0
- pyromat/data/ig2/B_K_O2.hpd +43 -0
- pyromat/data/ig2/B_Li_O2.hpd +43 -0
- pyromat/data/ig2/B_N.hpd +43 -0
- pyromat/data/ig2/B_Na_O2.hpd +43 -0
- pyromat/data/ig2/B_O.hpd +43 -0
- pyromat/data/ig2/B_O2-.hpd +40 -0
- pyromat/data/ig2/B_O2.hpd +42 -0
- pyromat/data/ig2/B_S.hpd +43 -0
- pyromat/data/ig2/Ba.hpd +38 -0
- pyromat/data/ig2/Ba_Br.hpd +42 -0
- pyromat/data/ig2/Ba_Br2.hpd +42 -0
- pyromat/data/ig2/Ba_Cl.hpd +39 -0
- pyromat/data/ig2/Ba_Cl2.hpd +44 -0
- pyromat/data/ig2/Ba_F+.hpd +40 -0
- pyromat/data/ig2/Ba_F.hpd +43 -0
- pyromat/data/ig2/Ba_F2.hpd +43 -0
- pyromat/data/ig2/Ba_S.hpd +44 -0
- pyromat/data/ig2/Be+.hpd +39 -0
- pyromat/data/ig2/Be.hpd +42 -0
- pyromat/data/ig2/Be2_F2_O.hpd +43 -0
- pyromat/data/ig2/Be2_O.hpd +42 -0
- pyromat/data/ig2/Be2_O2.hpd +42 -0
- pyromat/data/ig2/Be3_O3.hpd +39 -0
- pyromat/data/ig2/Be4_O4.hpd +39 -0
- pyromat/data/ig2/Be_Br.hpd +42 -0
- pyromat/data/ig2/Be_Br2.hpd +44 -0
- pyromat/data/ig2/Be_Cl+.hpd +40 -0
- pyromat/data/ig2/Be_Cl.hpd +43 -0
- pyromat/data/ig2/Be_Cl2.hpd +42 -0
- pyromat/data/ig2/Be_Cl_F.hpd +43 -0
- pyromat/data/ig2/Be_F.hpd +43 -0
- pyromat/data/ig2/Be_F2.hpd +42 -0
- pyromat/data/ig2/Be_I.hpd +42 -0
- pyromat/data/ig2/Be_I2.hpd +44 -0
- pyromat/data/ig2/Be_N.hpd +43 -0
- pyromat/data/ig2/Be_O.hpd +44 -0
- pyromat/data/ig2/Be_S.hpd +44 -0
- pyromat/data/ig2/Br.hpd +42 -0
- pyromat/data/ig2/Br2.hpd +49 -0
- pyromat/data/ig2/Br2_Ca.hpd +42 -0
- pyromat/data/ig2/Br2_Hg.hpd +51 -0
- pyromat/data/ig2/Br2_Mg.hpd +42 -0
- pyromat/data/ig2/Br2_Pb.hpd +42 -0
- pyromat/data/ig2/Br2_Si.hpd +43 -0
- pyromat/data/ig2/Br3_Si.hpd +43 -0
- pyromat/data/ig2/Br4_Pb.hpd +42 -0
- pyromat/data/ig2/Br4_Si.hpd +43 -0
- pyromat/data/ig2/Br_Ca.hpd +42 -0
- pyromat/data/ig2/Br_Mg.hpd +42 -0
- pyromat/data/ig2/Br_Na.hpd +43 -0
- pyromat/data/ig2/Br_Pb.hpd +42 -0
- pyromat/data/ig2/Br_Si.hpd +43 -0
- pyromat/data/ig2/Br_Sr.hpd +42 -0
- pyromat/data/ig2/C+.hpd +39 -0
- pyromat/data/ig2/C-.hpd +39 -0
- pyromat/data/ig2/C.hpd +43 -0
- pyromat/data/ig2/C10_H21.hpd +39 -0
- pyromat/data/ig2/C10_H8.hpd +39 -0
- pyromat/data/ig2/C12_D10.hpd +39 -0
- pyromat/data/ig2/C12_D9.hpd +39 -0
- pyromat/data/ig2/C12_H10.hpd +39 -0
- pyromat/data/ig2/C12_H23.hpd +39 -0
- pyromat/data/ig2/C12_H9.hpd +39 -0
- pyromat/data/ig2/C2+.hpd +39 -0
- pyromat/data/ig2/C2-.hpd +39 -0
- pyromat/data/ig2/C2.hpd +42 -0
- pyromat/data/ig2/C2_Cl2.hpd +50 -0
- pyromat/data/ig2/C2_Cl4.hpd +97 -0
- pyromat/data/ig2/C2_Cl6.hpd +69 -0
- pyromat/data/ig2/C2_F2.hpd +50 -0
- pyromat/data/ig2/C2_F4.hpd +55 -0
- pyromat/data/ig2/C2_H.hpd +43 -0
- pyromat/data/ig2/C2_H2.hpd +50 -0
- pyromat/data/ig2/C2_H2_O.hpd +40 -0
- pyromat/data/ig2/C2_H3.hpd +39 -0
- pyromat/data/ig2/C2_H3_N.hpd +40 -0
- pyromat/data/ig2/C2_H3_O.hpd +40 -0
- pyromat/data/ig2/C2_H4.hpd +39 -0
- pyromat/data/ig2/C2_H4_O.hpd +40 -0
- pyromat/data/ig2/C2_H4_O2.hpd +40 -0
- pyromat/data/ig2/C2_H4_O4.hpd +40 -0
- pyromat/data/ig2/C2_H5.hpd +39 -0
- pyromat/data/ig2/C2_H6.hpd +39 -0
- pyromat/data/ig2/C2_H6_N2.hpd +40 -0
- pyromat/data/ig2/C2_H6_O.hpd +40 -0
- pyromat/data/ig2/C2_H_Cl.hpd +51 -0
- pyromat/data/ig2/C2_H_F.hpd +52 -0
- pyromat/data/ig2/C2_H_N.hpd +40 -0
- pyromat/data/ig2/C2_H_O.hpd +40 -0
- pyromat/data/ig2/C2_K2_N2.hpd +43 -0
- pyromat/data/ig2/C2_N.hpd +42 -0
- pyromat/data/ig2/C2_N2.hpd +61 -0
- pyromat/data/ig2/C2_N2_Na2.hpd +44 -0
- pyromat/data/ig2/C2_O.hpd +39 -0
- pyromat/data/ig2/C2_Si.hpd +42 -0
- pyromat/data/ig2/C3.hpd +43 -0
- pyromat/data/ig2/C3_H3.hpd +39 -0
- pyromat/data/ig2/C3_H4.hpd +39 -0
- pyromat/data/ig2/C3_H5.hpd +39 -0
- pyromat/data/ig2/C3_H6.hpd +39 -0
- pyromat/data/ig2/C3_H6_O.hpd +40 -0
- pyromat/data/ig2/C3_H7.hpd +39 -0
- pyromat/data/ig2/C3_H8.hpd +39 -0
- pyromat/data/ig2/C3_H8_O.hpd +40 -0
- pyromat/data/ig2/C3_O2.hpd +46 -0
- pyromat/data/ig2/C4.hpd +42 -0
- pyromat/data/ig2/C4_H10.hpd +39 -0
- pyromat/data/ig2/C4_H12_Si.hpd +54 -0
- pyromat/data/ig2/C4_H2.hpd +39 -0
- pyromat/data/ig2/C4_H4.hpd +39 -0
- pyromat/data/ig2/C4_H6.hpd +39 -0
- pyromat/data/ig2/C4_H8.hpd +39 -0
- pyromat/data/ig2/C4_H8_O4.hpd +40 -0
- pyromat/data/ig2/C4_H9.hpd +39 -0
- pyromat/data/ig2/C4_N2.hpd +52 -0
- pyromat/data/ig2/C5.hpd +42 -0
- pyromat/data/ig2/C5_Fe_O5.hpd +49 -0
- pyromat/data/ig2/C5_H10.hpd +39 -0
- pyromat/data/ig2/C5_H11.hpd +39 -0
- pyromat/data/ig2/C5_H12.hpd +39 -0
- pyromat/data/ig2/C5_H6.hpd +39 -0
- pyromat/data/ig2/C5_H8.hpd +39 -0
- pyromat/data/ig2/C6_D5.hpd +39 -0
- pyromat/data/ig2/C6_D6.hpd +39 -0
- pyromat/data/ig2/C6_H10.hpd +39 -0
- pyromat/data/ig2/C6_H12.hpd +39 -0
- pyromat/data/ig2/C6_H13.hpd +39 -0
- pyromat/data/ig2/C6_H2.hpd +39 -0
- pyromat/data/ig2/C6_H5.hpd +39 -0
- pyromat/data/ig2/C6_H5_O.hpd +40 -0
- pyromat/data/ig2/C6_H6.hpd +39 -0
- pyromat/data/ig2/C6_H6_O.hpd +40 -0
- pyromat/data/ig2/C7_H14.hpd +39 -0
- pyromat/data/ig2/C7_H15.hpd +39 -0
- pyromat/data/ig2/C7_H16.hpd +39 -0
- pyromat/data/ig2/C7_H7.hpd +39 -0
- pyromat/data/ig2/C7_H8.hpd +39 -0
- pyromat/data/ig2/C7_H8_O.hpd +40 -0
- pyromat/data/ig2/C8_H10.hpd +39 -0
- pyromat/data/ig2/C8_H16.hpd +39 -0
- pyromat/data/ig2/C8_H17.hpd +39 -0
- pyromat/data/ig2/C8_H18.hpd +39 -0
- pyromat/data/ig2/C8_H8.hpd +39 -0
- pyromat/data/ig2/C9_H19.hpd +39 -0
- pyromat/data/ig2/C_Al.hpd +42 -0
- pyromat/data/ig2/C_Cl.hpd +43 -0
- pyromat/data/ig2/C_Cl2.hpd +43 -0
- pyromat/data/ig2/C_Cl2_F2.hpd +85 -0
- pyromat/data/ig2/C_Cl2_O.hpd +65 -0
- pyromat/data/ig2/C_Cl3.hpd +43 -0
- pyromat/data/ig2/C_Cl3_F.hpd +93 -0
- pyromat/data/ig2/C_Cl4.hpd +84 -0
- pyromat/data/ig2/C_Cl_F3.hpd +65 -0
- pyromat/data/ig2/C_Cl_F_O.hpd +52 -0
- pyromat/data/ig2/C_Cl_N.hpd +60 -0
- pyromat/data/ig2/C_Cl_O.hpd +44 -0
- pyromat/data/ig2/C_F+.hpd +40 -0
- pyromat/data/ig2/C_F.hpd +43 -0
- pyromat/data/ig2/C_F2+.hpd +40 -0
- pyromat/data/ig2/C_F2.hpd +45 -0
- pyromat/data/ig2/C_F2_O.hpd +60 -0
- pyromat/data/ig2/C_F3+.hpd +40 -0
- pyromat/data/ig2/C_F3.hpd +43 -0
- pyromat/data/ig2/C_F4.hpd +62 -0
- pyromat/data/ig2/C_F_N.hpd +43 -0
- pyromat/data/ig2/C_F_O.hpd +43 -0
- pyromat/data/ig2/C_H+.hpd +40 -0
- pyromat/data/ig2/C_H.hpd +43 -0
- pyromat/data/ig2/C_H2.hpd +43 -0
- pyromat/data/ig2/C_H2_Cl2.hpd +70 -0
- pyromat/data/ig2/C_H2_Cl_F.hpd +56 -0
- pyromat/data/ig2/C_H2_F2.hpd +40 -0
- pyromat/data/ig2/C_H2_O.hpd +82 -0
- pyromat/data/ig2/C_H2_O2.hpd +40 -0
- pyromat/data/ig2/C_H3.hpd +43 -0
- pyromat/data/ig2/C_H3_Cl.hpd +61 -0
- pyromat/data/ig2/C_H3_F.hpd +40 -0
- pyromat/data/ig2/C_H3_O.hpd +40 -0
- pyromat/data/ig2/C_H4.hpd +39 -0
- pyromat/data/ig2/C_H4_O.hpd +40 -0
- pyromat/data/ig2/C_H_Cl.hpd +44 -0
- pyromat/data/ig2/C_H_Cl2_F.hpd +65 -0
- pyromat/data/ig2/C_H_Cl3.hpd +65 -0
- pyromat/data/ig2/C_H_Cl_F2.hpd +89 -0
- pyromat/data/ig2/C_H_F3.hpd +65 -0
- pyromat/data/ig2/C_H_N.hpd +72 -0
- pyromat/data/ig2/C_H_N_O.hpd +45 -0
- pyromat/data/ig2/C_H_O+.hpd +41 -0
- pyromat/data/ig2/C_H_O.hpd +44 -0
- pyromat/data/ig2/C_H_O2.hpd +40 -0
- pyromat/data/ig2/C_K_N.hpd +43 -0
- pyromat/data/ig2/C_N+.hpd +40 -0
- pyromat/data/ig2/C_N-.hpd +40 -0
- pyromat/data/ig2/C_N.hpd +43 -0
- pyromat/data/ig2/C_N2.hpd +43 -0
- pyromat/data/ig2/C_N_Na.hpd +43 -0
- pyromat/data/ig2/C_N_O.hpd +40 -0
- pyromat/data/ig2/C_O+.hpd +40 -0
- pyromat/data/ig2/C_O.hpd +59 -0
- pyromat/data/ig2/C_O2+.hpd +40 -0
- pyromat/data/ig2/C_O2.hpd +61 -0
- pyromat/data/ig2/C_O_S.hpd +51 -0
- pyromat/data/ig2/C_P.hpd +43 -0
- pyromat/data/ig2/C_S.hpd +43 -0
- pyromat/data/ig2/C_S2.hpd +65 -0
- pyromat/data/ig2/C_Si.hpd +42 -0
- pyromat/data/ig2/C_Si2.hpd +42 -0
- pyromat/data/ig2/Ca+.hpd +39 -0
- pyromat/data/ig2/Ca.hpd +42 -0
- pyromat/data/ig2/Ca2.hpd +42 -0
- pyromat/data/ig2/Ca_Cl.hpd +43 -0
- pyromat/data/ig2/Ca_Cl2.hpd +42 -0
- pyromat/data/ig2/Ca_F.hpd +43 -0
- pyromat/data/ig2/Ca_F2.hpd +42 -0
- pyromat/data/ig2/Ca_I.hpd +42 -0
- pyromat/data/ig2/Ca_I2.hpd +42 -0
- pyromat/data/ig2/Ca_O.hpd +44 -0
- pyromat/data/ig2/Ca_S.hpd +44 -0
- pyromat/data/ig2/Cl+.hpd +39 -0
- pyromat/data/ig2/Cl-.hpd +39 -0
- pyromat/data/ig2/Cl.hpd +42 -0
- pyromat/data/ig2/Cl2.hpd +52 -0
- pyromat/data/ig2/Cl2_Cs2.hpd +42 -0
- pyromat/data/ig2/Cl2_Fe.hpd +42 -0
- pyromat/data/ig2/Cl2_K2.hpd +42 -0
- pyromat/data/ig2/Cl2_Li2.hpd +42 -0
- pyromat/data/ig2/Cl2_Mg.hpd +42 -0
- pyromat/data/ig2/Cl2_Na2.hpd +43 -0
- pyromat/data/ig2/Cl2_Ni.hpd +42 -0
- pyromat/data/ig2/Cl2_O.hpd +53 -0
- pyromat/data/ig2/Cl2_O2_S.hpd +45 -0
- pyromat/data/ig2/Cl2_O_Ti.hpd +43 -0
- pyromat/data/ig2/Cl2_Pb+.hpd +40 -0
- pyromat/data/ig2/Cl2_Pb.hpd +43 -0
- pyromat/data/ig2/Cl2_S+.hpd +40 -0
- pyromat/data/ig2/Cl2_S.hpd +54 -0
- pyromat/data/ig2/Cl2_S2.hpd +55 -0
- pyromat/data/ig2/Cl2_Si.hpd +42 -0
- pyromat/data/ig2/Cl2_Sr.hpd +42 -0
- pyromat/data/ig2/Cl2_Ti.hpd +42 -0
- pyromat/data/ig2/Cl3_Cu3.hpd +42 -0
- pyromat/data/ig2/Cl3_Fe.hpd +42 -0
- pyromat/data/ig2/Cl3_Li3.hpd +42 -0
- pyromat/data/ig2/Cl3_P.hpd +59 -0
- pyromat/data/ig2/Cl3_Si.hpd +43 -0
- pyromat/data/ig2/Cl3_Ti.hpd +42 -0
- pyromat/data/ig2/Cl4_Fe2.hpd +42 -0
- pyromat/data/ig2/Cl4_Pb.hpd +42 -0
- pyromat/data/ig2/Cl4_Si.hpd +59 -0
- pyromat/data/ig2/Cl4_Ti.hpd +54 -0
- pyromat/data/ig2/Cl4_V.hpd +39 -0
- pyromat/data/ig2/Cl6_Fe2.hpd +42 -0
- pyromat/data/ig2/Cl_Cs.hpd +44 -0
- pyromat/data/ig2/Cl_Cu.hpd +44 -0
- pyromat/data/ig2/Cl_D.hpd +44 -0
- pyromat/data/ig2/Cl_D_O.hpd +43 -0
- pyromat/data/ig2/Cl_F.hpd +44 -0
- pyromat/data/ig2/Cl_F3.hpd +42 -0
- pyromat/data/ig2/Cl_F_Mg.hpd +43 -0
- pyromat/data/ig2/Cl_F_O2_S.hpd +57 -0
- pyromat/data/ig2/Cl_Fe.hpd +42 -0
- pyromat/data/ig2/Cl_K.hpd +43 -0
- pyromat/data/ig2/Cl_Li.hpd +43 -0
- pyromat/data/ig2/Cl_Mg+.hpd +40 -0
- pyromat/data/ig2/Cl_Mg.hpd +43 -0
- pyromat/data/ig2/Cl_N_O.hpd +53 -0
- pyromat/data/ig2/Cl_N_O2.hpd +43 -0
- pyromat/data/ig2/Cl_Na.hpd +44 -0
- pyromat/data/ig2/Cl_Ni.hpd +44 -0
- pyromat/data/ig2/Cl_O.hpd +43 -0
- pyromat/data/ig2/Cl_O2.hpd +53 -0
- pyromat/data/ig2/Cl_O_Ti.hpd +43 -0
- pyromat/data/ig2/Cl_Pb+.hpd +40 -0
- pyromat/data/ig2/Cl_Pb.hpd +42 -0
- pyromat/data/ig2/Cl_S.hpd +43 -0
- pyromat/data/ig2/Cl_S2.hpd +43 -0
- pyromat/data/ig2/Cl_Si.hpd +43 -0
- pyromat/data/ig2/Cl_Sr.hpd +43 -0
- pyromat/data/ig2/Cl_Ti.hpd +42 -0
- pyromat/data/ig2/Cr.hpd +42 -0
- pyromat/data/ig2/Cr_N.hpd +44 -0
- pyromat/data/ig2/Cr_O.hpd +43 -0
- pyromat/data/ig2/Cr_O2.hpd +43 -0
- pyromat/data/ig2/Cr_O3.hpd +42 -0
- pyromat/data/ig2/Cs+.hpd +39 -0
- pyromat/data/ig2/Cs.hpd +38 -0
- pyromat/data/ig2/Cs2.hpd +42 -0
- pyromat/data/ig2/Cs2_F2.hpd +42 -0
- pyromat/data/ig2/Cs2_O.hpd +42 -0
- pyromat/data/ig2/Cs2_O4_S.hpd +43 -0
- pyromat/data/ig2/Cs_F.hpd +44 -0
- pyromat/data/ig2/Cs_O.hpd +43 -0
- pyromat/data/ig2/Cu+.hpd +39 -0
- pyromat/data/ig2/Cu.hpd +38 -0
- pyromat/data/ig2/Cu2.hpd +42 -0
- pyromat/data/ig2/Cu_F.hpd +43 -0
- pyromat/data/ig2/Cu_F2.hpd +42 -0
- pyromat/data/ig2/Cu_O.hpd +44 -0
- pyromat/data/ig2/D+.hpd +39 -0
- pyromat/data/ig2/D-.hpd +39 -0
- pyromat/data/ig2/D.hpd +38 -0
- pyromat/data/ig2/D2+.hpd +39 -0
- pyromat/data/ig2/D2-.hpd +39 -0
- pyromat/data/ig2/D2.hpd +44 -0
- pyromat/data/ig2/D2_N.hpd +42 -0
- pyromat/data/ig2/D2_N2.hpd +43 -0
- pyromat/data/ig2/D2_O.hpd +43 -0
- pyromat/data/ig2/D2_S.hpd +42 -0
- pyromat/data/ig2/D3_N.hpd +43 -0
- pyromat/data/ig2/D_F.hpd +44 -0
- pyromat/data/ig2/D_N.hpd +43 -0
- pyromat/data/ig2/D_O.hpd +43 -0
- pyromat/data/ig2/D_S.hpd +43 -0
- pyromat/data/ig2/F+.hpd +39 -0
- pyromat/data/ig2/F-.hpd +39 -0
- pyromat/data/ig2/F.hpd +42 -0
- pyromat/data/ig2/F2.hpd +42 -0
- pyromat/data/ig2/F2_K-.hpd +40 -0
- pyromat/data/ig2/F2_K2.hpd +42 -0
- pyromat/data/ig2/F2_Li-.hpd +40 -0
- pyromat/data/ig2/F2_Li2.hpd +42 -0
- pyromat/data/ig2/F2_Mg+.hpd +40 -0
- pyromat/data/ig2/F2_Mg.hpd +43 -0
- pyromat/data/ig2/F2_N.hpd +43 -0
- pyromat/data/ig2/F2_N2.hpd +53 -0
- pyromat/data/ig2/F2_Na-.hpd +40 -0
- pyromat/data/ig2/F2_Na2.hpd +42 -0
- pyromat/data/ig2/F2_O.hpd +52 -0
- pyromat/data/ig2/F2_O2_S.hpd +56 -0
- pyromat/data/ig2/F2_O_S.hpd +51 -0
- pyromat/data/ig2/F2_P+.hpd +40 -0
- pyromat/data/ig2/F2_P.hpd +43 -0
- pyromat/data/ig2/F2_Pb.hpd +42 -0
- pyromat/data/ig2/F2_S+.hpd +40 -0
- pyromat/data/ig2/F2_S-.hpd +40 -0
- pyromat/data/ig2/F2_S.hpd +43 -0
- pyromat/data/ig2/F2_S2.hpd +43 -0
- pyromat/data/ig2/F2_Si.hpd +43 -0
- pyromat/data/ig2/F2_Sr.hpd +42 -0
- pyromat/data/ig2/F3_Li3.hpd +39 -0
- pyromat/data/ig2/F3_N.hpd +50 -0
- pyromat/data/ig2/F3_N_O.hpd +51 -0
- pyromat/data/ig2/F3_P.hpd +50 -0
- pyromat/data/ig2/F3_S+.hpd +40 -0
- pyromat/data/ig2/F3_S-.hpd +40 -0
- pyromat/data/ig2/F3_S.hpd +43 -0
- pyromat/data/ig2/F3_Si.hpd +43 -0
- pyromat/data/ig2/F4_Mg2.hpd +42 -0
- pyromat/data/ig2/F4_N2.hpd +50 -0
- pyromat/data/ig2/F4_Pb.hpd +42 -0
- pyromat/data/ig2/F4_S+.hpd +40 -0
- pyromat/data/ig2/F4_S-.hpd +40 -0
- pyromat/data/ig2/F4_S.hpd +50 -0
- pyromat/data/ig2/F4_Si.hpd +49 -0
- pyromat/data/ig2/F5_P.hpd +48 -0
- pyromat/data/ig2/F5_S+.hpd +40 -0
- pyromat/data/ig2/F5_S-.hpd +40 -0
- pyromat/data/ig2/F5_S.hpd +43 -0
- pyromat/data/ig2/F6_S-.hpd +40 -0
- pyromat/data/ig2/F6_S.hpd +51 -0
- pyromat/data/ig2/F_K.hpd +43 -0
- pyromat/data/ig2/F_Li.hpd +43 -0
- pyromat/data/ig2/F_Li_O.hpd +44 -0
- pyromat/data/ig2/F_Mg+.hpd +40 -0
- pyromat/data/ig2/F_Mg.hpd +43 -0
- pyromat/data/ig2/F_N.hpd +43 -0
- pyromat/data/ig2/F_N_O.hpd +44 -0
- pyromat/data/ig2/F_N_O2.hpd +43 -0
- pyromat/data/ig2/F_N_O3.hpd +44 -0
- pyromat/data/ig2/F_Na.hpd +43 -0
- pyromat/data/ig2/F_O.hpd +43 -0
- pyromat/data/ig2/F_O2.hpd +39 -0
- pyromat/data/ig2/F_P+.hpd +40 -0
- pyromat/data/ig2/F_P-.hpd +40 -0
- pyromat/data/ig2/F_P.hpd +43 -0
- pyromat/data/ig2/F_Pb.hpd +42 -0
- pyromat/data/ig2/F_S+.hpd +40 -0
- pyromat/data/ig2/F_S-.hpd +40 -0
- pyromat/data/ig2/F_S.hpd +43 -0
- pyromat/data/ig2/F_Si.hpd +44 -0
- pyromat/data/ig2/F_Sr+.hpd +40 -0
- pyromat/data/ig2/F_Sr.hpd +43 -0
- pyromat/data/ig2/Fe+.hpd +39 -0
- pyromat/data/ig2/Fe-.hpd +39 -0
- pyromat/data/ig2/Fe.hpd +42 -0
- pyromat/data/ig2/Fe_O.hpd +44 -0
- pyromat/data/ig2/H+.hpd +39 -0
- pyromat/data/ig2/H-.hpd +39 -0
- pyromat/data/ig2/H.hpd +38 -0
- pyromat/data/ig2/H2+.hpd +39 -0
- pyromat/data/ig2/H2-.hpd +39 -0
- pyromat/data/ig2/H2.hpd +49 -0
- pyromat/data/ig2/H2_B.hpd +39 -0
- pyromat/data/ig2/H2_Ba_O2.hpd +40 -0
- pyromat/data/ig2/H2_Be_O2.hpd +40 -0
- pyromat/data/ig2/H2_Br2_Si.hpd +40 -0
- pyromat/data/ig2/H2_Ca_O2.hpd +40 -0
- pyromat/data/ig2/H2_Cl2_Si.hpd +40 -0
- pyromat/data/ig2/H2_Cs2_O2.hpd +40 -0
- pyromat/data/ig2/H2_F2.hpd +39 -0
- pyromat/data/ig2/H2_F2_Si.hpd +40 -0
- pyromat/data/ig2/H2_F_N.hpd +40 -0
- pyromat/data/ig2/H2_Fe_O2.hpd +40 -0
- pyromat/data/ig2/H2_I2_Si.hpd +44 -0
- pyromat/data/ig2/H2_K2_O2.hpd +43 -0
- pyromat/data/ig2/H2_Li2_O2.hpd +44 -0
- pyromat/data/ig2/H2_Mg_O2.hpd +43 -0
- pyromat/data/ig2/H2_N.hpd +43 -0
- pyromat/data/ig2/H2_N2.hpd +42 -0
- pyromat/data/ig2/H2_N2_O2.hpd +40 -0
- pyromat/data/ig2/H2_Na2_O2.hpd +44 -0
- pyromat/data/ig2/H2_O+.hpd +40 -0
- pyromat/data/ig2/H2_O.hpd +50 -0
- pyromat/data/ig2/H2_O2.hpd +43 -0
- pyromat/data/ig2/H2_O2_Sr.hpd +44 -0
- pyromat/data/ig2/H2_O4_S.hpd +68 -0
- pyromat/data/ig2/H2_S.hpd +65 -0
- pyromat/data/ig2/H2_Si.hpd +39 -0
- pyromat/data/ig2/H3_B.hpd +39 -0
- pyromat/data/ig2/H3_B3_O3.hpd +40 -0
- pyromat/data/ig2/H3_B3_O6.hpd +40 -0
- pyromat/data/ig2/H3_Br_Si.hpd +40 -0
- pyromat/data/ig2/H3_Cl_Si.hpd +40 -0
- pyromat/data/ig2/H3_F3.hpd +39 -0
- pyromat/data/ig2/H3_F_Si.hpd +40 -0
- pyromat/data/ig2/H3_I_Si.hpd +44 -0
- pyromat/data/ig2/H3_N.hpd +50 -0
- pyromat/data/ig2/H3_N_O.hpd +40 -0
- pyromat/data/ig2/H3_O+.hpd +40 -0
- pyromat/data/ig2/H3_P.hpd +54 -0
- pyromat/data/ig2/H3_Si.hpd +39 -0
- pyromat/data/ig2/H4_F4.hpd +39 -0
- pyromat/data/ig2/H4_N+.hpd +40 -0
- pyromat/data/ig2/H4_N2.hpd +52 -0
- pyromat/data/ig2/H4_Si.hpd +50 -0
- pyromat/data/ig2/H5_F5.hpd +39 -0
- pyromat/data/ig2/H6_F6.hpd +39 -0
- pyromat/data/ig2/H7_F7.hpd +39 -0
- pyromat/data/ig2/H_Al.hpd +39 -0
- pyromat/data/ig2/H_Al_O+.hpd +41 -0
- pyromat/data/ig2/H_Al_O-.hpd +41 -0
- pyromat/data/ig2/H_Al_O.hpd +40 -0
- pyromat/data/ig2/H_Al_O2.hpd +40 -0
- pyromat/data/ig2/H_B.hpd +39 -0
- pyromat/data/ig2/H_B_F2.hpd +40 -0
- pyromat/data/ig2/H_B_O+.hpd +41 -0
- pyromat/data/ig2/H_B_O-.hpd +41 -0
- pyromat/data/ig2/H_B_O.hpd +40 -0
- pyromat/data/ig2/H_B_O2.hpd +40 -0
- pyromat/data/ig2/H_B_S+.hpd +41 -0
- pyromat/data/ig2/H_B_S.hpd +40 -0
- pyromat/data/ig2/H_Ba_O+.hpd +41 -0
- pyromat/data/ig2/H_Ba_O.hpd +40 -0
- pyromat/data/ig2/H_Be+.hpd +40 -0
- pyromat/data/ig2/H_Be.hpd +39 -0
- pyromat/data/ig2/H_Be_O+.hpd +41 -0
- pyromat/data/ig2/H_Be_O.hpd +40 -0
- pyromat/data/ig2/H_Br.hpd +39 -0
- pyromat/data/ig2/H_Br3_Si.hpd +40 -0
- pyromat/data/ig2/H_Ca_O+.hpd +41 -0
- pyromat/data/ig2/H_Ca_O.hpd +40 -0
- pyromat/data/ig2/H_Cl.hpd +39 -0
- pyromat/data/ig2/H_Cl3_Si.hpd +40 -0
- pyromat/data/ig2/H_Cl_O.hpd +40 -0
- pyromat/data/ig2/H_Cs_O+.hpd +41 -0
- pyromat/data/ig2/H_Cs_O.hpd +40 -0
- pyromat/data/ig2/H_D+.hpd +40 -0
- pyromat/data/ig2/H_D-.hpd +40 -0
- pyromat/data/ig2/H_D.hpd +39 -0
- pyromat/data/ig2/H_D_O.hpd +40 -0
- pyromat/data/ig2/H_F.hpd +39 -0
- pyromat/data/ig2/H_F2_N.hpd +40 -0
- pyromat/data/ig2/H_F3_Si.hpd +40 -0
- pyromat/data/ig2/H_F_N.hpd +40 -0
- pyromat/data/ig2/H_F_O.hpd +40 -0
- pyromat/data/ig2/H_F_O3_S.hpd +41 -0
- pyromat/data/ig2/H_I.hpd +43 -0
- pyromat/data/ig2/H_I3_Si.hpd +44 -0
- pyromat/data/ig2/H_K.hpd +43 -0
- pyromat/data/ig2/H_K_O+.hpd +41 -0
- pyromat/data/ig2/H_K_O.hpd +44 -0
- pyromat/data/ig2/H_Li.hpd +43 -0
- pyromat/data/ig2/H_Li_O+.hpd +41 -0
- pyromat/data/ig2/H_Li_O.hpd +43 -0
- pyromat/data/ig2/H_Mg.hpd +43 -0
- pyromat/data/ig2/H_Mg_O+.hpd +41 -0
- pyromat/data/ig2/H_Mg_O.hpd +44 -0
- pyromat/data/ig2/H_N+.hpd +40 -0
- pyromat/data/ig2/H_N.hpd +43 -0
- pyromat/data/ig2/H_N3.hpd +39 -0
- pyromat/data/ig2/H_N_O.hpd +44 -0
- pyromat/data/ig2/H_N_O2.hpd +40 -0
- pyromat/data/ig2/H_N_O3.hpd +44 -0
- pyromat/data/ig2/H_Na.hpd +43 -0
- pyromat/data/ig2/H_Na_O+.hpd +41 -0
- pyromat/data/ig2/H_Na_O.hpd +44 -0
- pyromat/data/ig2/H_O+.hpd +40 -0
- pyromat/data/ig2/H_O-.hpd +40 -0
- pyromat/data/ig2/H_O.hpd +43 -0
- pyromat/data/ig2/H_O2.hpd +43 -0
- pyromat/data/ig2/H_O_Sr+.hpd +41 -0
- pyromat/data/ig2/H_O_Sr.hpd +44 -0
- pyromat/data/ig2/H_P.hpd +43 -0
- pyromat/data/ig2/H_S.hpd +43 -0
- pyromat/data/ig2/H_Si+.hpd +40 -0
- pyromat/data/ig2/H_Si.hpd +43 -0
- pyromat/data/ig2/He+.hpd +39 -0
- pyromat/data/ig2/He.hpd +38 -0
- pyromat/data/ig2/Hg.hpd +42 -0
- pyromat/data/ig2/I.hpd +42 -0
- pyromat/data/ig2/I2.hpd +57 -0
- pyromat/data/ig2/I2_Mg.hpd +42 -0
- pyromat/data/ig2/I2_Pb.hpd +42 -0
- pyromat/data/ig2/I2_Si.hpd +43 -0
- pyromat/data/ig2/I2_Sr.hpd +42 -0
- pyromat/data/ig2/I4_Pb.hpd +42 -0
- pyromat/data/ig2/I_Mg.hpd +42 -0
- pyromat/data/ig2/I_Na.hpd +39 -0
- pyromat/data/ig2/I_Pb.hpd +42 -0
- pyromat/data/ig2/I_Si.hpd +43 -0
- pyromat/data/ig2/K+.hpd +39 -0
- pyromat/data/ig2/K.hpd +42 -0
- pyromat/data/ig2/K2.hpd +42 -0
- pyromat/data/ig2/K2_O4_S.hpd +43 -0
- pyromat/data/ig2/K_O-.hpd +40 -0
- pyromat/data/ig2/K_O.hpd +43 -0
- pyromat/data/ig2/Kr+.hpd +39 -0
- pyromat/data/ig2/Kr.hpd +38 -0
- pyromat/data/ig2/Li+.hpd +39 -0
- pyromat/data/ig2/Li.hpd +42 -0
- pyromat/data/ig2/Li2.hpd +42 -0
- pyromat/data/ig2/Li2_O.hpd +44 -0
- pyromat/data/ig2/Li2_O2.hpd +42 -0
- pyromat/data/ig2/Li2_O4_S.hpd +43 -0
- pyromat/data/ig2/Li_N.hpd +43 -0
- pyromat/data/ig2/Li_N_O.hpd +43 -0
- pyromat/data/ig2/Li_O-.hpd +40 -0
- pyromat/data/ig2/Li_O.hpd +43 -0
- pyromat/data/ig2/Mg+.hpd +39 -0
- pyromat/data/ig2/Mg.hpd +42 -0
- pyromat/data/ig2/Mg2.hpd +42 -0
- pyromat/data/ig2/Mg_N.hpd +42 -0
- pyromat/data/ig2/Mg_O.hpd +44 -0
- pyromat/data/ig2/Mg_S.hpd +44 -0
- pyromat/data/ig2/Mo2_O6.hpd +39 -0
- pyromat/data/ig2/Mo3_O9.hpd +39 -0
- pyromat/data/ig2/Mo4_O12.hpd +39 -0
- pyromat/data/ig2/Mo5_O15.hpd +39 -0
- pyromat/data/ig2/Mo_O3.hpd +42 -0
- pyromat/data/ig2/N+.hpd +39 -0
- pyromat/data/ig2/N-.hpd +39 -0
- pyromat/data/ig2/N.hpd +42 -0
- pyromat/data/ig2/N2+.hpd +39 -0
- pyromat/data/ig2/N2-.hpd +39 -0
- pyromat/data/ig2/N2.hpd +50 -0
- pyromat/data/ig2/N2_O+.hpd +40 -0
- pyromat/data/ig2/N2_O.hpd +55 -0
- pyromat/data/ig2/N2_O3.hpd +43 -0
- pyromat/data/ig2/N2_O4.hpd +44 -0
- pyromat/data/ig2/N2_O5.hpd +44 -0
- pyromat/data/ig2/N3.hpd +38 -0
- pyromat/data/ig2/N_O+.hpd +40 -0
- pyromat/data/ig2/N_O.hpd +50 -0
- pyromat/data/ig2/N_O2-.hpd +40 -0
- pyromat/data/ig2/N_O2.hpd +52 -0
- pyromat/data/ig2/N_O3-.hpd +40 -0
- pyromat/data/ig2/N_O3.hpd +44 -0
- pyromat/data/ig2/N_S.hpd +43 -0
- pyromat/data/ig2/N_Si.hpd +43 -0
- pyromat/data/ig2/N_Si2.hpd +42 -0
- pyromat/data/ig2/N_V.hpd +44 -0
- pyromat/data/ig2/N_Zr.hpd +39 -0
- pyromat/data/ig2/Na+.hpd +39 -0
- pyromat/data/ig2/Na.hpd +42 -0
- pyromat/data/ig2/Na2.hpd +42 -0
- pyromat/data/ig2/Na2_O.hpd +39 -0
- pyromat/data/ig2/Na2_O4_S.hpd +47 -0
- pyromat/data/ig2/Na_O-.hpd +40 -0
- pyromat/data/ig2/Na_O.hpd +44 -0
- pyromat/data/ig2/Nb.hpd +38 -0
- pyromat/data/ig2/Nb_O.hpd +44 -0
- pyromat/data/ig2/Nb_O2.hpd +44 -0
- pyromat/data/ig2/Ne+.hpd +39 -0
- pyromat/data/ig2/Ne.hpd +38 -0
- pyromat/data/ig2/Ni.hpd +42 -0
- pyromat/data/ig2/Ni_O.hpd +39 -0
- pyromat/data/ig2/Ni_S.hpd +39 -0
- pyromat/data/ig2/O+.hpd +39 -0
- pyromat/data/ig2/O-.hpd +39 -0
- pyromat/data/ig2/O.hpd +38 -0
- pyromat/data/ig2/O10_P4.hpd +39 -0
- pyromat/data/ig2/O2+.hpd +39 -0
- pyromat/data/ig2/O2-.hpd +39 -0
- pyromat/data/ig2/O2.hpd +50 -0
- pyromat/data/ig2/O2_P.hpd +43 -0
- pyromat/data/ig2/O2_S.hpd +58 -0
- pyromat/data/ig2/O2_Si.hpd +49 -0
- pyromat/data/ig2/O2_Ta.hpd +43 -0
- pyromat/data/ig2/O2_Ti.hpd +45 -0
- pyromat/data/ig2/O2_V.hpd +43 -0
- pyromat/data/ig2/O2_Zr.hpd +42 -0
- pyromat/data/ig2/O3.hpd +42 -0
- pyromat/data/ig2/O3_S.hpd +44 -0
- pyromat/data/ig2/O_P.hpd +43 -0
- pyromat/data/ig2/O_Pb.hpd +39 -0
- pyromat/data/ig2/O_S.hpd +43 -0
- pyromat/data/ig2/O_S2.hpd +43 -0
- pyromat/data/ig2/O_Si.hpd +43 -0
- pyromat/data/ig2/O_Sr.hpd +44 -0
- pyromat/data/ig2/O_Ta.hpd +43 -0
- pyromat/data/ig2/O_Ti.hpd +44 -0
- pyromat/data/ig2/O_V.hpd +44 -0
- pyromat/data/ig2/O_Zr.hpd +44 -0
- pyromat/data/ig2/P+.hpd +39 -0
- pyromat/data/ig2/P.hpd +44 -0
- pyromat/data/ig2/P2.hpd +42 -0
- pyromat/data/ig2/P4.hpd +41 -0
- pyromat/data/ig2/Pb.hpd +38 -0
- pyromat/data/ig2/Pb2.hpd +41 -0
- pyromat/data/ig2/Pb_S.hpd +44 -0
- pyromat/data/ig2/S+.hpd +39 -0
- pyromat/data/ig2/S-.hpd +39 -0
- pyromat/data/ig2/S.hpd +45 -0
- pyromat/data/ig2/S2.hpd +42 -0
- pyromat/data/ig2/S8.hpd +54 -0
- pyromat/data/ig2/S_Si.hpd +43 -0
- pyromat/data/ig2/S_Sr.hpd +44 -0
- pyromat/data/ig2/Si+.hpd +39 -0
- pyromat/data/ig2/Si.hpd +42 -0
- pyromat/data/ig2/Si2.hpd +42 -0
- pyromat/data/ig2/Si3.hpd +43 -0
- pyromat/data/ig2/Sr.hpd +42 -0
- pyromat/data/ig2/Ta.hpd +42 -0
- pyromat/data/ig2/Ti+.hpd +39 -0
- pyromat/data/ig2/Ti-.hpd +39 -0
- pyromat/data/ig2/Ti.hpd +42 -0
- pyromat/data/ig2/V.hpd +42 -0
- pyromat/data/ig2/Xe+.hpd +39 -0
- pyromat/data/ig2/Xe.hpd +38 -0
- pyromat/data/ig2/Zn-.hpd +39 -0
- pyromat/data/ig2/Zn.hpd +42 -0
- pyromat/data/ig2/Zr.hpd +42 -0
- pyromat/data/ig2/e.hpd +38 -0
- pyromat/data/igmix/air.hpd +12 -0
- pyromat/data/igmix/f5.hpd +10 -0
- pyromat/data/igmix/h35.hpd +10 -0
- pyromat/data/mp/C2_H2_F4.hpd +332 -0
- pyromat/data/mp/C3_H2_F4_1.hpd +373 -0
- pyromat/data/mp/C_H4.hpd +454 -0
- pyromat/data/mp/C_O2.hpd +512 -0
- pyromat/data/mp/H2_O.hpd +592 -0
- pyromat/data/mp/N2.hpd +434 -0
- pyromat/data/mp/O2.hpd +381 -0
- pyromat/igtools.py +1800 -0
- pyromat/reg.py +379 -0
- pyromat/registry/_example.py +85 -0
- pyromat/registry/if97.py +2278 -0
- pyromat/registry/ig.py +1931 -0
- pyromat/registry/ig2.py +1400 -0
- pyromat/registry/igmix.py +1230 -0
- pyromat/registry/mp1.py +4460 -0
- pyromat/units.py +617 -0
- pyromat/utility.py +841 -0
pyromat/units.py
ADDED
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
"""Unit conversion module for PYroMat
|
|
2
|
+
|
|
3
|
+
To print a summary of all conversions supplied, call
|
|
4
|
+
>>> units.show()
|
|
5
|
+
force : lb lbf kN N oz kgf
|
|
6
|
+
energy : BTU kJ J cal eV kcal BTU_ISO
|
|
7
|
+
temperature : K R eV C F
|
|
8
|
+
pressure : mmHg psi inHg MPa inH2O kPa Pa bar atm GPa torr mmH2O ksi
|
|
9
|
+
molar : Ncum NL Nm3 kmol scf n mol sci Ncc lbmol
|
|
10
|
+
volume : cumm cc mL L mm3 in3 gal UKgal cuin ft3 cuft USgal m3 cum
|
|
11
|
+
length : ft nm cm mm m km um mile in
|
|
12
|
+
mass : mg kg g oz lb lbm slug
|
|
13
|
+
time : s ms min hr ns year day us
|
|
14
|
+
|
|
15
|
+
To obtain a list for the units recognized by a particular conversion
|
|
16
|
+
class, call the get() method,
|
|
17
|
+
>>> units.length.get()
|
|
18
|
+
['ft', 'nm', 'cm', 'mm', 'm', 'km', 'um', 'mile', 'in']
|
|
19
|
+
|
|
20
|
+
There are also special functions defined,
|
|
21
|
+
matter() Converts between molar and mass
|
|
22
|
+
ismass() Detects whether a matter unit is mass or molar
|
|
23
|
+
temperature_scale() Converts between the temperature scales
|
|
24
|
+
gauge_to_abs() Converts pressures between absolute and gauge
|
|
25
|
+
abs_to_gauge()
|
|
26
|
+
|
|
27
|
+
To alter the standards by which units are defined, call the setup()
|
|
28
|
+
function.
|
|
29
|
+
>>> setup(Tstd = 300.)
|
|
30
|
+
|
|
31
|
+
The setup() function re-defines the various constants used to calculate
|
|
32
|
+
these unit conversions. Many of them are physical constants, but some
|
|
33
|
+
have arbitrary definitions. The constants that were used to formulate
|
|
34
|
+
the conversions are exposed as module members beginning with 'const_'.
|
|
35
|
+
|
|
36
|
+
Constants that are calculated in terms of other more fundamental
|
|
37
|
+
constants are shown with their formulae in parentheses. Constants that
|
|
38
|
+
can be adjusted by a call to the setup() function are shown with their
|
|
39
|
+
default values in parentheses.
|
|
40
|
+
|
|
41
|
+
const_k 1.38064852e-23 J/K Boltzmann's constant
|
|
42
|
+
const_Na 6.022140857e23 count/mol Avagardo's number
|
|
43
|
+
const_q 1.602176634e-19 coulomb/e Elementary charge
|
|
44
|
+
const_Nc 6.24150934e18 count/coulomb Definition of a Coulomb (1/e)
|
|
45
|
+
const_Ru (k*Na) J/mol/K Ideal gas constant
|
|
46
|
+
const_Tstd (273.15) K Standard temperature
|
|
47
|
+
const_pstd (1.01325) bar Standard pressure
|
|
48
|
+
const_dstd (pstd*1e5/Ru/Tstd) mol/m3 Standard concentration
|
|
49
|
+
const_g (9.80665) m/s2 Accel. d.t. gravity
|
|
50
|
+
const_dh2o (999.9720) kg/m3 Water column density
|
|
51
|
+
const_dhg (13595.1) kg/m3 Mercury column density
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
import numpy as np
|
|
55
|
+
import pyromat as pm
|
|
56
|
+
import sys
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class Conversion:
|
|
60
|
+
"""CONVERSION CLASS
|
|
61
|
+
The unit conversion class simulates a function that converts a value of
|
|
62
|
+
one set of units to another.
|
|
63
|
+
|
|
64
|
+
new_value = conversion_object( old_value, from_units, to_units )
|
|
65
|
+
|
|
66
|
+
for example
|
|
67
|
+
|
|
68
|
+
value_ft = length(6., 'in', 'ft)
|
|
69
|
+
|
|
70
|
+
When unit specifiers are omitted, the conversion object will throw an
|
|
71
|
+
error unless conversion_object.config_default is a string. If so, it
|
|
72
|
+
specifies a parameter that users can set in their PYroMat configuration
|
|
73
|
+
files.
|
|
74
|
+
|
|
75
|
+
There is an optional 'exponent' parameter. This is to allow support for
|
|
76
|
+
cases like
|
|
77
|
+
|
|
78
|
+
volume_ft = length(volume_in, 'in', 'ft', exponent=3)
|
|
79
|
+
|
|
80
|
+
or
|
|
81
|
+
|
|
82
|
+
stress_psi = length(stress_psf, 'ft', 'in', exponent=-2)
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def __init__(self, table, config_default=None):
|
|
88
|
+
"""Conversion(table, config_default)
|
|
89
|
+
Conversion objects are initialized with a conversion table in the format
|
|
90
|
+
of a dictionary. The dictionary keys are the strings that identify the
|
|
91
|
+
various units, and the values are used to perform the conversion.
|
|
92
|
+
|
|
93
|
+
>>> inft = Conversion({'in':1., 'ft':12.})
|
|
94
|
+
>>> inft(6., from_units='in', to_units='ft')
|
|
95
|
+
.5
|
|
96
|
+
|
|
97
|
+
Note that the values in the table are chosen so that
|
|
98
|
+
>>> new_value = old_value / (table[to_units] / table[from_units])
|
|
99
|
+
|
|
100
|
+
The __call__ method has two additional optional parameters; exponent
|
|
101
|
+
and inplace. In the "inft" example above, the "exponent" parameter
|
|
102
|
+
might be set to 3 to make the conversion volumetric instead of length.
|
|
103
|
+
The inplace parameter is intended for operating on numpy arrays
|
|
104
|
+
"in-place" so that instead of returning a new array, the original value
|
|
105
|
+
array will have its values converted "in-place".
|
|
106
|
+
|
|
107
|
+
There is an optional config_default parameter that can be used to specify
|
|
108
|
+
the behavior of the 'to_units' and 'from_units' strings if they are not
|
|
109
|
+
specified when the conversion is evoked. The config_default does NOT
|
|
110
|
+
define the default unit string; rather it specifies the parameter name
|
|
111
|
+
to query using pm.utility.get_config() for the default units. This
|
|
112
|
+
allows users to completely reconfigure the PYroMat unit system on the
|
|
113
|
+
fly.
|
|
114
|
+
"""
|
|
115
|
+
self.table = table
|
|
116
|
+
self.config_default = config_default
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def __contains__(self, unit):
|
|
120
|
+
"""Test whether a particular unit string is supported"""
|
|
121
|
+
return (unit in self.table)
|
|
122
|
+
|
|
123
|
+
def __call__(self, value=1., from_units=None, to_units=None, exponent=None, inplace=False):
|
|
124
|
+
"""Execultes a conversion from [from_units]**[exponent] to
|
|
125
|
+
[to_units]**[exponent]. By default, [value] is 1., so that the value
|
|
126
|
+
returned is the appropriate conversion factor to convert any set of
|
|
127
|
+
units. Otherwise, [value] should be the quantity to be converted to the
|
|
128
|
+
new system of units.
|
|
129
|
+
"""
|
|
130
|
+
# Check to be certain from_units is specified
|
|
131
|
+
if from_units is None:
|
|
132
|
+
# If not, retrieve the configured default units
|
|
133
|
+
if self.config_default is None:
|
|
134
|
+
raise pm.utility.PMParamError('Missing from_units, and no default specified')
|
|
135
|
+
else:
|
|
136
|
+
from_units = pm.config[self.config_default]
|
|
137
|
+
# Repeat for to_units. Are they specified?
|
|
138
|
+
if to_units is None:
|
|
139
|
+
# If not, retrieve the configured default units
|
|
140
|
+
if self.config_default is None:
|
|
141
|
+
raise pm.utility.PMParamError('Missing from_units, and no default specified')
|
|
142
|
+
else:
|
|
143
|
+
to_units = pm.config[self.config_default]
|
|
144
|
+
# Do not do the conversion if it is not necessary
|
|
145
|
+
if from_units == to_units:
|
|
146
|
+
return value
|
|
147
|
+
|
|
148
|
+
conv = self.table[from_units] / self.table[to_units]
|
|
149
|
+
if exponent:
|
|
150
|
+
conv **= exponent
|
|
151
|
+
|
|
152
|
+
if inplace and isinstance(value, np.ndarray):
|
|
153
|
+
# Point to the original array if possible
|
|
154
|
+
return np.multiply(value, conv,out=value)
|
|
155
|
+
|
|
156
|
+
return np.multiply(value, conv)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def __getitem__(self,item):
|
|
161
|
+
return self.table.__getitem__(item)
|
|
162
|
+
|
|
163
|
+
def __setitem__(self,item,value):
|
|
164
|
+
return self.table.__setitem__(item,value)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def get(self):
|
|
168
|
+
"""Return an unorded list of the units supported"""
|
|
169
|
+
return self.table.keys()
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def setup(Tstd=273.15, pstd=1.01325, g=9.80665, dh2o=999.9720, dhg=13595.1):
|
|
175
|
+
"""Set up the conversion functions
|
|
176
|
+
setup(Tstd=273.15, pstd=1.01325, g=9.80665, dh2o=999.9720, dhg=13595.1)
|
|
177
|
+
|
|
178
|
+
The arguments to setup() allow users to re-define certain conventional
|
|
179
|
+
constants from which unit conversions are derived. For example, the
|
|
180
|
+
standard temperature and pressure have no universal convention.
|
|
181
|
+
Similarly, the density of mercury and water used for column pressure can
|
|
182
|
+
obey contradictory conventions, and the acceleration due to gravity might
|
|
183
|
+
be adjusted for operation at different points on the globe.
|
|
184
|
+
|
|
185
|
+
The parameters and their defaults are defined as follows:
|
|
186
|
+
Tstd = 273.15 Kelvin (0 degC)
|
|
187
|
+
pstd = 1.01325 Bar (The US Standard atmosphere)
|
|
188
|
+
g = 9.80665 m/s^2 (Acceleration due to gravity at 45 deg latitude)
|
|
189
|
+
dh2o = 999.9720 kg/m^3 (Density of water at 4 degC)
|
|
190
|
+
dhg = 13595.1 kg/m^3 (Density of mercury at 0 degC)
|
|
191
|
+
|
|
192
|
+
Changes to these values must remain in the units shown above.
|
|
193
|
+
|
|
194
|
+
This function writes constants,
|
|
195
|
+
# Plank constant
|
|
196
|
+
const_h = 6.62607015e-34
|
|
197
|
+
|
|
198
|
+
#Boltzman
|
|
199
|
+
# Used to convert between eV and temperature
|
|
200
|
+
const_k = 1.38064852e-23 # J/K
|
|
201
|
+
|
|
202
|
+
#Avagadro's number
|
|
203
|
+
# Used by the standard volume and molar units
|
|
204
|
+
const_Na = 6.022140857e23 # count/mol
|
|
205
|
+
|
|
206
|
+
#Coulomb
|
|
207
|
+
# Used to convert between eV and Joules
|
|
208
|
+
const_q = 1.602176634e-19 # coulomb
|
|
209
|
+
const_Nc = 1/const_q # count/coulomb
|
|
210
|
+
|
|
211
|
+
#Universal gas constant
|
|
212
|
+
# Used by the standard volume molar units
|
|
213
|
+
const_Ru = const_k * const_Na # J/mol/K
|
|
214
|
+
|
|
215
|
+
#Standard Temperature
|
|
216
|
+
# Used by the standard volume molar units
|
|
217
|
+
const_Tstd = Tstd #K
|
|
218
|
+
|
|
219
|
+
#Standard Pressure (US Std atmosphere)
|
|
220
|
+
# Used by the standard volume molar units
|
|
221
|
+
# and the atm pressure unit
|
|
222
|
+
const_Pstd = pstd #bar
|
|
223
|
+
|
|
224
|
+
#Molecules in a cubic meter at standard conditions
|
|
225
|
+
# The authoritative constant used for standard volume
|
|
226
|
+
const_dstd = const_pstd*1e5/const_Ru/const_Tstd # 1/m^3
|
|
227
|
+
|
|
228
|
+
#Acceleration due to gravity on Earth
|
|
229
|
+
# Used by column height pressure units
|
|
230
|
+
const_g = g # m/s^2
|
|
231
|
+
|
|
232
|
+
#Density of water (for water column pressure)
|
|
233
|
+
# Used by column water pressures
|
|
234
|
+
const_dh2o = dh2o
|
|
235
|
+
|
|
236
|
+
#Density of mercury (for mercury column pressure)
|
|
237
|
+
# Used by column mercury pressures
|
|
238
|
+
const_dhg = dhg
|
|
239
|
+
|
|
240
|
+
To change the standard conditions, call this function, and all
|
|
241
|
+
unit conversion routines will be updated.
|
|
242
|
+
"""
|
|
243
|
+
# Set up the exports as globals
|
|
244
|
+
global const_h, const_k, const_Na, const_Nc, const_Ru, const_Tstd, \
|
|
245
|
+
const_pstd, const_dstd, const_g, const_dh2o, const_dhg, const_q,\
|
|
246
|
+
energy, length, time, mass, molar, temperature, \
|
|
247
|
+
volume, pressure, force\
|
|
248
|
+
# Plank: fundamental definition of kilogram from BIPM
|
|
249
|
+
const_h = 6.62607015e-34 # Js
|
|
250
|
+
#Boltzmann: fundamental definition of Kelvin from BIPM
|
|
251
|
+
const_k = 1.380649e-23 # J/K
|
|
252
|
+
#Avagadro: Fundamental definition of the mole from BIPM
|
|
253
|
+
const_Na = 6.02214076e23 # count/mol
|
|
254
|
+
#Coulumb: Fundamental definition of Ampere from BIPM
|
|
255
|
+
const_q = 1.602176634e-19 # Fundamental charge in coulombs
|
|
256
|
+
const_Nc = 1/const_q # count/coulomb
|
|
257
|
+
#Universal gas
|
|
258
|
+
const_Ru = const_k * const_Na # J/mol/K
|
|
259
|
+
#Standard Temperature
|
|
260
|
+
const_Tstd = Tstd #K
|
|
261
|
+
# Standard Pressure (US Std atmosphere)
|
|
262
|
+
const_pstd = pstd #bar
|
|
263
|
+
# Standard molar concentration
|
|
264
|
+
const_dstd = const_pstd*1e5/const_Ru/const_Tstd # mol/m^3
|
|
265
|
+
# Acceleration due to gravity on Earth
|
|
266
|
+
const_g = g # m/s^2
|
|
267
|
+
# Density of water (for water column pressure)
|
|
268
|
+
const_dh2o = dh2o
|
|
269
|
+
# Density of mercury (for mercury column pressure)
|
|
270
|
+
const_dhg = dhg
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# Validated 11/18/2017
|
|
274
|
+
# Added angstroms 7/5/2021
|
|
275
|
+
length = Conversion({
|
|
276
|
+
'km':1e3, # Kilometer
|
|
277
|
+
'm':1., # Meter
|
|
278
|
+
'cm':.01, # Centimeter
|
|
279
|
+
'mm':1e-3, # Millimeter
|
|
280
|
+
'um':1e-6, # Micrometer
|
|
281
|
+
'nm':1e-9, # Nanometer
|
|
282
|
+
'A':1e-10, # Angstrom
|
|
283
|
+
'in':.0254, # Inch
|
|
284
|
+
'nmi':1852, # Nautical Mile
|
|
285
|
+
}, 'unit_length')
|
|
286
|
+
length['ft'] = length['in'] * 12. # Foot
|
|
287
|
+
length['yd'] = length['ft'] * 3. # Yard
|
|
288
|
+
length['mile'] = length['ft'] * 5280. # statute mile
|
|
289
|
+
length['mi'] = length['mile']
|
|
290
|
+
|
|
291
|
+
# Validated 11/18/2017
|
|
292
|
+
time = Conversion({
|
|
293
|
+
'ns':1e-9, # Nanosecond
|
|
294
|
+
'us':1e-6, # Microsecond
|
|
295
|
+
'ms':1e-3, # Millisecond
|
|
296
|
+
's':1., # Second
|
|
297
|
+
'min':60., # Minute
|
|
298
|
+
'hr':3600., # Hour
|
|
299
|
+
'day':86400., # Day
|
|
300
|
+
'year':31536000. # Julian year
|
|
301
|
+
}, 'unit_time')
|
|
302
|
+
|
|
303
|
+
# Validated 11/18/2017
|
|
304
|
+
# Added u and amu, and changed to fundamental definition of lbm
|
|
305
|
+
# 7/5/2021
|
|
306
|
+
mass = Conversion({
|
|
307
|
+
'kg':1., # Kilogram
|
|
308
|
+
'g':1e-3, # Gram
|
|
309
|
+
'mg':1e-6, # Milligram
|
|
310
|
+
'lbm': 0.45359237, # avoirdupois pound mass (precise by definition)
|
|
311
|
+
}, 'unit_mass')
|
|
312
|
+
mass['lb'] = mass['lbm'] # pound-mass
|
|
313
|
+
mass['oz'] = mass['lbm']/16. # ounce-mass
|
|
314
|
+
# The slug is one pound adjusted by gc
|
|
315
|
+
mass['slug'] = mass['lb'] / (length['ft'] / (const_g * length['m']))
|
|
316
|
+
# Define the atomic unit based on avagadro's number
|
|
317
|
+
mass['u'] = 1./(const_Na * 1000)
|
|
318
|
+
mass['amu'] = mass['u']
|
|
319
|
+
|
|
320
|
+
# Validated 11/18/2017
|
|
321
|
+
force = Conversion({
|
|
322
|
+
'N':1., # Newton
|
|
323
|
+
'kN':1000, # Kilonewton
|
|
324
|
+
'lb': const_g * mass['lb'], # Pounds
|
|
325
|
+
'kgf':const_g # Kilogram-force
|
|
326
|
+
}, 'unit_force')
|
|
327
|
+
force['lbf'] = force['lb']
|
|
328
|
+
force['oz'] = force['lb']/16.
|
|
329
|
+
|
|
330
|
+
# Define the molar to be consistently scaled with mass
|
|
331
|
+
# This is essential for the matter function to operate correctly
|
|
332
|
+
# Validated 11/18/2017
|
|
333
|
+
molar = Conversion({
|
|
334
|
+
'kmol':mass['kg'], # Kilomole
|
|
335
|
+
'mol':mass['g'], # Mole
|
|
336
|
+
'lbmol':mass['lbm'], # Pound-mole
|
|
337
|
+
}, 'unit_molar')
|
|
338
|
+
molar['n'] = molar['mol']/const_Na # Molecular count
|
|
339
|
+
molar['Nm3'] = molar['mol']*const_dstd # Normal cubic meters
|
|
340
|
+
molar['Ncum'] = molar['Nm3'] # Normal cubic meters
|
|
341
|
+
molar['NL'] = molar['Nm3']*1e-3 # Normal liters
|
|
342
|
+
molar['Ncc'] = molar['Nm3']*1e-6 # Normal cubic centimeters
|
|
343
|
+
molar['scf'] = molar['Nm3'] * (length['ft'] / length['m'])**3
|
|
344
|
+
molar['sci'] = molar['scf'] * (length['in'] / length['ft'])**3
|
|
345
|
+
|
|
346
|
+
# Validated 11/18/2017
|
|
347
|
+
# Adjusted so that Kelvin is 1.8 instead of Rankine 5/9
|
|
348
|
+
# 7/6/2021
|
|
349
|
+
temperature = Conversion({
|
|
350
|
+
'K':1.8, # Kelvin
|
|
351
|
+
'C':1.8, # Celsius
|
|
352
|
+
'F':1., # Farenheit
|
|
353
|
+
'R':1., # Rankine
|
|
354
|
+
'eV':1.8*const_q/const_k # Electron-Volts
|
|
355
|
+
}, 'unit_temperature')
|
|
356
|
+
|
|
357
|
+
# Validated 11/18/2017
|
|
358
|
+
energy = Conversion({
|
|
359
|
+
'J':1., # Joule
|
|
360
|
+
'kJ':1000., # Kilojoule
|
|
361
|
+
'cal':4.184, # Calorie (thermochemical)
|
|
362
|
+
'kcal':4184., # Kilo Calorie (thermochemical)
|
|
363
|
+
'eV':const_q # Electron-Volt
|
|
364
|
+
}, 'unit_energy')
|
|
365
|
+
# Define the BTU as the energy
|
|
366
|
+
# British thermal unit (thermochemical)
|
|
367
|
+
energy['BTU'] = energy['cal'] * (mass['lbm']/mass['g']) * (temperature['F']/temperature['C'])
|
|
368
|
+
|
|
369
|
+
# Validated 11/18/2017
|
|
370
|
+
volume = Conversion({
|
|
371
|
+
'm3':length['m']**3, # Cubic meters
|
|
372
|
+
'mm3':length['mm']**3, # Cubic millimeters
|
|
373
|
+
'cm3':length['cm']**3, # Cubic centimeter
|
|
374
|
+
'in3':length['in']**3, # Cubic inches
|
|
375
|
+
'ft3':length['ft']**3, # Cubic feet
|
|
376
|
+
}, 'unit_volume')
|
|
377
|
+
volume['L'] = volume['m3'] / 1000
|
|
378
|
+
volume['mL'] = volume['L'] / 1000
|
|
379
|
+
volume['uL'] = volume['L'] / 1e6
|
|
380
|
+
volume['cum'] = volume['m3']
|
|
381
|
+
volume['cc'] = volume['cm3']
|
|
382
|
+
volume['cumm'] = volume['mm3']
|
|
383
|
+
volume['cuin'] = volume['in3']
|
|
384
|
+
volume['cuft'] = volume['ft3']
|
|
385
|
+
volume['gal'] = volume['in3'] * 231.
|
|
386
|
+
volume['USgal'] = volume['gal']
|
|
387
|
+
volume['UKgal'] = volume['L'] * 4.54609 # Imperial gallons
|
|
388
|
+
volume['qt'] = volume['gal'] / 4 # US liquid quart
|
|
389
|
+
volume['pt'] = volume['gal'] / 8 # US liquid pint
|
|
390
|
+
|
|
391
|
+
# Validated 11/18/2017
|
|
392
|
+
pressure = Conversion({
|
|
393
|
+
'Pa':1., # Pascals
|
|
394
|
+
'kPa':1e3, # Kilopascals
|
|
395
|
+
'MPa':1e6, # Megapascals
|
|
396
|
+
'GPa':1e9, # Gigapascals
|
|
397
|
+
'bar':1e5, # Bar
|
|
398
|
+
'atm':1e5*const_pstd, # Standard atmosphere
|
|
399
|
+
'Torr':const_pstd * 1e5 / 760, # Torr
|
|
400
|
+
'mmHg':const_dhg*const_g*length['mm'], # mm Mercury column height
|
|
401
|
+
'mmH2O':const_dh2o*const_g*length['mm'], # mm column height water
|
|
402
|
+
'psi':(force['lb']/force['N']) * (length['m'] / length['in'])**2,
|
|
403
|
+
}, 'unit_pressure')
|
|
404
|
+
pressure['psf'] = pressure['psi'] * (length['in'] / length['ft'])**2
|
|
405
|
+
pressure['ksi'] = pressure['psi'] * 1000. # kips per square inch
|
|
406
|
+
pressure['inHg'] = pressure['mmHg'] * length['in'] / length['mm'] # in Mercury column height
|
|
407
|
+
pressure['inH2O'] = pressure['mmH2O'] * length['in'] / length['mm'] # in water column height
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
# Execute the setup function
|
|
411
|
+
# This is executed BEFORE defining the other functions so the conversions
|
|
412
|
+
# will already be available
|
|
413
|
+
setup()
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
def ismass(units=None):
|
|
417
|
+
"""Detect whether matter units are mass or molar
|
|
418
|
+
ismass()
|
|
419
|
+
OR
|
|
420
|
+
ismass(units)
|
|
421
|
+
|
|
422
|
+
Expects units to be a string defining a mass or molar unit. Returns
|
|
423
|
+
True if the string corresponds to a mass unit, False if it corresponds
|
|
424
|
+
to a molar unit, and raises a PMParamError if the string is not
|
|
425
|
+
recognized.
|
|
426
|
+
|
|
427
|
+
When ismass() is called with no argument, it checks the pyromat
|
|
428
|
+
config['unit_matter'] unit.
|
|
429
|
+
"""
|
|
430
|
+
if units is None:
|
|
431
|
+
units = pm.config['unit_matter']
|
|
432
|
+
if units in mass:
|
|
433
|
+
return True
|
|
434
|
+
elif units in molar:
|
|
435
|
+
return False
|
|
436
|
+
raise pm.utility.PMParamError('Unrecognized unit matter: ' + repr(units))
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
# Validated 11/18/2017
|
|
440
|
+
def temperature_scale(value, from_units=None, to_units=None, inplace=False):
|
|
441
|
+
"""Convert between tempertures scales
|
|
442
|
+
new_value = temperature_scale(old_value, from_units=None, to_units=None)
|
|
443
|
+
|
|
444
|
+
If the from_units or to_units are neglected, they will be pulled from the
|
|
445
|
+
'unit_temperature' pm configuration parameter. The temperature_scale()
|
|
446
|
+
function is used to convert values between scales. The temperature()
|
|
447
|
+
conversion routine converts differential or relative temperatures. For
|
|
448
|
+
example, temperature_scale() would be used to assert that 300K is 26.85C,
|
|
449
|
+
but temperature() could be used to show that specific heat is expressed
|
|
450
|
+
identically in J/kg/K and J/kg/C.
|
|
451
|
+
|
|
452
|
+
Instead of to_units or from_units, the string 'abs' may be passed. This
|
|
453
|
+
implies that the temperature scale should be converted to or from its
|
|
454
|
+
respective absolute scale. This is useful to ensure an absolute
|
|
455
|
+
temperature when the actual system of units is uncertain. For example,
|
|
456
|
+
T = temperature_scale(T, to_units = 'abs')
|
|
457
|
+
[... some code ...]
|
|
458
|
+
T = temperature_scale(T, from_units = 'abs')
|
|
459
|
+
This sequence of operations will convert a temperature from the system
|
|
460
|
+
default to an absolute scale, perform some operation, and return to the
|
|
461
|
+
original default scale.
|
|
462
|
+
"""
|
|
463
|
+
|
|
464
|
+
# Check to be certain from_units is specified
|
|
465
|
+
if from_units is None:
|
|
466
|
+
from_units = pm.config['unit_temperature']
|
|
467
|
+
# Repeat for to_units. Are they specified?
|
|
468
|
+
if to_units is None:
|
|
469
|
+
to_units = pm.config['unit_temperature']
|
|
470
|
+
|
|
471
|
+
if from_units == to_units:
|
|
472
|
+
return value
|
|
473
|
+
elif from_units == 'abs':
|
|
474
|
+
if to_units == 'C':
|
|
475
|
+
from_units = 'K'
|
|
476
|
+
elif to_units == 'F':
|
|
477
|
+
from_units = 'R'
|
|
478
|
+
else:
|
|
479
|
+
return value
|
|
480
|
+
elif to_units == 'abs':
|
|
481
|
+
if from_units == 'C':
|
|
482
|
+
to_units = 'K'
|
|
483
|
+
elif from_units == 'F':
|
|
484
|
+
to_units = 'R'
|
|
485
|
+
else:
|
|
486
|
+
return value
|
|
487
|
+
|
|
488
|
+
if inplace and isinstance(value, np.ndarray):
|
|
489
|
+
# point to the original if possible
|
|
490
|
+
out = value
|
|
491
|
+
else:
|
|
492
|
+
# copy the original
|
|
493
|
+
out = np.array(value, dtype=float)
|
|
494
|
+
|
|
495
|
+
if from_units == 'C':
|
|
496
|
+
np.add(out, 273.15, out=out)
|
|
497
|
+
elif from_units == 'R':
|
|
498
|
+
np.divide(out, 1.8, out=out)
|
|
499
|
+
elif from_units == 'F':
|
|
500
|
+
np.divide(out, 1.8, out=out)
|
|
501
|
+
np.add(out, 255.3722222222222, out=out)
|
|
502
|
+
elif from_units == 'eV':
|
|
503
|
+
np.multiply(out, const_q / const_k, out=out)
|
|
504
|
+
|
|
505
|
+
if to_units == 'C':
|
|
506
|
+
np.subtract(out, 273.15, out=out)
|
|
507
|
+
elif to_units == 'R':
|
|
508
|
+
np.multiply(out, 1.8, out=out)
|
|
509
|
+
elif to_units == 'F':
|
|
510
|
+
np.subtract(out, 255.3722222222222, out=out)
|
|
511
|
+
np.multiply(out, 1.8, out=out)
|
|
512
|
+
elif to_units == 'eV':
|
|
513
|
+
np.divide(out,const_q / const_k, out=out)
|
|
514
|
+
return out
|
|
515
|
+
|
|
516
|
+
# Validated 11/18/2017
|
|
517
|
+
# Modified 7/4/2018 without validation -- added inplace operation
|
|
518
|
+
def gauge_to_abs(value, units=None, patm=const_pstd, inplace=False):
|
|
519
|
+
"""Adjust a gauge pressure to be in absolute units
|
|
520
|
+
new_value = gauge_to_abs(old_value, units=None, patm=const_pstd)
|
|
521
|
+
|
|
522
|
+
The 'units' keyword specifies the pressure units. If it is omitted,
|
|
523
|
+
the 'units_pressure' PYroMat configuration parameter is used instead.
|
|
524
|
+
|
|
525
|
+
The 'patm' keyword specifies the atmospheric pressure IN BAR. By
|
|
526
|
+
default, the standard pressure is used. If the atmospheric pressure
|
|
527
|
+
is already known in the same units as the gauge pressure, do not use
|
|
528
|
+
gauge_to_absolute(); simply add it to the old value.
|
|
529
|
+
"""
|
|
530
|
+
if inplace and isinstance(value, np.ndarray):
|
|
531
|
+
return np.add(
|
|
532
|
+
value,
|
|
533
|
+
pressure(patm,from_units='bar',to_units=units),
|
|
534
|
+
out=value)
|
|
535
|
+
return np.add(
|
|
536
|
+
value,
|
|
537
|
+
pressure(patm,from_units='bar',to_units=units))
|
|
538
|
+
|
|
539
|
+
# Validated 11/18/2017
|
|
540
|
+
# Modified 7/4/2018 without validation -- added inplace operation
|
|
541
|
+
def abs_to_gauge(value, units=None, patm=const_pstd, inplace=False):
|
|
542
|
+
"""Adjust an absolute pressure to be in gauge units
|
|
543
|
+
new_value = gauge_to_abs(old_value, units=None, patm=const_pstd)
|
|
544
|
+
|
|
545
|
+
The 'units' keyword specifies the pressure units. If it is omitted,
|
|
546
|
+
the 'units_pressure' PYroMat configuration parameter is used instead.
|
|
547
|
+
|
|
548
|
+
The 'patm' keyword specifies the atmospheric pressure IN BAR. By
|
|
549
|
+
default, the standard pressure is used. If the atmospheric pressure
|
|
550
|
+
is already known in the same units as the gauge pressure, do not use
|
|
551
|
+
gauge_to_absolute(); simply add it to the old value.
|
|
552
|
+
"""
|
|
553
|
+
if inplace and isinstance(value, np.ndarray):
|
|
554
|
+
return np.subtract(value,
|
|
555
|
+
pressure(patm,from_units='bar',to_units=units),
|
|
556
|
+
out=value)
|
|
557
|
+
return np.subtract(
|
|
558
|
+
value,
|
|
559
|
+
pressure(patm,from_units='bar',to_units=units))
|
|
560
|
+
|
|
561
|
+
# Validated 11/18/2017
|
|
562
|
+
def matter(value, mw, from_units=None, to_units=None, exponent=None, inplace=False):
|
|
563
|
+
"""Convert between molar and mass units
|
|
564
|
+
new_value = matter(old_value, mw,
|
|
565
|
+
from_units=None, to_units=None, exponent=None)
|
|
566
|
+
|
|
567
|
+
This is a wrapper function for the mass() and molar() conversion routines
|
|
568
|
+
that will permit conversion between mass and molar units. As a result,
|
|
569
|
+
the molecular weight is required.
|
|
570
|
+
|
|
571
|
+
If the from_units or the to_units values are not specified, the pyromat
|
|
572
|
+
'unit_matter' parameter will be used.
|
|
573
|
+
"""
|
|
574
|
+
|
|
575
|
+
# Check to be certain from_units is specified
|
|
576
|
+
if from_units is None:
|
|
577
|
+
from_units = pm.utility.get_config('unit_matter')
|
|
578
|
+
# Repeat for to_units. Are they specified?
|
|
579
|
+
if to_units is None:
|
|
580
|
+
to_units = pm.utility.get_config('unit_matter')
|
|
581
|
+
|
|
582
|
+
if from_units == to_units:
|
|
583
|
+
return value
|
|
584
|
+
|
|
585
|
+
conv = 1.
|
|
586
|
+
if from_units in mass:
|
|
587
|
+
if to_units in mass:
|
|
588
|
+
return mass(value, from_units, to_units, exponent, inplace=inplace)
|
|
589
|
+
else:
|
|
590
|
+
conv = mass[from_units] / mw / molar[to_units]
|
|
591
|
+
else:
|
|
592
|
+
if to_units in molar:
|
|
593
|
+
return molar(value, from_units, to_units, exponent, inplace=inplace)
|
|
594
|
+
else:
|
|
595
|
+
conv = molar[from_units] * mw / mass[to_units]
|
|
596
|
+
if exponent:
|
|
597
|
+
conv**=exponent
|
|
598
|
+
|
|
599
|
+
if inplace and isinstance(value, np.ndarray):
|
|
600
|
+
return np.multiply(value, conv, out=value)
|
|
601
|
+
return np.multiply(value, conv)
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
def show():
|
|
605
|
+
"""Print a summary of all unit conversions available"""
|
|
606
|
+
for name,conv in pm.units.__dict__.items():
|
|
607
|
+
if isinstance(conv,Conversion):
|
|
608
|
+
sys.stdout.write( '%15s : '%name)
|
|
609
|
+
for item in conv.get():
|
|
610
|
+
sys.stdout.write(item + ' ')
|
|
611
|
+
sys.stdout.write('\n')
|
|
612
|
+
sys.stdout.write('See also...\n'
|
|
613
|
+
' abs_to_gauge() Absolute to gauge pressure\n'+
|
|
614
|
+
' gauge_to_abs() Gauge to absolute pressure\n'+
|
|
615
|
+
' matter() Moles and mass conversions\n'+
|
|
616
|
+
' temperature_scale() Correct handling of non-absolute temperatures\n')
|
|
617
|
+
|