{ "info": { "author": "drunsinn", "author_email": "dr.unsinn@googlemail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Physics" ], "description": "# XSteam\n\nOriginal Released by Magnus Holmgren for Matlab and Excel:\n and/or \n\nXSteam provides (mostly) accurate steam and water properties from 0 -\n1000 bar and from 0 - 2000 \u00b0C according to the [IAPWS release IF-97](http://www.iapws.org/relguide/IF97-Rev.pdf). For\naccuracy of the functions in different regions see IF-97 Page 4\n\nAlso includes thermal conductivity and viscosity, which are not part of\nthe IF97 release.\n* Thermal Conductivity: (IAPWS 1998)\n\n* Viscosity: (2003)\n\n## Requirements\n\nThere are no requirements for installing pyXSteam with Python 3.6 and up.\nTests require numpy, demos require numpy and matplotlib\n\n## Install\n\nrun `python3 setup.py install`\n\nTo run unittests: `python setup.py test` but make sure numpy is installed\n\nTo test if setup was successful, run `python3 bin/pyXSteamDemo.py`. This will require numpy and matplotlib to be installed.\nThere are still (as of v0.4.2) some Errors in the speed of sound functions, so be warned that they exceed the Error Range. Apart form accuracy errors, there should be no warnings.\n\n## Nomenclature\n\nAll Functions follow the same naming schema: First the wanted property,\nthen a underscore `_`, then the wanted input properties Example:\n`t_ph` is temperature as a function of pressure and enthalpy. For a list\nof valid functions se bellow:\n\n| Property | Description |\n|----------|--------------------------------------------------------------|\n| t | Temperature (\u00b0C or \u00b0F) |\n| p | Pressure (bar or psi) |\n| h | Enthalpy (kJ/kg or btu/lb) |\n| v | Specific volume (m3/kg or ft\\^3/lb) |\n| rho | Density (kg/m3 or lb/ft\\^3) |\n| s | Specific entropy (kJ/(kg \u00b0C) or btu/(lb \u00b0F)) |\n| u | Specific internal energy (kJ/kg or btu/lb) |\n| Cp | Specific isobaric heat capacity (kJ/(kg \u00b0C) or btu/(lb \u00b0F)) |\n| Cv | Specific isochoric heat capacity (kJ/(kg \u00b0C) or btu/(lb \u00b0F)) |\n| w | Speed of sound (m/s or ft/s) |\n| my | Viscosity (N s/m\\^2 or lbm/ft/hr) |\n| tc | Thermal Conductivity (W/(m \u00b0C) or btu/(h ft \u00b0F)) |\n| st | Surface Tension (N/m or lb/ft) |\n| x | Vapor fraction |\n| vx | Vapor Volume Fraction |\n\n## Usage\n\nSimple Example:\n\n from pyXSteam.XSteam import XSteam\n steamTable = XSteam(XSteam.UNIT_SYSTEM_MKS) print steamTable.hL_p(220.0)\n\nBy using the unitSystem Parameter, you can tell XSteam witch Unit System you are using.\n\n steamTable = XSteam(XSteam.UNIT_SYSTEM_MKS) # m/kg/sec/\u00b0C/bar/W\n steamTable = XSteam(XSteam.UNIT_SYSTEM_FLS) # ft/lb/sec/\u00b0F/psi/btu\n steamTable = XSteam(XSteam.UNIT_SYSTEM_BARE) # m/kg/sec/K/MPa/W\n\nTo enable logging, add the following lines to your code:\n\n import logging logger = logging.getLogger(\\'pyXSteam\\')\n logger.setLevel(logging.DEBUG) sh = logging.StreamHandler()\n sh.setFormatter(logging.Formatter(\\'%(name)s - %(levelname)s - %(message)s\\'))\n logger.addHandler(sh)\n\n## Available Functions\n\n### Temperature\n| Function | Description |\n|----------|----------------------------------------------------|\n| tsat_p | Saturation temperature |\n| t_ph | Temperature as a function of pressure and enthalpy |\n| t_ps | Temperature as a function of pressure and entropy |\n| t_hs | Temperature as a function of enthalpy and entropy |\n\n### Pressure\n| Function | Description |\n|----------|----------------------------------------------------------------------------------------------------------------|\n| psat_t | Saturation pressure |\n| p_hs | Pressure as a function of h and s. |\n| p_hrho | Pressure as a function of h and rho. Very inaccurate for solid water region since it's almost incompressible! |\n\n### Enthalpy\n| Function | Description |\n|----------|---------------------------------------------------------------------------------------------------------------------|\n| hV_p | Saturated vapor enthalpy |\n| hL_p | Saturated liquid enthalpy |\n| hV_t | Saturated vapor enthalpy |\n| hL_t | Saturated liquid enthalpy |\n| h_pt | Enthalpy as a function of pressure and temperature |\n| h_ps | Enthalpy as a function of pressure and entropy |\n| h_px | Enthalpy as a function of pressure and vapor fraction |\n| h_prho | Enthalpy as a function of pressure and density. Observe for low temperatures (liquid) this equation has 2 solutions |\n| h_tx | Enthalpy as a function of temperature and vapor fraction |\n\n### Specific volume\n| Function | Description |\n|----------|-----------------------------------------------------------|\n| vV_p | Saturated vapor volume |\n| vL_p | Saturated liquid volume |\n| vV_t | Saturated vapor volume |\n| vL_t | Saturated liquid volume |\n| v_pt | Specific volume as a function of pressure and temperature |\n| v_ph | Specific volume as a function of pressure and enthalpy |\n| v_ps | Specific volume as a function of pressure and entropy |\n\n### Density\n| Function | Description |\n|----------|---------------------------------------------------|\n| rhoV_p | Saturated vapor density |\n| rhoL_p | Saturated liquid density |\n| rhoV_t | Saturated vapor density |\n| rhoL_t | Saturated liquid density |\n| rho_pt | Density as a function of pressure and temperature |\n| rho_ph | Density as a function of pressure and enthalpy |\n| rho_ps | Density as a function of pressure and entropy |\n\n### Specific entropy\n| Function | Description |\n|----------|----------------------------------------------------------------------------------------------------------|\n| sV_p | Saturated vapor entropy |\n| sL_p | Saturated liquid entropy |\n| sV_t | Saturated vapor entropy |\n| sL_t | Saturated liquid entropy |\n| s_pt | Specific entropy as a function of pressure and temperature (Returns saturated vapor enthalpy if mixture) |\n| s_ph | Specific entropy as a function of pressure and enthalpy |\n\n### Specific internal energy\n| Function | Description |\n|----------|--------------------------------------------------------------------|\n| uV_p | Saturated vapor internal energy |\n| uL_p | Saturated liquid internal energy |\n| uV_t | Saturated vapor internal energy |\n| uL_t | Saturated liquid internal energy |\n| u_pt | Specific internal energy as a function of pressure and temperature |\n| u_ph | Specific internal energy as a function of pressure and enthalpy |\n| u_ps | Specific internal energy as a function of pressure and entropy |\n\n### Specific isobaric heat capacity\n| Function | Description |\n|----------|---------------------------------------------------------------------------|\n| CpV_p | Saturated vapor heat capacity |\n| CpL_p | Saturated liquid heat capacity |\n| CpV_t | Saturated vapor heat capacity |\n| CpL_t | Saturated liquid heat capacity |\n| Cp_pt | Specific isobaric heat capacity as a function of pressure and temperature |\n| Cp_ph | Specific isobaric heat capacity as a function of pressure and enthalpy |\n| Cp_ps | Specific isobaric heat capacity as a function of pressure and entropy |\n\n### Specific isochoric heat capacity\n| Function | Description |\n|----------|----------------------------------------------------------------------------|\n| CvV_p | Saturated vapor isochoric heat capacity |\n| CvL_p | Saturated liquid isochoric heat capacity |\n| CvV_t | Saturated vapor isochoric heat capacity |\n| CvL_t | Saturated liquid isochoric heat capacity |\n| Cv_pt | Specific isochoric heat capacity as a function of pressure and temperature |\n| Cv_ph | Specific isochoric heat capacity as a function of pressure and enthalpy |\n| Cv_ps | Specific isochoric heat capacity as a function of pressure and entropy |\n\n### Speed of sound\n| Function | Description |\n|----------|----------------------------------------------------------|\n| wV_p | Saturated vapor speed of sound |\n| wL_p | Saturated liquid speed of sound |\n| wV_t | Saturated vapor speed of sound |\n| wL_t | Saturated liquid speed of sound |\n| w_pt | Speed of sound as a function of pressure and temperature |\n| w_ph | Speed of sound as a function of pressure and enthalpy |\n| w_ps | Speed of sound as a function of pressure and entropy |\n\n### Viscosity\n| Function | Description |\n|----------|-----------------------------------------------------|\n| my_pt | Viscosity as a function of pressure and temperature |\n| my_ph | Viscosity as a function of pressure and enthalpy |\n| my_ps | Viscosity as a function of pressure and entropy |\n\n### Thermal Conductivity\n| Function | Description |\n|----------|----------------------------------------------------------------|\n| tcL_p | Saturated vapor thermal conductivity |\n| tcV_p | Saturated liquid thermal conductivity |\n| tcL_t | Saturated vapor thermal conductivity |\n| tcV_t | Saturated liquid thermal conductivity |\n| tc_pt | Thermal conductivity as a function of pressure and temperature |\n| tc_ph | Thermal conductivity as a function of pressure and enthalpy |\n| tc_hs | Thermal conductivity as a function of enthalpy and entropy |\n\n### Surface tension\n| Function | Description |\n|----------|--------------------------------------------------------------|\n| st_t | Surface tension for two phase water/steam as a function of T |\n| st_p | Surface tension for two phase water/steam as a function of p |\n\n### vapor fraction\n| Function | Description |\n|----------|-------------------------------------------------------|\n| x_ph | vapor fraction as a function of pressure and enthalpy |\n| x_ps | vapor fraction as a function of pressure and entropy |\n\n## vapor volume fraction\n| Function | Description |\n|----------|--------------------------------------------------------------|\n| vx_ph | vapor volume fraction as a function of pressure and enthalpy |\n| vx_ps | vapor volume fraction as a function of pressure and entropy |\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/drunsinn/pyXSteam", "keywords": "steam water ice XSteam", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyXSteam", "package_url": "https://pypi.org/project/pyXSteam/", "platform": "", "project_url": "https://pypi.org/project/pyXSteam/", "project_urls": { "Homepage": "https://github.com/drunsinn/pyXSteam" }, "release_url": "https://pypi.org/project/pyXSteam/0.4.2/", "requires_dist": null, "requires_python": ">=3.6", "summary": "pyXSteam is a port of the Matlab/Excel Package XSteam by Magnus Holmgren, www.x-eng.com to Python 3", "version": "0.4.2" }, "last_serial": 5496447, "releases": { "0.3.3b1": [ { "comment_text": "", "digests": { "md5": "665515e03b9bc3fc876a2ed7d7118921", "sha256": "618f516259cabbc11fade0539c6ed14b1c8183743d7e41e809c3ee4b336e8cae" }, "downloads": -1, "filename": "pyXSteam-0.3.3b1-py2.7.egg", "has_sig": false, "md5_digest": "665515e03b9bc3fc876a2ed7d7118921", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 104827, "upload_time": "2018-01-21T12:59:16", "url": "https://files.pythonhosted.org/packages/5a/00/a864f6e1ada84071904c0f1b6c34afbf97deee26c5c95295aaf248b1be0e/pyXSteam-0.3.3b1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "6e75c0eac2f75221e63dd7bf78b94592", "sha256": "56529106876fa0998b4786b4082904fa4423a7df3e3ec870c0c1bcfc61f7a56b" }, "downloads": -1, "filename": "pyXSteam-0.3.3b1-py2-none-any.whl", "has_sig": false, "md5_digest": "6e75c0eac2f75221e63dd7bf78b94592", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 52708, "upload_time": "2018-01-21T12:59:10", "url": "https://files.pythonhosted.org/packages/3f/94/2499e2bb8b7541515ef522d6c7500e1a02f48ef9bd141890d6b7d15a3aa9/pyXSteam-0.3.3b1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b277b5a07a001fc5e888be54b27ef9ce", "sha256": "c17a29e34175f63780cdeaea8d87b0919892ac77617d60dacf19827384eca0e8" }, "downloads": -1, "filename": "pyXSteam-0.3.3b1.zip", "has_sig": false, "md5_digest": "b277b5a07a001fc5e888be54b27ef9ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 65450, "upload_time": "2018-01-21T12:59:14", "url": "https://files.pythonhosted.org/packages/3a/1e/2279fd3195c5f1778611bba980456b787c7342f59c9b415a46954acbc49a/pyXSteam-0.3.3b1.zip" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "9c2b757ce0dfee9b21c78506463b203b", "sha256": "34a4e1da05826191ee24fa3cbf547eabc7860f1ad00bfbe91a9623201cf8e264" }, "downloads": -1, "filename": "pyXSteam-0.4.0-py2-none-any.whl", "has_sig": false, "md5_digest": "9c2b757ce0dfee9b21c78506463b203b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=3.6", "size": 47558, "upload_time": "2018-08-28T16:19:42", "url": "https://files.pythonhosted.org/packages/df/f1/675dd101f85c76accf70eefc22f7ad987b509ddfc699e47a63c7d81468c6/pyXSteam-0.4.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "33787c81bbdc6ccb066815c2b2bf141d", "sha256": "23e934b7d580f3f71d9a167e5a15e5dc1cb12fd6e9faf992e0f01df06574122e" }, "downloads": -1, "filename": "pyXSteam-0.4.0.tar.gz", "has_sig": false, "md5_digest": "33787c81bbdc6ccb066815c2b2bf141d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 55097, "upload_time": "2018-08-28T16:19:43", "url": "https://files.pythonhosted.org/packages/0e/dd/05a8f20c412b14421a0375a2ec7410f76461662ed3ae437bf1dbb1bd1541/pyXSteam-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "cbcac09e3905f9add6e0236eb739b7b7", "sha256": "7a8f8c9c1b3e7366c6f9393c0c824fd145da733f3ca260e941556994b8d0abc2" }, "downloads": -1, "filename": "pyXSteam-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cbcac09e3905f9add6e0236eb739b7b7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 48034, "upload_time": "2019-03-10T16:25:44", "url": "https://files.pythonhosted.org/packages/d4/db/be1174cd291a5a31a94e693a5645339005874985be5c952ba01bec3ede0c/pyXSteam-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "920d099548f89acf2e03d78e97247a9b", "sha256": "7e5c13bd46f76faec86cc3bd3a104a9e5d63f267fdcd63a6e024261dafecb217" }, "downloads": -1, "filename": "pyXSteam-0.4.1.tar.gz", "has_sig": false, "md5_digest": "920d099548f89acf2e03d78e97247a9b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 58732, "upload_time": "2019-03-10T16:27:58", "url": "https://files.pythonhosted.org/packages/22/7d/5a17565535ac81addc20b4b328019f693ace2a00b5e8cb5fdba60bd5789a/pyXSteam-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "fcaca35778bfb937ad65cd0c1ac0c367", "sha256": "e4fe983beb3c4b30b750dafb084ff8fb75fee7bd6f52c36b7657a1a1d86f08b7" }, "downloads": -1, "filename": "pyXSteam-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fcaca35778bfb937ad65cd0c1ac0c367", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 56900, "upload_time": "2019-07-07T07:38:26", "url": "https://files.pythonhosted.org/packages/76/62/2ebf24cdc0d9cf02595fdb32b5f0580c67c4e4cf3e770c5c9962c4b44d95/pyXSteam-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5330d83677316906b2a665a6c96c7b2", "sha256": "91f64e5e9b50ce4f6d79245cebc3b9e92aec529433cb8af7e83c9e206dd05240" }, "downloads": -1, "filename": "pyXSteam-0.4.2.tar.gz", "has_sig": false, "md5_digest": "e5330d83677316906b2a665a6c96c7b2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 58997, "upload_time": "2019-07-07T07:38:28", "url": "https://files.pythonhosted.org/packages/f4/5b/f0c0eae646c44ca4dff0b9b655eff25d3ed4628bd4df353e6a070f482c7c/pyXSteam-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fcaca35778bfb937ad65cd0c1ac0c367", "sha256": "e4fe983beb3c4b30b750dafb084ff8fb75fee7bd6f52c36b7657a1a1d86f08b7" }, "downloads": -1, "filename": "pyXSteam-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fcaca35778bfb937ad65cd0c1ac0c367", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 56900, "upload_time": "2019-07-07T07:38:26", "url": "https://files.pythonhosted.org/packages/76/62/2ebf24cdc0d9cf02595fdb32b5f0580c67c4e4cf3e770c5c9962c4b44d95/pyXSteam-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5330d83677316906b2a665a6c96c7b2", "sha256": "91f64e5e9b50ce4f6d79245cebc3b9e92aec529433cb8af7e83c9e206dd05240" }, "downloads": -1, "filename": "pyXSteam-0.4.2.tar.gz", "has_sig": false, "md5_digest": "e5330d83677316906b2a665a6c96c7b2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 58997, "upload_time": "2019-07-07T07:38:28", "url": "https://files.pythonhosted.org/packages/f4/5b/f0c0eae646c44ca4dff0b9b655eff25d3ed4628bd4df353e6a070f482c7c/pyXSteam-0.4.2.tar.gz" } ] }