:py:mod:`exo_k.aerosol.util_aerosol` ==================================== .. py:module:: exo_k.aerosol.util_aerosol .. autoapi-nested-parse:: @author: jeremy leconte Module Contents --------------- .. py:function:: mmr_to_number_density(mmr, gas_density, r_eff, aerosols_bulk_density) Converts a mass mixing ratio (mmr or q) in a number density of particles (in number per unit volume) :param mmr: Mass mixing ratio (in kg per kg of air) :type mmr: :class:`float` or :class:`array` :param gas_density: Density of the gas (in kg/m^3) :type gas_density: :class:`float` or :class:`array` :param r_eff: Effective radius of the particles (m) :type r_eff: :class:`float` or :class:`array` :param aerosols_bulk_density: Density of the constituent of the condensed particles (in kg/m^3) :type aerosols_bulk_density: :class:`float` or :class:`array` .. py:function:: mmr_to_number_density_ratio(mmr, Mgas, r_eff, aerosols_bulk_density) Converts a mass mixing ratio (mmr or q) in a ratio between particles density and molecules density :param mmr: Mass mixing ratio (in kg per kg of air) :type mmr: :class:`float` or :class:`array` :param Mgas: gas molar mass (in kg/mol) :type Mgas: :class:`float` or :class:`array` :param r_eff: Effective radius of the particles (m) :type r_eff: :class:`float` or :class:`array` :param aerosols_bulk_density: Density of the constituent of the condensed particles (in kg/m^3) :type aerosols_bulk_density: :class:`float` or :class:`array`