AerosolDistribution.
cdf
(self, dmax, dmin=None, weight='number', mode=None, rh=0.0, rho=None)¶Evaluate and return the cumulative probability distribution function between dmin and dmax.
Using equation _ from Seinfeld and Pandis, we can evaluate the cdf of a a multi-modal particle size distribution by summing the individual distributions. For example, evaluating the cdf over the entire size range will return the total number of particles in that size range. If weighted by surface area or volume, it will return the integrated surface area or volume respectively. By default, the calculations are based on the dry diameter of the particle (assuming RH=0); however, you can adjust the relative humidity using the rh parameter which will calculate the size based on growth per k-kohler theory using the k-kohler coefficient set for each individual mode.
The minimum particle diameter in the integration (um)
The maximum particle diameter in the integration (um)
Choose how to weight the pdf. Default is number
Choose to only evaluate the pdf for a single mode of the entire distribution. If set to None, the entire distribution will be evaluated.
The relative humidity as a percentage (0-100). Default is 0.
The particle density. If set, this will override the density set for individual modes.
The integrated distribution function representing the total number of {particles, surface area, volume} between dmin and dmax.
Examples
Evaluate the CDF between over the entire distribution:
>>> d = opcsim.load_distribution("Urban")
>>> d.cdf()
Evaluate the CDF up to 100 nm
>>> d.cdf(dmax=0.1)
Evaluate the total volume/mass under 2.5 microns
>>> d.cdf(dmax=2.5, weight='volume')