Mixture#
- class Mixture(rule, Cn, H, S, H_excess, S_excess, mu, V, kappa, Hvap, sigma, epsilon, MWs, include_excess_energies=False)[source]#
Create an Mixture object for estimating mixture properties.
- Parameters:
rule (str) – Description of mixing rules used.
Cn (function(phase, mol, T)) – Molar isobaric heat capacity mixture model [J/mol/K].
H (function(phase, mol, T)) – Enthalpy mixture model [J/mol].
S (function(phase, mol, T, P)) – Entropy mixture model [J/mol].
H_excess (function(phase, mol, T, P)) – Excess enthalpy mixture model [J/mol].
S_excess (function(phase, mol, T, P)) – Excess entropy mixture model [J/mol].
mu (function(phase, mol, T, P)) – Dynamic viscosity mixture model [Pa*s].
V (function(phase, mol, T, P)) – Molar volume mixture model [m^3/mol].
kappa (function(phase, mol, T, P)) – Thermal conductivity mixture model [W/m/K].
Hvap (function(mol, T)) – Heat of vaporization mixture model [J/mol]
sigma (function(mol, T, P)) – Surface tension mixture model [N/m].
epsilon (function(mol, T, P)) – Relative permitivity mixture model [-]
MWs (1d array[float]) – Component molecular weights [g/mol].
include_excess_energies=False (bool) – Whether to include excess energies in enthalpy and entropy calculations.
Notes
Although the mixture models are on a molar basis, this is only if the molar data is normalized before the calculation (i.e. the mol parameter is normalized before being passed to the model).
See also
- include_excess_energies#
Whether to include excess energies in enthalpy and entropy calculations.
- Type:
- Cn(phase, mol, T)#
Mixture molar isobaric heat capacity [J/mol/K].
- mu(phase, mol, T, P)#
Mixture dynamic viscosity [Pa*s].
- V(phase, mol, T, P)#
Mixture molar volume [m^3/mol].
- kappa(phase, mol, T, P)#
Mixture thermal conductivity [W/m/K].
- Hvap(mol, T, P)#
Mixture heat of vaporization [J/mol]
- sigma(mol, T, P)#
Mixture surface tension [N/m].
- epsilon(mol, T, P)#
Mixture relative permitivity [-].
- classmethod from_chemicals(chemicals, include_excess_energies=False, rule='ideal', cache=True)[source]#
Create a Mixture object from chemical objects.
- Parameters:
chemicals (Iterable[Chemical]) – For retrieving pure component chemical data.
include_excess_energies=False (bool) – Whether to include excess energies in enthalpy and entropy calculations.
rule (str, optional) – Mixing rule. Defaults to ‘ideal’.
cache (optional) – Whether or not to use cached chemicals and cache new chemicals. Defaults to True.
See also
Mixture
,IdealMixtureModel
Examples
Calculate enthalpy of evaporation for a water and ethanol mixture:
>>> from thermosteam import Mixture >>> mixture = Mixture.from_chemicals(['Water', 'Ethanol']) >>> mixture.Hvap([0.2, 0.8], 350) 39750.62
Calculate density for a water and ethanol mixture in g/L:
>>> from thermosteam import Mixture >>> mixture = Mixture.from_chemicals(['Water', 'Ethanol']) >>> mixture.get_property('rho', 'g/L', 'l', [0.2, 0.8], 350, 101325) 754.23