IdealMixtureModel
- class thermosteam.mixture.IdealMixtureModel(models, var)[source]
Create an IdealMixtureModel object that calculates mixture properties based on the molar weighted sum of pure chemical properties.
- Parameters
models (Iterable[function(T, P)]) – Chemical property functions of temperature and pressure.
var (str) – Description of thermodynamic variable returned.
Notes
Mixture
objects can contain IdealMixtureModel objects to establish as mixture model for thermodynamic properties.See also
Examples
>>> from thermosteam.mixture import IdealMixtureModel >>> from thermosteam import Chemicals >>> chemicals = Chemicals(['Water', 'Ethanol']) >>> models = [i.Psat for i in chemicals] >>> mixture_model = IdealMixtureModel(models, 'Psat') >>> mixture_model <IdealMixtureModel(mol, T, P=None) -> Psat [Pa]> >>> mixture_model([0.2, 0.8], 350) 84902.48775