Skip to content

particula.gas.properties.mean_free_path

Calculating the mean free path of air.

Attributes

NameDescription
loggerNo description.

Functions

NameDescription
get_molecule_mean_free_pathCalculate 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

NameTypeDefaultDescription
molar_massUnion[float, NDArray[np.float64]]MOLECULAR_WEIGHT_AIRThe molar mass of the gas molecule [kg/mol].
temperaturefloat298.15The temperature of the gas [K].
pressurefloat101325The pressure of the gas [Pa].
dynamic_viscosityOptional[float]NoneThe 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

Example usage
import particula as par
par.gas.get_molecule_mean_free_path()
# Returns mean free path at ~298K and 101325Pa, ~6.5e-8 m