solprop.physdata.transport#
Transport properties of the fill gases: viscosity, sound speed, mean free path.
The steady-flow fill of a hollow fibre (solprop.gasflow) needs, beyond the
equation of state, the dynamic viscosity (viscosity()), which sets the Poiseuille
conductance; the speed of sound (sound_speed(), from heat_capacity_ratio()
and molar_mass()), which bounds the throughput of an end exhausting into vacuum;
and the mean free path (mean_free_path()), which says whether the gas is a
continuum. All are dilute-gas values, which is what the laminar law and the choke
use, valid over each gas’s temperature_range().
The material data are optmat’s (SEP 3), through the
OptmatGas a built-in gas or species carries: the
dilute viscosity, ideal-gas heat capacity and molar mass of optmat.gas.transport,
and for a mixture optmat’s Wilke rule (C. R. Wilke, J. Chem. Phys. 18, 517 (1950),
https://doi.org/10.1063/1.1747673, about 1 to 2 % accurate). A custom
Species without optmat’s equation of state has none
of these data and is refused. Pressures are in bar (docs/dev/conventions.md §1).
The manual page docs/guide/media/material-selection.md, “Density and transport”,
gives the sound-speed and mean-free-path forms solprop adds.
Functions
|
Return the dilute heat-capacity ratio of a gas or a mixture. |
|
Return the mean free path of a gas from its viscosity. |
|
Return the molar mass of a gas, or the mole-weighted mean of a mixture. |
|
Return the adiabatic speed of sound in a gas or a mixture. |
|
Return the temperatures over which a gas's transport properties are valid. |
|
Return the dilute dynamic viscosity of a gas or a mixture. |
- solprop.physdata.transport.heat_capacity_ratio(gas, temperature=293.15)[source]#
Return the dilute heat-capacity ratio of a gas or a mixture.
- Parameters:
- gasGas, str, Species or Mapping
One built-in gas, or gases to mole fractions summing to one.
- temperaturefloat, optional
Temperature in K, inside
temperature_range()of every gas. Defaults to 293.15 K.
- Returns:
- float
gamma = sum(x c_p) / sum(x (c_p - R)), dimensionless.
- Raises:
- MaterialError
If a gas is unknown or a custom species, the fractions are invalid, or the temperature is outside a gas’s range.
Examples
>>> from solprop.physdata.transport import heat_capacity_ratio >>> f"{heat_capacity_ratio('Ar', 293.15):.4f}" '1.6667' >>> f"{heat_capacity_ratio('N2', 293.15):.3f}" '1.400'
- solprop.physdata.transport.mean_free_path(gas, pressure, temperature=293.15)[source]#
Return the mean free path of a gas from its viscosity.
Uses \(\lambda = (\eta / p)\sqrt{\pi k_B T / (2 m)}\) with the molecular mass \(m = M / N_A\) (for a mixture, the mole-weighted mean) and the viscosity of
viscosity(): the hard-sphere kinetic-theory form written so that it needs no collision diameter.- Parameters:
- gasGas, str, Species or Mapping
One built-in gas, or gases to mole fractions summing to one.
- pressurefloat
Pressure in bar, > 0.
- temperaturefloat, optional
Temperature in K, inside
temperature_range()of every gas. Defaults to 293.15 K.
- Returns:
- float
Mean free path in m.
- Raises:
- MaterialError
If the pressure is not positive, or as
viscosity().
Examples
>>> from solprop.physdata.transport import mean_free_path >>> f"{mean_free_path('N2', 1.0, 293.15) * 1e9:.1f}" '64.9'
- solprop.physdata.transport.molar_mass(gas)[source]#
Return the molar mass of a gas, or the mole-weighted mean of a mixture.
optmat’s molar mass of each gas; for
Gas.Airthat of the pseudo-pure dry air its equation of state describes.- Parameters:
- gasGas, str, Species or Mapping
One built-in gas, or gases to mole fractions summing to one.
- Returns:
- float
Molar mass in kg mol^-1.
- Raises:
- MaterialError
If a gas is unknown or a custom species, or the fractions are invalid.
Examples
>>> from solprop.physdata.transport import molar_mass >>> f"{molar_mass('N2'):.6f}" '0.028013' >>> f"{molar_mass({'He': 0.5, 'Ar': 0.5}):.6f}" '0.021975'
- solprop.physdata.transport.sound_speed(gas, pressure=None, temperature=293.15)[source]#
Return the adiabatic speed of sound in a gas or a mixture.
- Parameters:
- gasGas, str, Species or Mapping
One built-in gas, or gases to mole fractions summing to one.
- pressurefloat or None, optional
None(the default) gives the dilute valuesqrt(gamma R T / M)ofheat_capacity_ratio()andmolar_mass(). A pressure in bar, > 0, gives the real-gas value from the equation of state, for a pure gas only.- temperaturefloat, optional
Temperature in K, inside
temperature_range()of every gas. Defaults to 293.15 K.
- Returns:
- float
Speed of sound in m s^-1.
- Raises:
- MaterialError
If a gas is unknown or a custom species, the fractions are invalid, the temperature is outside a gas’s range, the pressure is not positive, or a pressure is given for a mixture.
Examples
>>> from solprop.physdata.transport import sound_speed >>> f"{sound_speed('N2'):.1f}" '349.0' >>> f"{sound_speed('N2', 1.0, 293.15):.1f}" '349.1'
- solprop.physdata.transport.temperature_range(gas)[source]#
Return the temperatures over which a gas’s transport properties are valid.
- Parameters:
- gasGas, str or Species
A built-in gas, or a species carrying optmat’s equation of state.
- Returns:
- tuple of float
The lowest and highest temperature in K, optmat’s.
- Raises:
- MaterialError
If the gas is unknown or a custom species.
Examples
>>> from solprop.physdata.transport import temperature_range >>> temperature_range("N2O") (182.33, 525.0)
- solprop.physdata.transport.viscosity(gas, temperature=293.15)[source]#
Return the dilute dynamic viscosity of a gas or a mixture.
- Parameters:
- gasGas, str, Species or Mapping
One built-in gas, or gases to mole fractions summing to one, which take Wilke’s mixing rule.
- temperaturefloat, optional
Temperature in K, inside
temperature_range()of every gas. Defaults to 293.15 K.
- Returns:
- float
Dynamic viscosity in Pa s.
- Raises:
- MaterialError
If a gas is unknown or a custom species, the fractions are invalid, or the temperature is outside a gas’s range.
Examples
>>> from solprop.physdata.transport import viscosity >>> f"{viscosity('N2', 293.15):.4e}" '1.7560e-05' >>> f"{viscosity('Xe', 300.0):.4e}" '2.3146e-05'