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使用键在JPanel中移动矩形   java通过查找索引快速添加整数(需要100万个添加调用),在每次添加调用后保持ArrayList排序   爪哇人身上发生了奇怪的事情   java焦点是什么意思?   java tanukisoft守护程序包装器和appassembler maven插件如何解决jar名称冲突?   为什么我的Java日志文件不工作?   JTable中的java编辑JList   java部署SWING应用程序jar文件不工作   java我可以从其他类方法执行ActionListener方法actionPerformed吗?   java当我从Excel工作表中读取inf时,无法按顺序打印文档文件中的信息   java DER输入,Javapns iOS推送通知发送方中的整数标记错误   从命令行生成时的java 安卓 linkedresources   基于java中的第二个节点读取xml的第三个节点   java Maven找不到本地依赖项   异常Java从文件中添加整数   java如何修复:当我试图打印double的值时,它会输出roundeddown的值   java我不明白为什么对于49以上的输入,比如54,在最后的第四次输出打印中会有一个<perfect square>(共10次)   java Android应用程序在onCreate之前崩溃   java为什么我不能通过将节点分配到下一个节点来从循环链表中删除节点?   java按钮键盘快捷键