{ "info": { "author": "Cheng Maohua", "author_email": "cmh@seu.edu.cn", "bugtrack_url": null, "classifiers": [ "Programming Language :: C", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Chemistry", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. contents::\n\nWhat is seuif97?\n====================\n\nThe **seuif97** package is the Python API of the high-speed IAPWS-IF97 shared library.\n\nThrough the high-speed library, the results of the IAPWS-IF97 are accurately produced at about 3 times computational speed than the repeated squaring method for fast computation of large positive integer powers.\n\nThe shared library is written in ANSI C for faster, smaller binaries and better compatibility for accessing the DLL/SO from different programming language.\n\nFor Windows and Linux users, the convenient binary library and APIs are provided\n\n- Windows64/32 dynamic library: libseuif97.dll\n\n- Linux64 shared library: libseuif97.so\n\n- APIs: Python, C/C++, Excel VBA, MATLAB, Java, Fortran, C#.\n\nYou may visit https://github.com/PySEE/SEUIF97 for more information about the shared library and APIs\n\nInstallation\n====================\n\nIf you have an installation of Python with pip, install it with:\n\n- Windows64/32\n\n >python -m pip install seuif97\n\n- Linux64\n\n $sudo -H python3 -m pip install seuif97\n\nPython API\n====================\n\nFunctions of water and steam properties, thermodynamic process of steam turbine are provided in **seuif97** package\n\nFunctions of Water and Steam Properties\n-----------------------------------------\n\nUsing seuif97, you can set the state of steam using various pairs of know properties to get any output properties you wish to know,\nincluding in the **30** properties (`propertyIDs in seuif97`_)\n\nThe following input pairs are implemented:\n\n (p,t) (p,h) (p,s) (p,v) (p,x)\n\n (t,h) (t,s) (t,v) (t,x)\n\n (h,s)\n\nThe two types of functions are provided in the seuif97 package:\n\n* ??(in1,in2,propertyID). e.g, h=pt(p,t,4), the propertyID h is 4)\n* ??2?(in1,in2). e.g,h=pt2h(p,t)\n\n??(in1,in2,propertyID)\n:::::::::::::::::::::::::::\n\n- the propertyID of the calculated property(int, 0-29), see `propertyIDs in seuif97`_ for details\n\n.. code:: python\n\n pt(pressure, temperature, propertyID)\n ph(pressure, enthalpy, propertyID)\n ps(pressure, entropy, propertyID)\n pv(pressure, volume, propertyID)\n\n th(temperature, enthalpy, propertyID)\n ts(temperature, entropy, propertyID)\n tv(temperature, volume, propertyID)\n\n hs(enthalpy, entropy, propertyID)\n\n px(pressure, quality, propertyID)\n tx(temperature, quality, propertyID)\n\n- p (pressure) : MPa ;\n\n- t (temperature) : \u00b0C\n\n- v (volume) : m^3/kg\n\n- h (enthalpy) : kJ/kg\n\n- s (entropy) : kJ/(kg\u00b7K)\n\n- x (quality) :\n\n??2?(in1,in2)\n:::::::::::::::::::::::::::\n.. code:: python\n\n pt2h(pressure, temperature)\n pt2s(pressure, temperature)\n pt2v(pressure, temperature)\n pt2x(pressure, temperature)\n\n ph2t(pressure, enthalpy)\n ph2s(pressure, enthalpy)\n ph2v(pressure, enthalpy)\n ph2x(pressure, enthalpy)\n\n ps2t(pressure, entropy)\n ps2h(pressure, entropy)\n ps2v(pressure, entropy)\n ps2x(pressure, entropy)\n\n pv2t(pressure, volume)\n pv2h(pressure, volume)\n pv2s(pressure, volume)\n pv2x(pressure, volume)\n\n th2p(temperature, enthalpy)\n th2s(temperature, enthalpy)\n th2v(temperature, enthalpy)\n th2x(temperature, enthalpy)\n\n ts2p(temperature, entropy)\n ts2h(temperature, entropy)\n ts2v(temperature, entropy)\n ts2x(temperature, entropy)\n\n tv2p(temperature, volume)\n tv2h(temperature, volume)\n tv2s(temperature, volume)\n tv2x(temperature, volume)\n\n hs2p(enthalpy, entropy)\n hs2t(enthalpy, entropy)\n hs2v(enthalpy, entropy)\n hs2x(enthalpy, entropy)\n\n px2t(pressure, quality)\n px2h(pressure, quality)\n px2s(pressure, quality)\n px2v(pressure, quality)\n \n tx2p(temperature, quality)\n tx2h(temperature, quality)\n tx2s(temperature, quality)\n tx2v(temperature, quality)\n\nFunctions for the Thermodynamic Process of Steam Turbine\n---------------------------------------------------------------------------------\n\nIsentropic Enthalpy Drop\n:::::::::::::::::::::::::::\n\n.. code:: python\n\n ishd(pi,ti,po)\n\n- pi\uff1ainlet P\uff0cMPa\uff1b\u3000ti\uff1ainlet T\uff0c\u00b0C\n\n- po\uff1aoutlet P\uff0cMPa\uff1b\n\nIsentropic Efficiency(0~100)\n::::::::::::::::::::::::::::::\n\n.. code:: python\n\n ief(pi,ti,po,to)\n\n- pi\uff1ainlet P\uff0cMPa\uff1b \u3000ti\uff1ainlet T\uff0c\u00b0C\n- po\uff1aoutlet P\uff0cMPa\uff1b\u3000to\uff1aoutlet T\uff0c\u00b0C\n\nExamples\n====================\n\n.. code:: python\n\n import seuif97\n\n p\uff0ct=16.10,535.10\n\n # ??2?(in1,in2)\n h=seuif97.pt2h(p,t)\n s=seuif97.pt2s(p,t)\n v=seuif97.pt2v(p,t)\n print(\"(p,t),h,s,v:\",\n \"{:>.2f}\\t {:>.2f}\\t {:>.2f}\\t {:>.3f}\\t {:>.4f}\".format(p, t, h, s, v))\n\n # ??(in1,in2,propertyid)\n t = seuif97.ph(p, h, 1)\n s = seuif97.ph(p, h, 5)\n v = seuif97.ph(p, h, 3)\n\n print(\"(p,h),t,s,v:\",\n \"{:>.2f}\\t {:>.2f}\\t {:>.2f}\\t {:>.3f}\\t {:>.4f}\".format(p, h, t, s, v))\n\npropertyIDs in seuif97\n================================\n\n+---------------------------------------+-------------+----------+------------+\n| Properties | Unit | symbol | propertyID |\n+=======================================+=============+==========+============+\n| Pressure | MPa | p | 0 |\n+---------------------------------------+-------------+----------+------------+\n| Temperature | \u00b0C | t | 1 |\n+---------------------------------------+-------------+----------+------------+\n| Density | kg/m^3 | d | 2 |\n+---------------------------------------+-------------+----------+------------+\n| Specific Volume | m^3/kg | v | 3 |\n+---------------------------------------+-------------+----------+------------+\n| Specific enthalpy | kJ/kg | h | 4 |\n+---------------------------------------+-------------+----------+------------+\n| Specific entropy | kJ/(kg\u00b7K) | s | 5 |\n+---------------------------------------+-------------+----------+------------+\n| Specific exergy | kJ/kg | e | 6 |\n+---------------------------------------+-------------+----------+------------+\n| Specific internal energy | kJ/kg | u | 7 |\n+---------------------------------------+-------------+----------+------------+\n| Specific isobaric heat capacity | kJ/(kg\u00b7K) | cp | 8 |\n+---------------------------------------+-------------+----------+------------+\n| Specific isochoric heat capacity | kJ/(kg\u00b7K) | cv | 9 |\n+---------------------------------------+-------------+----------+------------+\n| Speed of sound | m/s | w | 10 |\n+---------------------------------------+-------------+----------+------------+\n| Isentropic exponent | | ks | 11 |\n+---------------------------------------+-------------+----------+------------+\n| Specific Helmholtz free energy | kJ/kg | f | 12 |\n+---------------------------------------+-------------+----------+------------+\n| Specific Gibbs free energy | kJ/kg | g | 13 |\n+---------------------------------------+-------------+----------+------------+\n| Compressibility factor | | z | 14 |\n+---------------------------------------+-------------+----------+------------+\n| Steam quality | | x | 15 |\n+---------------------------------------+-------------+----------+------------+\n| Region | | r | 16 |\n+---------------------------------------+-------------+----------+------------+\n| Isobaric volume expansion coefficient | 1/K | ec | 17 |\n+---------------------------------------+-------------+----------+------------+\n| Isothermal compressibility | 1/MPa | kt | 18 |\n+---------------------------------------+-------------+----------+------------+\n| Partial derivative (dV/dT)p | m3/(kg\u00b7K) | dvdt | 19 |\n+---------------------------------------+-------------+----------+------------+\n| Partial derivative (dV/dP)T | m3/(kg\u00b7MPa) | dvdp | 20 |\n+---------------------------------------+-------------+----------+------------+\n| Partial derivative (dP/dT)v | MPa/K | dpdt | 21 |\n+---------------------------------------+-------------+----------+------------+\n| Isothermal Joule-Thomson coefficient | kJ/(kg\u00b7MPa) | iJTC\t | 22 |\n+---------------------------------------+-------------+----------+------------+\n| Joule-Thomson coefficient | K/MPa | JTC | 23 |\n+---------------------------------------+-------------+----------+------------+\n| Dynamic viscosity | kg/(m\u00b7s) | dv | 24 |\n+---------------------------------------+-------------+----------+------------+\n| Kinematic viscosity | m^2/s | kv | 25 |\n+---------------------------------------+-------------+----------+------------+\n| Thermal conductivity | W/(m.K) | tc | 26 |\n+---------------------------------------+-------------+----------+------------+\n| Thermal diffusivity | um^2/s | td | 27 |\n+---------------------------------------+-------------+----------+------------+\n| Prandtl number | | pr | 28 |\n+---------------------------------------+-------------+----------+------------+\n| Surface tension | mN/m | st | 29 |\n+---------------------------------------+-------------+----------+------------+", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PySEE/SEUIF97", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "seuif97", "package_url": "https://pypi.org/project/seuif97/", "platform": "Windows64/32", "project_url": "https://pypi.org/project/seuif97/", "project_urls": { "Homepage": "https://github.com/PySEE/SEUIF97" }, "release_url": "https://pypi.org/project/seuif97/1.1.0.7/", "requires_dist": null, "requires_python": "", "summary": "IAPWS-IF97 high-speed shared library(Windows64/32,Linux64) in ANSI C,Python API", "version": "1.1.0.7" }, "last_serial": 5168109, "releases": { "1.1.0.7": [ { "comment_text": "", "digests": { "md5": "ff3884e9a8549b6132f2c7895de904bb", "sha256": "06ae46a05cb9284e5c68d2f7f1da357e1c4b2af46c6b640bb60a604dc5181004" }, "downloads": -1, "filename": "seuif97-1.1.0.7.tar.gz", "has_sig": false, "md5_digest": "ff3884e9a8549b6132f2c7895de904bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 274663, "upload_time": "2019-04-20T16:26:09", "url": "https://files.pythonhosted.org/packages/89/b3/b857d77ad846ff5786624cf04f64828a01b9f22b412b38326e5b0f865c51/seuif97-1.1.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ff3884e9a8549b6132f2c7895de904bb", "sha256": "06ae46a05cb9284e5c68d2f7f1da357e1c4b2af46c6b640bb60a604dc5181004" }, "downloads": -1, "filename": "seuif97-1.1.0.7.tar.gz", "has_sig": false, "md5_digest": "ff3884e9a8549b6132f2c7895de904bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 274663, "upload_time": "2019-04-20T16:26:09", "url": "https://files.pythonhosted.org/packages/89/b3/b857d77ad846ff5786624cf04f64828a01b9f22b412b38326e5b0f865c51/seuif97-1.1.0.7.tar.gz" } ] }