IdealMixtureModel#

class IdealTMixtureModel(models, var)[source]#

Create an IdealTMixtureModel 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

Mixture

Examples

>>> from thermosteam.mixture import IdealTMixtureModel
>>> from thermosteam import Chemicals
>>> chemicals = Chemicals(['Water', 'Ethanol'])
>>> models = [i.Cn for i in chemicals]
>>> mixture_model = IdealTMixtureModel(models, 'Cn')
>>> mixture_model
<IdealTMixtureModel(phase, mol, T, P=None) -> Cn [J/mol/K]>
>>> mixture_model('l', [0.2, 0.8], 350)
122.529
class IdealTPMixtureModel(models, var)[source]#

Create an IdealTPMixtureModel 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

Mixture, ideal_mixture()

Examples

>>> from thermosteam.mixture import IdealTPMixtureModel
>>> from thermosteam import Chemicals
>>> chemicals = Chemicals(['Water', 'Ethanol'])
>>> models = [i.V for i in chemicals]
>>> mixture_model = IdealTPMixtureModel(models, 'V')
>>> mixture_model
<IdealTPMixtureModel(phase, mol, T, P) -> V [m^3/mol]>
>>> mixture_model('l', [0.2, 0.8], 350, 101325)
5.364...-05