Package: seuif97
SEUIF97The version ofseuif97 2is the Python API of the high-speed IAPWS-IF97 package in Rust. It is suitable for computation-intensive calculations, such as heat cycle calculations, simulations of non-stationary processes, real-time process monitoring and optimizations.Through the high-speed package, the results of the IAPWS-IF97 are accurately produced at about 5-20x speed-up compared to  using thepowi()of the Rust standard library in theforloop directly when computing the basic equations of Region 1,2,3.The Fast MethodsThe multi-step method unleashes the full power of the compiler optimizations while usingpowi()with theforloopThe recursive  method computes the polynomial values of the base variable and its derivativesIn the package,36 thermodynamic, transport and  further propertiescan be calculated.The following 12 input pairs are implemented:(p,t) (p,h) (p,s) (p,v) 
  
  (p,x) (t,x) (h,x) (s,x) 

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

  (h,s)The functionsThe two types of functions are provided in the packagethe input propertry pairs and the property ID(o_id) to get the value of the specified propertythe input propertry pairs to get the one ofp,t,h,s,vorxdirectlyThe input propertry pairs and the property ID??(in1,in2,o_id)the first,second input parameters : the input propertry pairsthe third input parametes: the property ID of the calculated property -o_idthe return: the calculated property value of o_idpt(p,t,o_id)ph(p,h,o_id)ps(p,s,o_id)pv(p,v,o_id)th(t,h,o_id)ts(t,s,o_id)tv(t,v,o_id)hs(h,s,o_id)px(p,x,o_id)tx(p,x,o_id)hx(h,x,o_id)sx(s,x,o_id)The input propertry pairs??2?(in1,in2)the?in2?is the one ofp,t,h,s,vorxpt2h(p,t)pt2s(p,t)pt2v(p,t)pt2x(p,t)ph2t(p,h)ph2s(p,h)ph2v(p,h)ph2x(p,h)ps2t(p,s)ps2h(p,s)ps2v(p,s)ps2x(p,s)pv2t(p,v)pv2h(p,v)pv2s(p,v)pv2x(p,v)hs2t(h,s)hs2p(h,s)hs2v(p,s)hs2x(h,s)th2p(t,h)th2s(t,h)th2v(t,h)th2x(t,h)ts2p(t,s)ts2h(t,s)th2v(t,s)ts2x(t,s)tv2p(t,v)tv2h(t,v)tv2s(t,v)tv2x(t,v)px2t(p,x)px2h(p,x)px2s(p,x)px2v(p,x)tx2p(t,x)tx2h(t,x)tx2s(t,x)tx2v(t,x)hx2p(h,x)hx2t(h,x)hx2s(h,x)hx2v(h,x)sx2p(s,x)sx2t(s,x)sx2h(s,x)sx2v(s,x)Examplefromseuif97import*OH=4p=16.0t=535.1# ??(in1,in2,o_id)h=pt(p,t,OH)# ??2?(in1,in2)s=pt2s(p,t)print(f"p={p}, t={t}h={h:.3f}s={s:.3f}")The ExamplesT-S DiagramH-S DiagramH-S Diagram of Steam Turbine ExpansionThe Hybrid Steady-state Simulator of Rankine Cycle in PythonPropertiesPropertryUnitSymbolo_ido_id(i32)PressureMPapOP0Temperature°CtOT1Densitykg/m³ρOD2Specific Volumem³/kgvOV3Specific enthalpykJ/kghOH4Specific entropykJ/(kg·K)sOS5Specific exergykJ/kgeOE6Specific internal energykJ/kguOU7Specific isobaric heat capacitykJ/(kg·K)cpOCP8Specific isochoric heat capacitykJ/(kg·K)cvOCV9Speed of soundm/swOW10Isentropic exponentkOKS11Specific Helmholtz free energykJ/kgfOF12Specific Gibbs free energykJ/kggOG13Compressibility factorzOZ14Steam qualityxOX15RegionrOR16Isobari cubic expansion coefficient1/KɑvOEC17Isothermal compressibility1/MPakTOKT18Partial derivative (∂V/∂T)pm³/(kg·K)(∂V/∂T)pODVDT19Partial derivative (∂V/∂p)Tm³/(kg·MPa)(∂v/∂p)tODVDP20Partial derivative (∂P/∂T)vMPa/K(∂p/∂t)vODPDT21Isothermal throttling coefficientkJ/(kg·MPa)δtOIJTC22Joule-Thomson coefficientK/MPaμOJTC23Dynamic viscosityPa·sηODV24Kinematic viscositym²/sνOKV25Thermal conductivityW/(m.K)λOTC26Thermal diffusivitym²/saOTD27Prandtl numberPrOPR28Surface tensionN/mσOST29Static Dielectric ConstantεOSDC30Isochoric pressure coefficient1/KβOPC31Isothermal stress coefficientkg/m³βpOBETAP32Fugacity coefficientfiOFI33FugacityMPaf*OFU34Relative pressure coefficient1/KαpOAFLAP35