LLE
- class thermosteam.equilibrium.LLE(imol=None, thermal_condition=None, thermo=None, composition_cache_tolerance=1e-06, temperature_cache_tolerance=1e-06)[source]
Create a LLE object that performs liquid-liquid equilibrium when called. Differential evolution is used to find the solution that globally minimizes the gibb’s free energy of both phases.
- Parameters
imol=None (MaterialIndexer, optional) – Molar chemical phase data is stored here.
thermal_condition=None (ThermalCondition, optional) – The temperature and pressure used in calculations are stored here.
thermo=None (Thermo, optional) – Themodynamic property package for equilibrium calculations. Defaults to thermosteam.settings.get_thermo().
Examples
>>> from thermosteam import indexer, equilibrium, settings >>> settings.set_thermo(['Water', 'Ethanol', 'Octane', 'Hexane'], cache=True) >>> imol = indexer.MolarFlowIndexer( ... l=[('Water', 304), ('Ethanol', 30)], ... L=[('Octane', 40), ('Hexane', 1)]) >>> lle = equilibrium.LLE(imol) >>> lle(T=360) >>> lle LLE(imol=MolarFlowIndexer( L=[('Water', 2.67), ('Ethanol', 2.28), ('Octane', 39.9), ('Hexane', 0.988)], l=[('Water', 301.), ('Ethanol', 27.7), ('Octane', 0.0788), ('Hexane', 0.0115)]), thermal_condition=ThermalCondition(T=360.00, P=101325))