calculation_types
Description
This thermodynamic module contains a series of wrappers to handle the inputs and outputs of these functions.
The calc module contains the thermodynamic calculations. Calculation of
pressure, fugacity_coefficient, and maximum allowed density are handled by an Eos
object so that these functions can be used with any EOS. None of the functions in
this folder need to be handled directly, as a function factory is included in our
__init__.py file. Add “from thermodynamics import thermo” and use
thermo(“calc_type”,Eos,input_dict)` to get started.
Functions
|
Calculate the activity coefficient with a variety of methods. |
|
Calculates pressure and vapor compositions given liquid mole fractions and temperature. |
|
Calculate pressure and liquid composition given vapor mole fractions, yi, and temperature. |
|
Flash calculation of vapor and liquid mole fractions. |
|
Computes the liquid density and fugacity coefficient given a temperature, pressure, and liquid mole fractions. |
|
Computes the saturated pressure, liquid, and gas density a one component phase at a temperature. |
|
Calculate the Hildebrand solubility parameter based on temperature and composition. |
|
Computes the vapor density and fugacity coefficient given a temperature, pressure, and vapor mole fractions. |
|
The following consistency checks are performed to ensure the calculated fugacity coefficients are thermodynamically consistent. |