LLE¶
-
class
thermosteam.equilibrium.
LLE
(imol, thermal_condition=None, thermo=None)[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 (MaterialIndexer) – 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']) >>> 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.671), ('Ethanol', 2.284), ('Octane', 39.92), ('Hexane', 0.9885)], l=[('Water', 301.3), ('Ethanol', 27.72), ('Octane', 0.07884), ('Hexane', 0.01154)]), thermal_condition=ThermalCondition(T=360.00, P=101325))