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

lib.coolProp.translate(context: str, sourceText: str, disambiguation: str = None, n: int = -1) str
class lib.coolProp.CoolProp(**kwargs)[source]

Bases: ThermoAdvanced

Stream 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:
calculable

Check 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}
_limit(name, estado)[source]
property calculable

Check in the class is fully defined

args()[source]
_name()[source]
calculo()[source]

Calculate procedure

_prop0(estado)[source]

Ideal gas properties

fill(fase, estado)[source]
getphase(estado)[source]

Return fluid phase with translation support

References