particula.activity.activity_coefficients¶
activity_coefficients
¶
Activity coefficients for organic-water mixtures.
Gorkowski, K., Preston, T. C., & Zuend, A. (2019). Relative-humidity-dependent organic aerosol thermodynamics Via an efficient reduced-complexity model. Atmospheric Chemistry and Physics https://doi.org/10.5194/acp-19-13383-2019
bat_activity_coefficients
¶
bat_activity_coefficients(molar_mass_ratio: Union[float, NDArray[float64]], organic_mole_fraction: Union[float, NDArray[float64]], oxygen2carbon: Union[float, NDArray[float64]], density: Union[float, NDArray[float64]], functional_group: Optional[Union[str, List[str]]] = None) -> Tuple[Union[float, NDArray[np.float64]], Union[float, NDArray[np.float64]], Union[float, NDArray[np.float64]], Union[float, NDArray[np.float64]], Union[float, NDArray[np.float64]], Union[float, NDArray[np.float64]]]
Calculate the activity coefficients for water-organic mixtures.
Parameters:
-
- molar_mass_ratio–Ratio of the molecular weight of water to the molecular weight of organic matter.
-
- organic_mole_fraction–Molar fraction of organic matter in the mixture.
-
- oxygen2carbon–Oxygen to carbon ratio in the organic compound.
-
- density–Density of the mixture, in kg/m^3.
-
- functional_group–Optional functional group(s) of the organic compound, if applicable.
Returns:
-
Tuple[Union[float, NDArray[float64]], Union[float, NDArray[float64]], Union[float, NDArray[float64]], Union[float, NDArray[float64]], Union[float, NDArray[float64]], Union[float, NDArray[float64]]]–- A tuple containing the activity of water, activity of organic matter, mass fraction of water, and mass fraction of organic matter, gamma_water (activity coefficient), and gamma_organic (activity coefficient).
Source code in particula/activity/activity_coefficients.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |