IAPWS-IF97高速共享库(Windows64/32,Linux64),ANSI C,Python API

seuif97的Python项目详细描述


What is seuif97?

seuif97包是高速iapws-if97共享库的python api。

通过高速库,IAPWS-IF97的计算结果以比快速计算大正整数幂的重复平方法快3倍左右的计算速度精确产生。

共享库是用ansi c编写的,以便从不同的编程语言访问dll/so时更快、更小的二进制文件和更好的兼容性。

对于Windows和Linux用户,提供了方便的二进制库和API

  • Windows64/32动态库:libseuif97.dll
  • linux64共享库:libseuif97.so
  • API:Python、C/C++、Excel VBA、Matlab、Java、FORTRAN、C语言等。

有关共享库和api的详细信息,请访问https://github.com/PySEE/SEUIF97

Installation

如果您安装了带有pip的python,请使用:

  • Windows64/32

    >;python-m pip安装seuif97

  • Linux64

    $sudo-h python3-m pip安装seuif97

Python API

汽轮机的水和蒸汽特性、热力过程的功能见seuif97

Functions of Water and Steam Properties

使用seuif97,您可以使用各种已知属性对来设置蒸汽的状态,以获得您希望知道的任何输出属性, 包括30属性(propertyIDs in seuif97

实现了以下输入对:

(p,t) (p,h) (p,s) (p,v) (p,x)

(t,h) (t,s) (t,v) (t,x)

(h,s)

seuif97包中提供了两种类型的功能:

  • 是吗??(in1,in2,财产)。例如,h=p t(p,t,4),性质为4)
  • 是吗??2个?(in1,in2)。例如,h=pt2h(p,t)

??(in1,in2,propertyID)

pt(pressure,temperature,propertyID)ph(pressure,enthalpy,propertyID)ps(pressure,entropy,propertyID)pv(pressure,volume,propertyID)th(temperature,enthalpy,propertyID)ts(temperature,entropy,propertyID)tv(temperature,volume,propertyID)hs(enthalpy,entropy,propertyID)px(pressure,quality,propertyID)tx(temperature,quality,propertyID)
  • P(压力):兆帕;
  • T(温度):℃
  • V(体积):m^3/kg
  • H(焓):kJ/kg
  • s(熵):kj/(kg·k)
  • X(质量):

??2?(in1,in2)

pt2h(pressure,temperature)pt2s(pressure,temperature)pt2v(pressure,temperature)pt2x(pressure,temperature)ph2t(pressure,enthalpy)ph2s(pressure,enthalpy)ph2v(pressure,enthalpy)ph2x(pressure,enthalpy)ps2t(pressure,entropy)ps2h(pressure,entropy)ps2v(pressure,entropy)ps2x(pressure,entropy)pv2t(pressure,volume)pv2h(pressure,volume)pv2s(pressure,volume)pv2x(pressure,volume)th2p(temperature,enthalpy)th2s(temperature,enthalpy)th2v(temperature,enthalpy)th2x(temperature,enthalpy)ts2p(temperature,entropy)ts2h(temperature,entropy)ts2v(temperature,entropy)ts2x(temperature,entropy)tv2p(temperature,volume)tv2h(temperature,volume)tv2s(temperature,volume)tv2x(temperature,volume)hs2p(enthalpy,entropy)hs2t(enthalpy,entropy)hs2v(enthalpy,entropy)hs2x(enthalpy,entropy)px2t(pressure,quality)px2h(pressure,quality)px2s(pressure,quality)px2v(pressure,quality)tx2p(temperature,quality)tx2h(temperature,quality)tx2s(temperature,quality)tx2v(temperature,quality)

Functions for the Thermodynamic Process of Steam Turbine

Isentropic Enthalpy Drop

ishd(pi,ti,po)
  • pi:入口p,mpa;ti:入口t,℃
  • po:出口p,mpa;

Isentropic Efficiency(0~100)

ief(pi,ti,po,to)
  • pi:入口p,mpa;ti:入口t,℃
  • po:出口p,mpa;to:出口t,℃

Examples

importseuif97pt=16.10,535.10# ??2?(in1,in2)h=seuif97.pt2h(p,t)s=seuif97.pt2s(p,t)v=seuif97.pt2v(p,t)print("(p,t),h,s,v:","{:>.2f}\t {:>.2f}\t {:>.2f}\t {:>.3f}\t {:>.4f}".format(p,t,h,s,v))# ??(in1,in2,propertyid)t=seuif97.ph(p,h,1)s=seuif97.ph(p,h,5)v=seuif97.ph(p,h,3)print("(p,h),t,s,v:","{:>.2f}\t {:>.2f}\t {:>.2f}\t {:>.3f}\t {:>.4f}".format(p,h,t,s,v))

propertyIDs in seuif97

PropertiesUnitsymbolpropertyID
PressureMPap0
Temperature°Ct1
Densitykg/m^3d2
Specific Volumem^3/kgv3
Specific enthalpykJ/kgh4
Specific entropykJ/(kg·K)s5
Specific exergykJ/kge6
Specific internal energykJ/kgu7
Specific isobaric heat capacitykJ/(kg·K)cp8
Specific isochoric heat capacitykJ/(kg·K)cv9
Speed of soundm/sw10
Isentropic exponentks11
Specific Helmholtz free energykJ/kgf12
Specific Gibbs free energykJ/kgg13
Compressibility factorz14
Steam qualityx15
Regionr16
Isobaric volume expansion coefficient1/Kec17
Isothermal compressibility1/MPakt18
Partial derivative (dV/dT)pm3/(kg·K)dvdt19
Partial derivative (dV/dP)Tm3/(kg·MPa)dvdp20
Partial derivative (dP/dT)vMPa/Kdpdt21
Isothermal Joule-Thomson coefficientkJ/(kg·MPa)iJTC22
Joule-Thomson coefficientK/MPaJTC23
Dynamic viscositykg/(m·s)dv24
Kinematic viscositym^2/skv25
Thermal conductivityW/(m.K)tc26
Thermal diffusivityum^2/std27
Prandtl numberpr28
Surface tensionmN/mst29

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何拆分字符串(基于各种分隔符),但不保留空格?   解析。Json格式的txt文件和knime中的java   java Spring rest api为什么在rest api调用的响应中更改了数据类型   升华文本3抛出java。lang.ClassNotFoundException,而记事本++不存在   java Android指纹扫描仪在尝试5次后停止工作?   java Android如何设置精确的重复报警?   java如何使用HTTPGET connect为access API输入用户名和密码   java当测试报告显示没有测试失败时,Gradle为什么说“有失败的测试”?   用Gson实现java获取响应   MapReduce程序中函数错误的java不可映射参数   java spring安全性不符合自动代理的条件   java GWT使用异步回调进行同步/阻塞调用   java奇怪的类数组问题无法在jsp中显示   如何在java中使用PrinterJob使用epl打印条形码   java如何在JTable中居中单元格   将Java Mockito测试转换为Kotlin   html Java正则表达式模式匹配到多个相同标记   testCompile中缺少java Gradle(Android)多项目依赖项   在输入提示后输入字符串时发生java FileNotFoundException