Condensation in radius bins
Will this population initially grow or evaporate?
Section titled “Will this population initially grow or evaporate?”Before integrating a condensation model, inspect the direction and meaning of
its initial mass-transfer rate. A class named MassCondensation can describe
evaporation too: the sign follows the gas-to-surface vapor-pressure difference.
This CPU example constructs a glycerol population and evaluates its initial rate at 298.15 K. It does not advance time. The aim is to distinguish the population’s initial size distribution from its tendency to gain or lose mass. Read size distributions and vapor pressure for prerequisites.
Python · section 1
# In Colab uncomment the following command to install particula:# Install from the repository root: `python -m pip install -e ".[extra]"`import matplotlib.pyplot as pltimport numpy as np
# particula importsimport particula as parfrom particula.dynamics.condensation.species_mapping import ( CondensationSpeciesMap,)Specify the particles and their vapor reservoir
Section titled “Specify the particles and their vapor reservoir”The example uses a single material, spherical particles with density
1,260 kg m⁻³, a lognormal radius distribution, and total number concentration
10¹⁰ m⁻³. Radii are in metres; discrete concentration stores number per volume
in each bin. The 500 radius points span 10 nm–10 µm.
Gas concentration starts at 1% of the saturation concentration calculated by the configured Clausius–Clapeyron relation. The vapor-pressure parameters are demonstration inputs, not a calibration established here. This strongly undersaturated setting gives a clear reason to inspect evaporation. Surface curvature and activity enter the equilibrium surface pressure separately.
Python · section 2
# Glycerol gasmolar_mass_glycerol = 92.09382e-3 # kg/molparameters_clausius = { "latent_heat": 71.5 * molar_mass_glycerol, "latent_heat_units": "kJ/mol", "temperature_initial": 125.5, "temperature_initial_units": "degC", "pressure_initial": 1, "pressure_initial_units": "mmHg",}vapor_pressure_strategy = par.gas.VaporPressureFactory().get_strategy( "clausius_clapeyron", parameters_clausius)
sat_concentration = vapor_pressure_strategy.saturation_concentration( molar_mass_glycerol, 298.15)print(f"Saturation concentration: {sat_concentration:.2e} kg/m^3")
sat_factor = 0.01 # 1% of saturation concentrationglycerol_gas = ( par.gas.GasDataBuilder() .set_names(["Glycerol"]) .set_molar_mass([molar_mass_glycerol], "kg/mol") .set_concentration([sat_concentration * sat_factor], "kg/m^3") .set_partitioning([True]) .build())environment = par.gas.EnvironmentData( temperature=[298.15], pressure=[101325.0], saturation_ratio=[[sat_factor]],)bins = np.logspace(-8, -5, 500)particles = par.particles.create_lognormal_binned_particle_data( distribution_type="discrete", radius_bins=bins, mode=[100e-9], geometric_standard_deviation=[1.3], number_concentration=[1e10], density=1260.0,)aerosol = par.Aerosol( particles=particles, gas=glycerol_gas, environment=environment,)
print(aerosol)Saturation concentration: 2.54e-03 kg/m^3
ParticleData(masses=array([[[5.27787566e-21],
[5.50167873e-21],
[5.73497196e-21],
[5.97815775e-21],
[6.23165559e-21],
[6.49590276e-21],
[6.77135507e-21],
[7.05848765e-21],
[7.35779581e-21],
[7.66979584e-21],
[7.99502592e-21],
[8.33404705e-21],
[8.68744404e-21],
[9.05582648e-21],
[9.43982981e-21],
[9.84011642e-21],
[1.02573768e-20],
[1.06923307e-20],
[1.11457283e-20],
[1.16183519e-20],
[1.21110165e-20],
[1.26245722e-20],
[1.31599046e-20],
[1.37179373e-20],
[1.42996328e-20],
[1.49059945e-20],
[1.55380684e-20],
[1.61969448e-20],
[1.68837602e-20],
[1.75996993e-20],
[1.83459970e-20],
[1.91239408e-20],
[1.99348725e-20],
[2.07801910e-20],
[2.16613544e-20],
[2.25798826e-20],
[2.35373601e-20],
[2.45354385e-20],
[2.55758394e-20],
[2.66603575e-20],
[2.77908634e-20],
[2.89693074e-20],
[3.01977221e-20],
[3.14782265e-20],
[3.28130295e-20],
[3.42044334e-20],
[3.56548385e-20],
[3.71667465e-20],
[3.87427655e-20],
[4.03856139e-20],
[4.20981258e-20],
[4.38832550e-20],
[4.57440809e-20],
[4.76838132e-20],
[4.97057980e-20],
[5.18135230e-20],
[5.40106240e-20],
[5.63008908e-20],
[5.86882742e-20],
[6.11768922e-20],
[6.37710376e-20],
[6.64751851e-20],
[6.92939993e-20],
[7.22323425e-20],
[7.52952833e-20],
[7.84881050e-20],
[8.18163152e-20],
[8.52856548e-20],
[8.89021083e-20],
[9.26719139e-20],
[9.66015744e-20],
[1.00697868e-19],
[1.04967861e-19],
[1.09418919e-19],
[1.14058720e-19],
[1.18895267e-19],
[1.23936902e-19],
[1.29192324e-19],
[1.34670596e-19],
[1.40381169e-19],
[1.46333893e-19],
[1.52539036e-19],
[1.59007303e-19],
[1.65749849e-19],
[1.72778307e-19],
[1.80104800e-19],
[1.87741965e-19],
[1.95702976e-19],
[2.04001567e-19],
[2.12652051e-19],
[2.21669350e-19],
[2.31069018e-19],
[2.40867271e-19],
[2.51081008e-19],
[2.61727849e-19],
[2.72826159e-19],
[2.84395081e-19],
[2.96454572e-19],
[3.09025434e-19],
[3.22129350e-19],
[3.35788926e-19],
[3.50027722e-19],
[3.64870299e-19],
[3.80342262e-19],
[3.96470298e-19],
[4.13282227e-19],
[4.30807050e-19],
[4.49074995e-19],
[4.68117574e-19],
[4.87967635e-19],
[5.08659418e-19],
[5.30228616e-19],
[5.52712434e-19],
[5.76149656e-19],
[6.00580710e-19],
[6.26047738e-19],
[6.52594671e-19],
[6.80267300e-19],
[7.09113360e-19],
[7.39182607e-19],
[7.70526912e-19],
[8.03200340e-19],
[8.37259253e-19],
[8.72762401e-19],
[9.09771024e-19],
[9.48348960e-19],
[9.88562756e-19],
[1.03048178e-18],
[1.07417834e-18],
[1.11972780e-18],
[1.16720875e-18],
[1.21670307e-18],
[1.26829616e-18],
[1.32207700e-18],
[1.37813836e-18],
[1.43657695e-18],
[1.49749357e-18],
[1.56099330e-18],
[1.62718567e-18],
[1.69618486e-18],
[1.76810989e-18],
[1.84308484e-18],
[1.92123902e-18],
[2.00270725e-18],
[2.08763007e-18],
[2.17615395e-18],
[2.26843159e-18],
[2.36462218e-18],
[2.46489164e-18],
[2.56941292e-18],
[2.67836633e-18],
[2.79193979e-18],
[2.91032922e-18],
[3.03373885e-18],
[3.16238153e-18],
[3.29647918e-18],
[3.43626310e-18],
[3.58197443e-18],
[3.73386450e-18],
[3.89219531e-18],
[4.05723999e-18],
[4.22928322e-18],
[4.40862178e-18],
[4.59556501e-18],
[4.79043538e-18],
[4.99356903e-18],
[5.20531637e-18],
[5.42604264e-18],
[5.65612859e-18],
[5.89597111e-18],
[6.14598391e-18],
[6.40659825e-18],
[6.67826369e-18],
[6.96144883e-18],
[7.25664216e-18],
[7.56435286e-18],
[7.88511173e-18],
[8.21947207e-18],
[8.56801062e-18],
[8.93132860e-18],
[9.31005272e-18],
[9.70483626e-18],
[1.01163602e-17],
[1.05453344e-17],
[1.09924989e-17],
[1.14586249e-17],
[1.19445165e-17],
[1.24510118e-17],
[1.29789846e-17],
[1.35293456e-17],
[1.41030440e-17],
[1.47010696e-17],
[1.53244539e-17],
[1.59742721e-17],
[1.66516453e-17],
[1.73577417e-17],
[1.80937796e-17],
[1.88610283e-17],
[1.96608115e-17],
[2.04945087e-17],
[2.13635580e-17],
[2.22694584e-17],
[2.32137727e-17],
[2.41981297e-17],
[2.52242273e-17],
[2.62938356e-17],
[2.74087996e-17],
[2.85710426e-17],
[2.97825693e-17],
[3.10454695e-17],
[3.23619218e-17],
[3.37341970e-17],
[3.51646621e-17],
[3.66557847e-17],
[3.82101369e-17],
[3.98303998e-17],
[4.15193683e-17],
[4.32799559e-17],
[4.51151995e-17],
[4.70282647e-17],
[4.90224516e-17],
[5.11012000e-17],
[5.32680956e-17],
[5.55268763e-17],
[5.78814383e-17],
[6.03358433e-17],
[6.28943248e-17],
[6.55612962e-17],
[6.83413578e-17],
[7.12393053e-17],
[7.42601373e-17],
[7.74090646e-17],
[8.06915192e-17],
[8.41131629e-17],
[8.76798981e-17],
[9.13978771e-17],
[9.52735133e-17],
[9.93134920e-17],
[1.03524782e-16],
[1.07914648e-16],
[1.12490661e-16],
[1.17260716e-16],
[1.22233040e-16],
[1.27416211e-16],
[1.32819169e-16],
[1.38451234e-16],
[1.44322121e-16],
[1.50441957e-16],
[1.56821299e-16],
[1.63471150e-16],
[1.70402982e-16],
[1.77628751e-16],
[1.85160922e-16],
[1.93012487e-16],
[2.01196990e-16],
[2.09728549e-16],
[2.18621879e-16],
[2.27892323e-16],
[2.37555871e-16],
[2.47629192e-16],
[2.58129662e-16],
[2.69075394e-16],
[2.80485268e-16],
[2.92378968e-16],
[3.04777007e-16],
[3.17700774e-16],
[3.31172560e-16],
[3.45215603e-16],
[3.59854128e-16],
[3.75113385e-16],
[3.91019696e-16],
[4.07600498e-16],
[4.24884392e-16],
[4.42901193e-16],
[4.61681978e-16],
[4.81259144e-16],
[5.01666460e-16],
[5.22939128e-16],
[5.45113842e-16],
[5.68228854e-16],
[5.92324034e-16],
[6.17440946e-16],
[6.43622917e-16],
[6.70915107e-16],
[6.99364596e-16],
[7.29020458e-16],
[7.59933846e-16],
[7.92158086e-16],
[8.25748763e-16],
[8.60763820e-16],
[8.97263655e-16],
[9.35311229e-16],
[9.74972173e-16],
[1.01631490e-15],
[1.05941072e-15],
[1.10433398e-15],
[1.15116217e-15],
[1.19997606e-15],
[1.25085985e-15],
[1.30390132e-15],
[1.35919196e-15],
[1.41682715e-15],
[1.47690630e-15],
[1.53953304e-15],
[1.60481541e-15],
[1.67286602e-15],
[1.74380224e-15],
[1.81774644e-15],
[1.89482617e-15],
[1.97517439e-15],
[2.05892970e-15],
[2.14623657e-15],
[2.23724560e-15],
[2.33211378e-15],
[2.43100475e-15],
[2.53408909e-15],
[2.64154463e-15],
[2.75355670e-15],
[2.87031854e-15],
[2.99203155e-15],
[3.11890567e-15],
[3.25115977e-15],
[3.38902197e-15],
[3.53273009e-15],
[3.68253200e-15],
[3.83868611e-15],
[4.00146178e-15],
[4.17113980e-15],
[4.34801284e-15],
[4.53238601e-15],
[4.72457733e-15],
[4.92491834e-15],
[5.13375462e-15],
[5.35144638e-15],
[5.57836915e-15],
[5.81491436e-15],
[6.06149003e-15],
[6.31852149e-15],
[6.58645212e-15],
[6.86574408e-15],
[7.15687914e-15],
[7.46035950e-15],
[7.77670863e-15],
[8.10647224e-15],
[8.45021915e-15],
[8.80854230e-15],
[9.18205979e-15],
[9.57141592e-15],
[9.97728230e-15],
[1.04003591e-14],
[1.08413760e-14],
[1.13010937e-14],
[1.17803054e-14],
[1.22798375e-14],
[1.28005519e-14],
[1.33433466e-14],
[1.39091579e-14],
[1.44989619e-14],
[1.51137760e-14],
[1.57546607e-14],
[1.64227214e-14],
[1.71191106e-14],
[1.78450295e-14],
[1.86017303e-14],
[1.93905182e-14],
[2.02127538e-14],
[2.10698556e-14],
[2.19633019e-14],
[2.28946339e-14],
[2.38654581e-14],
[2.48774492e-14],
[2.59323527e-14],
[2.70319884e-14],
[2.81782530e-14],
[2.93731238e-14],
[3.06186620e-14],
[3.19170160e-14],
[3.32704253e-14],
[3.46812247e-14],
[3.61518476e-14],
[3.76848308e-14],
[3.92828186e-14],
[4.09485675e-14],
[4.26849508e-14],
[4.44949638e-14],
[4.63817286e-14],
[4.83484997e-14],
[5.03986698e-14],
[5.25357754e-14],
[5.47635028e-14],
[5.70856947e-14],
[5.95063569e-14],
[6.20296649e-14],
[6.46599712e-14],
[6.74018131e-14],
[7.02599201e-14],
[7.32392222e-14],
[7.63448587e-14],
[7.95821866e-14],
[8.29567902e-14],
[8.64744906e-14],
[9.01413555e-14],
[9.39637101e-14],
[9.79481480e-14],
[1.02101542e-13],
[1.06431056e-13],
[1.10944160e-13],
[1.15648637e-13],
[1.20552602e-13],
[1.25664516e-13],
[1.30993195e-13],
[1.36547831e-13],
[1.42338006e-13],
[1.48373708e-13],
[1.54665348e-13],
[1.61223778e-13],
[1.68060312e-13],
[1.75186743e-13],
[1.82615363e-13],
[1.90358986e-13],
[1.98430970e-13],
[2.06845238e-13],
[2.15616305e-13],
[2.24759300e-13],
[2.34289995e-13],
[2.44224830e-13],
[2.54580941e-13],
[2.65376193e-13],
[2.76629207e-13],
[2.88359394e-13],
[3.00586988e-13],
[3.13333081e-13],
[3.26619659e-13],
[3.40469641e-13],
[3.54906918e-13],
[3.69956394e-13],
[3.85644027e-13],
[4.01996879e-13],
[4.19043158e-13],
[4.36812267e-13],
[4.55334857e-13],
[4.74642879e-13],
[4.94769639e-13],
[5.15749855e-13],
[5.37619715e-13],
[5.60416945e-13],
[5.84180869e-13],
[6.08952479e-13],
[6.34774504e-13],
[6.61691487e-13],
[6.89749857e-13],
[7.18998015e-13],
[7.49486412e-13],
[7.81267639e-13],
[8.14396518e-13],
[8.48930193e-13],
[8.84928235e-13],
[9.22452738e-13],
[9.61568431e-13],
[1.00234279e-12],
[1.04484614e-12],
[1.08915180e-12],
[1.13533620e-12],
[1.18347900e-12],
[1.23366326e-12],
[1.28597552e-12],
[1.34050604e-12],
[1.39734886e-12],
[1.45660205e-12],
[1.51836782e-12],
[1.58275270e-12],
[1.64986775e-12],
[1.71982876e-12],
[1.79275639e-12],
[1.86877644e-12],
[1.94802005e-12],
[2.03062391e-12],
[2.11673050e-12],
[2.20648835e-12],
[2.30005230e-12],
[2.39758373e-12],
[2.49925089e-12],
[2.60522914e-12],
[2.71570130e-12],
[2.83085792e-12],
[2.95089764e-12],
[3.07602752e-12],
[3.20646341e-12],
[3.34243031e-12],
[3.48416275e-12],
[3.63190521e-12],
[3.78591254e-12],
[3.94645041e-12],
[4.11379572e-12],
[4.28823714e-12],
[4.47007558e-12],
[4.65962469e-12],
[4.85721145e-12],
[5.06317668e-12],
[5.27787566e-12]]]), concentration=array([[3.96140107e-09, 6.28566476e-09, 9.94591067e-09, 1.56938261e-08,
2.46947171e-08, 3.87498670e-08, 6.06355494e-08, 9.46183474e-08,
1.47236112e-07, 2.28477934e-07, 3.53561628e-07, 5.45603223e-07,
8.39613998e-07, 1.28846716e-06, 1.97177782e-06, 3.00907866e-06,
4.57931001e-06, 6.94956290e-06, 1.05173390e-05, 1.58724950e-05,
2.38877621e-05, 3.58506200e-05, 5.36548292e-05, 8.00777576e-05,
1.19180699e-04, 1.76884955e-04, 2.61798289e-04, 3.86396916e-04,
5.68710752e-04, 8.34718747e-04, 1.22174293e-03, 1.78324266e-03,
2.59556550e-03, 3.76742385e-03, 5.45315588e-03, 7.87122419e-03,
1.13299395e-02, 1.62631191e-02, 2.32793599e-02, 3.32299100e-02,
4.73018620e-02, 6.71457066e-02, 9.50493608e-02, 1.34174842e-01,
1.88879109e-01, 2.65147599e-01, 3.71178158e-01, 5.18164989e-01,
7.21347713e-01, 1.00141062e+00, 1.38634292e+00, 1.91390370e+00,
2.63487755e+00, 3.61736001e+00, 4.95238009e+00, 6.76125235e+00,
9.20515830e+00, 1.24975913e+01, 1.69204658e+01, 2.28448995e+01,
3.07579318e+01, 4.12967569e+01, 5.52924337e+01, 7.38255012e+01,
9.82964974e+01, 1.30515058e+02, 1.72812097e+02, 2.28180539e+02,
3.00451240e+02, 3.94512112e+02, 5.16580040e+02, 6.74537103e+02,
8.78344738e+02, 1.14055204e+03, 1.47691720e+03, 1.90716439e+03,
2.45590211e+03, 3.15373294e+03, 4.03858955e+03, 5.15733641e+03,
6.56768242e+03, 8.34045548e+03, 1.05622960e+04, 1.33388331e+04,
1.67984141e+04, 2.10964639e+04, 2.64205584e+04, 3.29963011e+04,
4.10940991e+04, 5.10369380e+04, 6.32092587e+04, 7.80670421e+04,
9.61492037e+04, 1.18090402e+05, 1.44635349e+05, 1.76654716e+05,
2.15162689e+05, 2.61336236e+05, 3.16536096e+05, 3.82329484e+05,
4.60514470e+05, 5.53145917e+05, 6.62562850e+05, 7.91417030e+05,
9.42702465e+05, 1.11978548e+06, 1.32643498e+06, 1.56685222e+06,
1.84569973e+06, 2.16812842e+06, 2.53980220e+06, 2.96691926e+06,
3.45622893e+06, 4.01504313e+06, 4.65124127e+06, 5.37326751e+06,
6.19011899e+06, 7.11132410e+06, 8.14690941e+06, 9.30735422e+06,
1.06035317e+07, 1.20466356e+07, 1.36480923e+07, 1.54194566e+07,
1.73722922e+07, 1.95180363e+07, 2.18678486e+07, 2.44324454e+07,
2.72219201e+07, 3.02455519e+07, 3.35116038e+07, 3.70271130e+07,
4.07976766e+07, 4.48272349e+07, 4.91178571e+07, 5.36695324e+07,
5.84799715e+07, 6.35444219e+07, 6.88555028e+07, 7.44030632e+07,
8.01740675e+07, 8.61525149e+07, 9.23193934e+07, 9.86526748e+07,
1.05127353e+08, 1.11715525e+08, 1.18386526e+08, 1.25107101e+08,
1.31841636e+08, 1.38552430e+08, 1.45200012e+08, 1.51743500e+08,
1.58141001e+08, 1.64350038e+08, 1.70328011e+08, 1.76032672e+08,
1.81422618e+08, 1.86457783e+08, 1.91099937e+08, 1.95313162e+08,
1.99064317e+08, 2.02323471e+08, 2.05064298e+08, 2.07264434e+08,
2.08905779e+08, 2.09974745e+08, 2.10462445e+08, 2.10364815e+08,
2.09682667e+08, 2.08421685e+08, 2.06592340e+08, 2.04209746e+08,
2.01293456e+08, 1.97867191e+08, 1.93958520e+08, 1.89598490e+08,
1.84821217e+08, 1.79663444e+08, 1.74164065e+08, 1.68363648e+08,
1.62303932e+08, 1.56027337e+08, 1.49576473e+08, 1.42993674e+08,
1.36320541e+08, 1.29597527e+08, 1.22863553e+08, 1.16155657e+08,
1.09508695e+08, 1.02955080e+08, 9.65245748e+07, 9.02441284e+07,
8.41377613e+07, 7.82264983e+07, 7.25283452e+07, 6.70583074e+07,
6.18284481e+07, 5.68479810e+07, 5.21233937e+07, 4.76585982e+07,
4.34551031e+07, 3.95122030e+07, 3.58271816e+07, 3.23955223e+07,
2.92111240e+07, 2.62665171e+07, 2.35530770e+07, 2.10612311e+07,
1.87806576e+07, 1.67004733e+07, 1.48094081e+07, 1.30959668e+07,
1.15485742e+07, 1.01557058e+07, 8.90600219e+06, 7.78836725e+06,
6.79205176e+06, 5.90672147e+06, 5.12251145e+06, 4.43006730e+06,
3.82057430e+06, 3.28577572e+06, 2.81798141e+06, 2.41006785e+06,
2.05547102e+06, 1.74817291e+06, 1.48268315e+06, 1.25401653e+06,
1.05766738e+06, 8.89581820e+05, 7.46128498e+05, 6.24068551e+05,
5.20525377e+05, 4.32954699e+05, 3.59115333e+05, 2.97040986e+05,
2.45013351e+05, 2.01536662e+05, 1.65313877e+05, 1.35224537e+05,
1.10304349e+05, 8.97264962e+04, 7.27846373e+04, 5.88775426e+04,
4.74952927e+04, 3.82069528e+04, 3.06496258e+04, 2.45187819e+04,
1.95597611e+04, 1.55603421e+04, 1.23442775e+04, 9.76569488e+03,
7.70427129e+03, 6.06109266e+03, 4.75511714e+03, 3.72016718e+03,
2.90238241e+03, 2.25807182e+03, 1.75191007e+03, 1.35542910e+03,
1.04576173e+03, 8.04599250e+02, 6.17330085e+02, 4.72330730e+02,
3.60384332e+02, 2.74205740e+02, 2.08054983e+02, 1.57423891e+02,
1.18782949e+02, 8.93775619e+01, 6.70646782e+01, 5.01822496e+01,
3.74453029e+01, 2.78634899e+01, 2.06759091e+01, 1.52997613e+01,
1.12900441e+01, 8.30802056e+00, 6.09663825e+00, 4.46143151e+00,
3.25573445e+00, 2.36927057e+00, 1.71937768e+00, 1.24428209e+00,
8.97960753e-01, 6.46229533e-01, 4.63774844e-01, 3.31908607e-01,
2.36875847e-01, 1.68583082e-01, 1.19645987e-01, 8.46785130e-02,
5.97639441e-02, 4.20626102e-02, 2.95218880e-02, 2.06625053e-02,
1.44215774e-02, 1.00376835e-02, 6.96698966e-03, 4.82222839e-03,
3.32844455e-03, 2.29100384e-03, 1.57253836e-03, 1.07638496e-03,
7.34725192e-04, 5.00118803e-04, 3.39478579e-04, 2.29796023e-04,
1.55118494e-04, 1.04418054e-04, 7.00936293e-05, 4.69215599e-05,
3.13225618e-05, 2.08512958e-05, 1.38420293e-05, 9.16341635e-06,
6.04931243e-06, 3.98240616e-06, 2.61442403e-06, 1.71158094e-06,
1.11740291e-06, 7.27466663e-07, 4.72288459e-07, 3.05768337e-07,
1.97409764e-07, 1.27097113e-07, 8.16006625e-08, 5.22447462e-08,
3.33566557e-08, 2.12379856e-08, 1.34845073e-08, 8.53783546e-09,
5.39077768e-09, 3.39426700e-09, 2.13123590e-09, 1.33446745e-09,
8.33250120e-10, 5.18840330e-10, 3.22168451e-10, 1.99490965e-10,
1.23184026e-10, 7.58536523e-11, 4.65789334e-11, 2.85228898e-11,
1.74176054e-11, 1.06065541e-11, 6.44096762e-12, 3.90048723e-12,
2.35546983e-12, 1.41849291e-12, 8.51859040e-13, 5.10151587e-13,
3.04664385e-13, 1.81440851e-13, 1.07755489e-13, 6.38167480e-14,
3.76895435e-14, 2.21971913e-14, 1.30366532e-14, 7.63528304e-15,
4.45938645e-15, 2.59726354e-15, 1.50850887e-15, 8.73716742e-16,
5.04643156e-16, 2.90662535e-16, 1.66949325e-16, 9.56249495e-17,
5.46196245e-17, 3.11112271e-17, 1.76716261e-17, 1.00098328e-17,
5.65415979e-18, 3.18493278e-18, 1.78905381e-18, 1.00216095e-18,
5.59812369e-19, 3.11844755e-19, 1.73230890e-19, 9.59628577e-20,
5.30117263e-20, 2.92032820e-20, 1.60428794e-20, 8.78868529e-21,
4.80127354e-21, 2.61565178e-21, 1.42100086e-21, 7.69838628e-22,
4.15906776e-22, 2.24069752e-22, 1.20381960e-22, 6.44956657e-23,
3.44580414e-23, 1.83586857e-23, 9.75401739e-24, 5.16792741e-24,
2.73048770e-24, 1.43864945e-24, 7.55893629e-25, 3.96056664e-25,
2.06940220e-25, 1.07825983e-25, 5.60264221e-26, 2.90304181e-26,
1.50004619e-26, 7.72942015e-27, 3.97173384e-27, 2.03518691e-27,
1.03996663e-27, 5.29938470e-28, 2.69291367e-28, 1.36461567e-28,
6.89587245e-29, 3.47503373e-29, 1.74630368e-29, 8.75127749e-30,
4.37334844e-30, 2.17945370e-30, 1.08310897e-30, 5.36769215e-31,
2.65273573e-31, 1.30734832e-31, 6.42509541e-32, 3.14889942e-32,
1.53896569e-32, 7.50049672e-33, 3.64537369e-33, 1.76679037e-33,
8.53923436e-34, 4.11570068e-34, 1.97815160e-34, 9.48126538e-35,
4.53172944e-35, 2.15999420e-35, 1.02667299e-35, 4.86634199e-36,
2.30019184e-36, 1.08421754e-36, 5.09635583e-37, 2.38887814e-37,
1.11665545e-37, 5.20517484e-38, 2.41959342e-38, 1.12160622e-38,
5.18476843e-39, 2.39006250e-39, 1.09870245e-39, 5.03665111e-40,
2.30247320e-40, 1.04963484e-40, 4.77169675e-41, 2.16320845e-41,
9.77945940e-42, 4.40881895e-42, 1.98207746e-42, 8.88607389e-43,
3.97274013e-43, 1.77117444e-43, 7.87450847e-44, 3.49121434e-44,
1.54354933e-44, 6.80542813e-45, 2.99213601e-45, 1.31189220e-45,
5.73595732e-46, 2.50094771e-46, 1.08741233e-46, 4.71492549e-47,
2.03866729e-47, 8.79040364e-48, 3.77974255e-48, 1.62071467e-48,
6.93013739e-49, 2.95507201e-49, 1.25656579e-49, 5.32835724e-50,
2.25316179e-50, 9.50128538e-51, 3.99542780e-51, 1.67546420e-51,
7.00644887e-52, 2.92180819e-52, 1.21505626e-52, 5.03885678e-53,
2.08381222e-53, 8.59361885e-54, 3.53414639e-54, 1.44938553e-54,
5.92753667e-55, 2.41743896e-55, 9.83167979e-56, 3.98740982e-56,
1.61266798e-56, 6.50414166e-57, 2.61592905e-57, 1.04918693e-57,
4.19634050e-58, 1.67370730e-58, 6.65701050e-59, 2.64040115e-59]]), charge=array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0.]]), density=array([1260.]), volume=array([1.]), distribution_type='discrete', radius_grid=None)
GasData(name=['Glycerol'], molar_mass=array([0.09209382]), concentration=array([[2.53538153e-05]]), partitioning=array([ True]))
EnvironmentData(temperature=array([298.15]), pressure=array([101325.]), saturation_ratio=array([[0.01]]))
Evaluate a rate without advancing the state
Section titled “Evaluate a rate without advancing the state”CondensationIsothermal combines vapor pressure, ideal activity, surface
curvature, transport parameters, and an explicit gas-to-particle species map.
The map connects the glycerol gas lane to the glycerol particle material.
MassCondensation wraps that strategy for native aerosol state.
The call below uses rate(aerosol). Its output retains box, particle-slot,
and material axes, even with one box and one material. For this binned
population, entries are contributions to mass-density change in kg m⁻³ s⁻¹,
including each bin’s number concentration. They are not individual-particle
rates in kg s⁻¹. Summing over slots would give the population rate; the printed
mean is only an average of bin contributions.
Positive entries indicate uptake and negative entries evaporation. The pressure driving force is described in the condensation equations. The figure shows the initial PMF, not a growth trajectory.
Python · section 3
# define the condensation processcondensation_isothermal = par.dynamics.CondensationIsothermal( molar_mass=glycerol_gas.molar_mass, activity_strategy=par.particles.ActivityIdealMass(), surface_strategy=par.particles.SurfaceStrategyVolume(density=1260.0), vapor_pressure_strategy=vapor_pressure_strategy, species_map=CondensationSpeciesMap(("Glycerol",), ((0, 0),)), diffusion_coefficient=2e-5, accommodation_coefficient=0.1, # makes things go slower/faster)condensation_process = par.dynamics.MassCondensation( condensation_strategy=condensation_isothermal)print(f"Strategy: {condensation_isothermal}")print(f"Runnable: {condensation_process}")Strategy: <particula.dynamics.condensation.condensation_strategies.CondensationIsothermal object at 0x7f365d6a2ff0>
Runnable: <particula.dynamics.particle_process.MassCondensation object at 0x7f365dde0200>
Python · section 4
# Get the initial state for plottinginitial_radii = aerosol.particles.radii[0].copy()initial_concentration = aerosol.particles.slot_concentration_density[0].copy()
# Calculate the condensation rate (mass change per particle per second)rate = condensation_process.rate(aerosol)# Runnable results retain (boxes, slots, particle species), even for B=1.print(f"Condensation rate shape: {rate.shape}")print(f"Mean rate: {np.mean(rate):.2e} kg/m^3/s per slot")Condensation rate shape: (1, 500, 1)
Mean rate: -2.52e-07 kg/m^3/s per slot
Python · section 5
# Plot the initial particle distributionfig, ax = plt.subplots(figsize=(8, 6))ax.semilogx( initial_radii * 1e9, initial_concentration, label="Initial PMF", linewidth=2,)ax.set_xlabel("Radius (nm)")ax.set_ylabel("Concentration (1/m^3)")ax.legend()ax.set_title("Initial Particle Distribution (PMF)")ax.grid(alpha=0.3)plt.show()
Interpret the displayed state and rate
Section titled “Interpret the displayed state and rate”The initial spectrum identifies where particles are placed in radius bins. Its ordinate is bin number concentration, so it should be summed rather than integrated against radius. It cannot show growth because no timestep has run.
Use the printed signed rate to interpret the initial tendency in the chosen undersaturated environment. Neither the mean rate nor the initial PMF tells us how long evaporation takes: radii, surface pressure, and gas concentration would change during integration.
From an initial tendency to a research question
Section titled “From an initial tendency to a research question”This calculation connects a specified aerosol and vapor reservoir to an initial mass-transfer tendency. It establishes neither an equilibrium endpoint nor a numerically converged time history.
A useful next investigation is to vary the initial saturation factor and compare the rate by radius, checking where its sign changes. Keep the species map and units fixed; account for curvature before equating flat-surface saturation with zero rate for every particle. This is a proposed extension, not a scan executed here.
For an actual time history, continue to the staggered condensation example. Check gas-plus-particle inventories and timestep sensitivity separately: conservation alone does not establish trajectory accuracy.
Explore this topic: Population growth and vapor reservoirs · Condensation and evaporation