8. Vapor Viscosity

class gasthermo.viscosity.Viscosity(dippr_no: str = None, compound_name: str = None, cas_number: str = None, T_min_fit: float = None, T_max_fit: float = None, n_points_fit: int = 1000, poly_order: int = 2)[source]

Vapor Viscosity of Inorganic and Organic Substances [W/m/K] [RWO+07]

(1)\[\mu = \frac{C_1T^{C_2}}{1 + C_3/T + C_4 / T^2}\]

where \(\mu\) is the thermal conductivity in W/m/K and \(T\) is in K. Viscosities are either at 1 atm or the vapor pressure, whichever is lower.

Parameters
  • dippr_no (str, optional) – dippr_no of compound by DIPPR table, defaults to None

  • compound_name (str, optional) – name of chemical compound, defaults to None

  • cas_number (str, optional) – CAS registry number for chemical compound, defaults to None

  • MW (float, derived from input) – molecular weight in g/mol

  • T_min (float, derived from input) – minimum temperature of validity for relationship [K]

  • T_max (float, derived from input) – maximum temperature of validity [K]

  • C1 (float, derived from input) – parameter in Equation (1)

  • C2 (float, derived from input) – parameter in Equation (1)

  • C3 (float, derived from input) – parameter in Equation (1)

  • C4 (float, derived from input) – parameter in Equation (1)

  • units (str) – units for \(\mu\), set to Pa*s

  • T_min_fit – minimum temperature for fit, defaults to T_min

  • T_max_fit – maximum temperature for fit, defaults to T_max

eval(T)[source]
Parameters

T – temperature in K

Returns

\(\mu\) Pa*s (see equation (1))

class gasthermo.viscosity.ViscosityMixture(name_to_cas: dict = None, mixing_rule='Herning Zipperer', **kwargs)[source]

Viscosity of vapor mixture using Wilke or HR mixing rule

Parameters
  • name_to_cas (dict[components, str]) – mapping of chemical name to cas registry number

  • mixing_rule (str, optional) – mixing rule for calculation of viscosity, defaults to Herning Zipperer

  • pure (dict[components, Viscosity]) – pure component viscosity info, obtained rom Viscosity

eval_Wilke(y_i, T)[source]

Calculate mixture viscosity in Pa*s using Wilke mixing rule

Parameters

y_i (dict[component, float]) – mole fraction of each component i

phi_ij(i: str, j: str, T: float)[source]

Coefficient for each pair of components in a mixtures

Parameters
  • i – name of component i

  • j – name of component j