opcsim 0.5.0
  • API
  • Tutorial
  • Gallery
  • Site
      • Installation
      • Contributing
      • API reference
      • Tutorial
      • Example gallery
  • Page
      • opcsim.AerosolDistribution.cdf

opcsim.AerosolDistribution.cdf¶

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.

Parameters
dminfloat

The minimum particle diameter in the integration (um)

dmaxfloat

The maximum particle diameter in the integration (um)

weight{‘number’ | ‘surface’ | ‘volume’ | ‘mass’}

Choose how to weight the pdf. Default is number

modestring or None

Choose to only evaluate the pdf for a single mode of the entire distribution. If set to None, the entire distribution will be evaluated.

rh: float: optional

The relative humidity as a percentage (0-100). Default is 0.

rho: float: optional

The particle density. If set, this will override the density set for individual modes.

Returns
float

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')

Back to top

Source

© Copyright 2016-2020, David H Hagan and Jesse H Kroll.
Created using Sphinx 3.0.3.