Calculate water and organic activities in a binary liquid
Use Binary Activity Thermodynamics (BAT) when you know the composition of a homogeneous water–organic particle and want the equilibrium vapor pressure of either component. Adding water can bring water’s vapor pressure closer to its pure-liquid value while further suppressing the organic’s vapor pressure. BAT gives the factor for each vapor. If your starting point is the total organic inventory across gas and particles, use the bulk partitioning calculation to estimate how much remains condensed.
Add water to a fixed amount of organic material
Section titled “Add water to a fixed amount of organic material”Take a miscible reference organic with molar mass 0.2 kg/mol, an oxygen-to-carbon atomic ratio (O:C) of 0.5 and density 1243.493333 kg/m³. Keep these properties and the organic mass fixed so that only dilution changes between the two compositions. The first calculation uses equal water and organic masses. The second doubles the water mass. Both use water–organic order.
import numpy as npfrom particula.particles import ActivityBAT
model = ActivityBAT(molar_mass=0.2, oxygen2carbon=0.5, density=1243.493333)for water_mass in (0.5e-9, 1.0e-9): mass = np.array([water_mass, 0.5e-9]) # kg/m³, water and organic water, organic = model.activity(mass) print(f"water {water:.3f}, organic {organic:.3f}")The two vapors respond in opposite directions. At the same temperature over a flat surface, water’s equilibrium pressure rises from 94.2% to 96.7% of pure water’s vapor pressure. The organic’s falls from 6.9% to 4.6% of the pure organic’s vapor pressure. Each fraction uses its own pure-component reference. An activity above one in another nonideal mixture would indicate an equilibrium pressure above that reference.
If you only need the organic activity, ActivityNonIdealBinaryBuilder
accepts the organic descriptors with explicit units. For example, pass
200.0, "g/mol" to set_molar_mass, set oxygen2carbon with
set_oxygen2carbon(0.5), and pass 1243.493333, "kg/m^3" to
set_density. The built strategy returns a single organic activity for the
same two input masses. Its factory selector is "non_ideal_binary".
Use both activities during condensation
Section titled “Use both activities during condensation”Pass the ActivityBAT model as the condensation strategy’s activity_strategy.
Keep particle materials in water–organic order. The species map sets which gas
species exchange with them, so gas species can have a different order and a
particle material can remain involatile. As water or organic mass changes, condensation updates both
activities. For each exchanging vapor, the model combines its activity,
pure-species vapor pressure and Kelvin curvature correction to obtain the
surface equilibrium pressure. A gas pressure above that value favors
condensation and a pressure below it favors evaporation. The CPU evaluates BAT directly. GPU execution uses a
prepared one-dimensional table indexed by organic mole fraction.
CPU and CUDA humidity-pulse example
The BAT coefficients were fitted at 298.15 K. Specify the temperature for the pure-species vapor pressures separately. For descriptors that permit demixing, these calculations still follow a homogeneous liquid curve. Predicting evaporation or growth of a phase-separated particle also requires the amounts of the coexisting phases and the composition at the surface. Binary BAT reference curves and phase assumptions · Activity theory · Choose an activity model
Partition a bulk organic inventory at a prescribed humidity
Section titled “Partition a bulk organic inventory at a prescribed humidity”The binary calculation starts with known particle masses. If you know the total mass available in gas and particles and want to estimate how much condenses, use the bulk liquid–vapor partitioning solver. Here three organic species have different dry saturation concentrations. The solver holds water activity at 0.75 and exchanges water with the prescribed humidity reservoir. Supply the dry saturation concentrations and organic inventories in µg/m³ and the organic molar masses in g/mol for this interface.
import numpy as npimport particula as par
partitioning = par.equilibria.LiquidVaporPartitioningStrategy(water_activity=0.75)result = partitioning.solve( c_star_j_dry=np.array([1e-6, 1e-4, 1e-2]), # µg/m³ concentration_organic_matter=np.array([1.0, 5.0, 10.0]), # µg/m³ molar_mass=np.array([200.0, 200.0, 200.0]), # g/mol oxygen2carbon=np.array([0.2, 0.3, 0.5]), density=np.array([1200.0, 1200.0, 1200.0]), # kg/m³)print(result.partition_coefficients)All three partition coefficients exceed 0.9997. With these low saturation concentrations, more than 99.97% of each organic inventory condenses. Water supplied by the reservoir is separate from each organic species’ mass balance. This calculation operates on the supplied inventories without constructing an aerosol or advancing it in time. Liquid–vapor partitioning theory
Related studies
Section titled “Related studies”- BAT humidity-pulse ensemble on CPU and CUDA
- Compare ideal and nonideal organic activity
- Binary BAT reference checks
Explore this topic: Nonideal mixtures · Chemical activity