particula.gas.properties.mean_free_path
Calculating the mean free path of air.
Attributes
| Name | Description |
|---|---|
logger | No description. |
Functions
| Name | Description |
|---|---|
get_molecule_mean_free_path | Calculate the mean free path of a gas molecule in air. |
loggerattributemodule attribute#
logger = logging.getLogger('particula')get_molecule_mean_free_pathfunction#
def get_molecule_mean_free_path(molar_mass: Union[float, NDArray[np.float64]] = MOLECULAR_WEIGHT_AIR, temperature: float = 298.15, pressure: float = 101325, dynamic_viscosity: Optional[float] = None) -> Union[float, NDArray[np.float64]]Calculate the mean free path of a gas molecule in air.
This function calculates λ based on the input conditions. If dynamic_viscosity is not provided, it is computed via get_dynamic_viscosity(temperature).
- λ = (2 × μ / P) / √(8 × M / (π × R × T))
- λ is Mean free path [m].
- μ is Dynamic viscosity [Pa·s].
- P is Gas pressure [Pa].
- M is Molar mass [kg/mol].
- R is Universal gas constant [J/(mol·K)].
- T is Gas temperature [K].
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
molar_mass | Union[float, NDArray[np.float64]] | MOLECULAR_WEIGHT_AIR | The molar mass of the gas molecule [kg/mol]. |
temperature | float | 298.15 | The temperature of the gas [K]. |
pressure | float | 101325 | The pressure of the gas [Pa]. |
dynamic_viscosity | Optional[float] | None | The dynamic viscosity of the gas [Pa·s]. If None, it will be calculated based on the temperature. |
Returns
Union[float, NDArray[np.float64]]- Mean free path of the gas molecule in meters (m).
Examples
import particula as parpar.gas.get_molecule_mean_free_path()# Returns mean free path at ~298K and 101325Pa, ~6.5e-8 m