lib.coolProp module¶
Library to multiparameter equation of state calculation using coolprop http://coolprop.sourceforge.net/index.html
If available, this is a optional speed up method for mEoS internal library
All the functionality is included in the main class:
CoolProp: Stream definition using coolProp external library
API reference¶
- class lib.coolProp.CoolProp(**kwargs)[source]¶
Bases:
ThermoAdvancedStream class using coolProp external library Parameters needed to define it are:
-ids: index of fluid -fraccionMolar: molar fraction
-T: Temperature, Kelvin -P: Pressure, Pa -rho: Density, kg/m3 -h: Enthalpy, J/kg -s: Entropy, J/kgK -x: Quality, -
- Attributes:
calculableCheck in the class is fully defined
Methods
__call__(**kwargs)Call self as a function.
calculo()Calculate procedure
getphase(estado)Return fluid phase with translation support
args
fill
- kwargs = {'Dmass': 0.0, 'Hmass': None, 'P': 0.0, 'Q': None, 'Smass': None, 'T': 0.0, 'Umass': None, 'fraccionMolar': [], 'h': None, 'ids': [], 'rho': 0.0, 's': None, 'u': None, 'v': 0.0, 'x': None}¶
- property calculable¶
Check in the class is fully defined