eos package¶
Submodules¶
eos.peng_robinson module¶
Pen-Robinson equation of state for faps.
-
eos.peng_robinson.
peng_robinson
(pressures, temperature=298.0)[source]¶ Calculate the fugacity of gasses based on the Peng Robinson equation of state.
Param: pressure is a dictionary of {“chemical species”: pressure in bar} Param: temperature is in Kelvin Returns: a dictionary of {“chemical species”: fugacity in bar} Raises: KeyError if any species (or mixing) is unknown Based in part on https://www.e-education.psu.edu/png520/m11_p2.html With Tina Duren’s implementation used for validation
Module contents¶
Equations of state.
Make available functions to calculate equations of state for conversion of pressures to fugacities, for example. Implemented equations of state:
Peng-Robinson: peng_robinson()