{ "info": { "author": "Magnus Holmgren; ported by R. Aldridge", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c9ae5f60829541d8b6b2e8962997425d)](https://www.codacy.com/app/aldridge.robert.james/XSteamPython?utm_source=github.com&utm_medium=referral&utm_content=raldridge11/XSteamPython&utm_campaign=Badge_Grade)\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/c9ae5f60829541d8b6b2e8962997425d)](https://www.codacy.com/app/aldridge.robert.james/XSteamPython?utm_source=github.com&utm_medium=referral&utm_content=raldridge11/XSteamPython&utm_campaign=Badge_Coverage)\n\n[![Build Status](https://travis-ci.org/raldridge11/XSteamPython.svg?branch=master)](https://travis-ci.org/raldridge11/XSteamPython)\n\n# XSteamPython\nPort of [XSteam](https://sourceforge.net/projects/xsteam/) tables into Python originally released by Magnus Holmgren.\n\nXSteam provides steam and water properties according to [IAPWS release IF-97](http://www.iapws.org/relguide/IF97-Rev.pdf). The range of applicability is from 0-1000 bar and 0-2000 \u00b0C.\n\nSome transport properties (thermal conductivity and viscosity) are also available and based upon [IAPWS 1998](http://www.iapws.org/relguide/ThCond.pdf).\n\n## Installation\nTwo options are available. The first is to install from PyPI using pip\n```sh\npip install XSteamPython\n```\nOr by cloning and running\n```sh\npython setup.py install\n```\n## Requirements\nXSteamPython only requires that `SciPy` be installed.\n\nFor development, all dependencies are contained in `requirements.txt`.\n\n## Usage\n```python\n>>> import XSteamPython as stm\n>>> enthalpy=stm.h_pT(101.0, 300.0)\n>>> print(enthalpy)\n3074.515918340631\n>>> stm.switchUnits()\nUsing English units\n>>> enthalpy=stm.h_pT(14.7, 70.0)\n>>> print(enthalpy)\n38.11798524502647\n>>> dir(stm)\n['Boundaries', 'Constants', 'Convert', 'P_hs', 'Pr_pT', 'Pr_ph', 'Psat_T', 'Psat_s', 'Region1', 'Region2', 'Region3', 'Region4', 'Region5', 'Regions', 'T_hs', 'T_ph', 'T_ps', 'Tsat_p', 'Tsat_s', 'Viscosity', 'XSteamPython', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'cpL_T', 'cpL_p', 'cpV_T', 'cpV_p', 'cp_pT', 'cp_ph', 'cp_ps', 'cvL_T', 'cvL_p', 'cvV_T', 'cvV_p', 'cv_pT', 'cv_ph', 'cv_ps', 'englishUnits', 'hL_T', 'hL_p', 'hV_T', 'hV_p', 'h_Tx', 'h_pT', 'h_ps', 'h_px', 'kappa_pT', 'kappa_ph', 'math', 'my_pT', 'my_ph', 'my_ps', 'rhoL_T', 'rhoL_p', 'rhoV_T', 'rhoV_p', 'rho_pT', 'rho_ph', 'rho_ps', 'sL_T', 'sL_p', 'sV_T', 'sV_p', 's_pT', 's_ph', 'st_p', 'st_t', 'surfaceTension_T', 'switchUnits', 'tcL_T', 'tcL_p', 'tcV_T', 'tcV_p', 'tc_hs', 'tc_pT', 'tc_pTrho', 'tc_ph', 'uL_T', 'uL_p', 'uV_T', 'uV_p', 'u_pT', 'u_ph', 'u_ps', 'vL_T', 'vL_p', 'vV_T', 'vV_p', 'v_pT', 'v_ph', 'v_ps', 'vx_ph', 'vx_ps', 'wL_T', 'wL_p', 'wV_T', 'wV_p', 'w_pT', 'w_ph', 'w_ps', 'x_ph', 'x_ps']\n```\n\nNote that calling `stm.switchUnits()` changes from SI to English units and vice versa. Default is SI units.\n\n## Syntax\n\nThe syntax for function calling is first the wanted property, followed by an underscore followed by input property(ies). Example:\n```\nh_pT(101.0, 300.0)\n```\nThe example will return enthalpy given a pressure (101 kPa) and temperature (300 \u00b0C).\n\n|Property|Key|\n|---|---|\n|T| Temperature (\u00b0C or \u00b0F)|\n|p| Pressure (kPa or psi)|\n|h| Enthalpy (kJ/kg or btu/lb)|\n|v| Specific volume (m\\*\\*3/kg or ft\\*\\*3/lb)|\n|rho| Density (kg/m\\*\\*3 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 heat capacity constant pressure (kJ/(kg\u00b0C) or btu/(lb\u00b0F))|\n|Cv| Specific heat capacity constant volume (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|Pr|Prandtl number|\n|kappa|Heat capacity ratio|\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 (dmnls)|\n|vx| Vapor Volume Fraction (dmnls)|\n\nSome functions can have a little extra after the wanted property\n|Tag|Key|\n|---|---|\n|L|Liquid phase|\n|V|Vapor phase|\n|sat|At saturation|\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/raldridge11/XSteamPython", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "XSteamPython", "package_url": "https://pypi.org/project/XSteamPython/", "platform": "", "project_url": "https://pypi.org/project/XSteamPython/", "project_urls": { "Homepage": "https://github.com/raldridge11/XSteamPython" }, "release_url": "https://pypi.org/project/XSteamPython/1.0.0/", "requires_dist": [ "scipy (==1.2.1)" ], "requires_python": ">=2.7, >=3.4.*", "summary": "Port of XSteam tables by Magnus Holmgren to python", "version": "1.0.0" }, "last_serial": 4887506, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9ba5caf3ec50401120c710b3eeea0e3c", "sha256": "12f5f42909f5c36dc06597f00b1c2c93881830509092cd142ed2648849b6ce1c" }, "downloads": -1, "filename": "XSteamPython-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9ba5caf3ec50401120c710b3eeea0e3c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, >=3.4.*", "size": 41403, "upload_time": "2019-03-02T03:47:37", "url": "https://files.pythonhosted.org/packages/ab/73/467c52afd2a5c4389a2a4875b58ab601bed6f7621be44d4315a7c91c552c/XSteamPython-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2517fcf5746530d74b2e8ccda946f60", "sha256": "3538ed402215120f3034737b5d7745f0c570d8b239b377c0be591d24d98e0e4a" }, "downloads": -1, "filename": "XSteamPython-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b2517fcf5746530d74b2e8ccda946f60", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, >=3.4.*", "size": 33009, "upload_time": "2019-03-02T03:47:40", "url": "https://files.pythonhosted.org/packages/a5/84/80a64b58ad0189c78fae36e5d758074ccf257e5b3c2799705a4fddd96b39/XSteamPython-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9ba5caf3ec50401120c710b3eeea0e3c", "sha256": "12f5f42909f5c36dc06597f00b1c2c93881830509092cd142ed2648849b6ce1c" }, "downloads": -1, "filename": "XSteamPython-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9ba5caf3ec50401120c710b3eeea0e3c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, >=3.4.*", "size": 41403, "upload_time": "2019-03-02T03:47:37", "url": "https://files.pythonhosted.org/packages/ab/73/467c52afd2a5c4389a2a4875b58ab601bed6f7621be44d4315a7c91c552c/XSteamPython-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2517fcf5746530d74b2e8ccda946f60", "sha256": "3538ed402215120f3034737b5d7745f0c570d8b239b377c0be591d24d98e0e4a" }, "downloads": -1, "filename": "XSteamPython-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b2517fcf5746530d74b2e8ccda946f60", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, >=3.4.*", "size": 33009, "upload_time": "2019-03-02T03:47:40", "url": "https://files.pythonhosted.org/packages/a5/84/80a64b58ad0189c78fae36e5d758074ccf257e5b3c2799705a4fddd96b39/XSteamPython-1.0.0.tar.gz" } ] }