Thermodynamic Calculations

thermo(Eos, calculation_type=None, **kwargs)[source]

Use factory design pattern to search for matching calculation_type with those supported in this module.

To add a new calculation type, add a new wrapper function to calculation_types.py.

Parameters:
  • Eos (obj) – Equation of state object with the following methods: pressure, density_max, and fugacity_coefficient.

  • calculation_type (str) – Calculation type supported in calculation_types

  • kwargs – Other keywords passed to the function, depends on calculation type

Returns:

output_dict – Output of dictionary containing given and calculated values

Return type:

dict

Available Calculation Types

Click below!

thermodynamics.calculation_types

This thermodynamic module contains a series of wrappers to handle the inputs and outputs of these functions.

Supporting Thermodynamic Functions

Click below!

thermodynamics.calc

This module contains our thermodynamic calculations.