lib.freeSteam module¶
Library to use freesteam library to calculate water properties with IAPWS-IF97 to meos calculation or in stream calculations, http://freesteam.sourceforge.net
This library is optional, pychemqt has a python implementation for IAPWS-IF97 in file lib/iapws97.py, but if freesteam is available in your system this is faster because is implemented in c++.
All the functionality is included in the main class:
Freesteam: Stream definition using freesteam external library
API reference¶
- class lib.freeSteam.Freesteam(**kwargs)[source]¶
Bases:
ThermoWaterClass to define a water stream It can be defined by the pair:
P,T P,h P,s P,v T,s T,x
- where:
-T: Temperature, Kelvin -P: Pressure, Pa -x: Quality, [-] -s: entropy, kJ/kgK -h: enthalpy, kJ/kg -v: specific volume, m³/kg
- Attributes:
calculableCheck input parameter to define calculation posibility
Methods
calculo()Calculate procedure
fill
- kwargs = {'P': 0.0, 'T': 0.0, 'h': 0.0, 'l': 0.5893, 's': 0.0, 'v': 0.0, 'x': None}¶
- M = 18.015268¶
- Pc = 22064000.0¶
- Tc = 647.096¶
- rhoc = 322.0¶
- Tt = 273.16¶
- Tb = 373.1243¶
- f_accent = 0.3443¶
- momentoDipolar = 1.85498¶
- property calculable¶
Check input parameter to define calculation posibility