Mixture#

class Mixture[source]#

Abstract class for estimating mixture properties.

Abstract methods#

Cn(phase, mol, T)float

Molar isobaric heat capacity [J/mol/K].

H(phase, mol, T)float

Enthalpy [J/mol].

S(phase, mol, T, P)float

Entropy [J/mol].

mu(phase, mol, T, P)float

Dynamic viscosity [Pa*s].

V(phase, mol, T, P)float

Molar volume [m^3/mol].

kappa(phase, mol, T, P)float

Thermal conductivity [W/m/K].

Hvap(mol, T)float

Heat of vaporization [J/mol]

sigma(mol, T, P)float

Surface tension [N/m].

epsilon(mol, T, P)float

Relative permitivity [-]

Abstract attributes MWs : 1d array[float]

Component molecular weights [g/mol].

MW(mol)[source]#

Return molecular weight [g/mol] given molar array [mol].

rho(phase, mol, T, P)[source]#

Mixture density [kg/m^3]

Cp(phase, mol, T)[source]#

Mixture isobaric heat capacity [J/g/K]

alpha(phase, mol, T, P)[source]#

Mixture thermal diffusivity [m^2/s].

nu(phase, mol, T, P)[source]#

Mixture kinematic viscosity [m^2/s].

Pr(phase, mol, T, P)[source]#

Mixture Prandtl number [-].

xrho(phase_mol, T, P)[source]#

Multi-phase mixture density [kg/m3].

xCp(phase_mol, T)[source]#

Multi-phase mixture isobaric heat capacity [J/g/K].

xalpha(phase_mol, T, P)[source]#

Multi-phase mixture thermal diffusivity [m^2/s].

xnu(phase_mol, T, P)[source]#

Multi-phase mixture kinematic viscosity [m^2/s].

xPr(phase_mol, T, P)[source]#

Multi-phase mixture Prandtl number [-].

get_property(name, units, *args, **kwargs)[source]#

Return property in requested units.

Parameters:
  • name (str) – Name of stream property.

  • units (str) – Units of measure.

  • *args – Phase, material and thermal condition.

  • **kwargs – Phase, material and thermal condition.

H(phase, mol, T, P)[source]#

Return enthalpy [J/mol].

S(phase, mol, T, P)[source]#

Return entropy in [J/mol/K].

solve_T_at_HP(phase, mol, H, T_guess, P)[source]#

Solve for temperature in Kelvin.

xsolve_T_at_HP(phase_mol, H, T_guess, P)[source]#

Solve for temperature in Kelvin.

solve_T_at_SP(phase, mol, S, T_guess, P)[source]#

Solve for temperature in Kelvin.

xsolve_T_at_SP(phase_mol, S, T_guess, P)[source]#

Solve for temperature in Kelvin.

xCn(phase_mol, T, P=None)[source]#

Multi-phase mixture molar isobaric heat capacity [J/mol/K].

xH(phase_mol, T, P)[source]#

Multi-phase mixture enthalpy [J/mol].

xS(phase_mol, T, P)[source]#

Multi-phase mixture entropy [J/mol/K].

xV(phase_mol, T, P)[source]#

Multi-phase mixture molar volume [mol/m^3].

xmu(phase_mol, T, P)[source]#

Multi-phase mixture hydrolic [Pa*s].

xkappa(phase_mol, T, P)[source]#

Multi-phase mixture thermal conductivity [W/m/K].