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

opcsim.AerosolDistribution.add_mode¶

AerosolDistribution.add_mode(self, n, gm, gsd, label=None, kappa=0.0, rho=1.0, refr=1.5 + 0j)¶

Add a mode to the distribution as defined using N, GM, and GSD. Additionally, each mode has optical and chemical properties that can be set including: the k-kohler coefficient, the density, and the refractive index.

Parameters
nfloat

Total number of particles (#/cc)

gmfloat

Median particle diameter (Geometric Mean) in units of microns.

gsdfloat

Geometric Standard Deviation

labelstring, optional

Label for the mode

kappa: float, optional

The k-kohler coefficient to describe hygroscopic growth. Default is 0.

rho: float: optional

The particle density in units of g/cm3. Default is 1.

refr: complex: optional

The complex refractive index. Default is 1.5+0i. This should be the dry refractive index. If/when the distribution is evaluated at a non-zero RH, the refractive index will be adjusted based on it’s water content at that RH using the defined kappa value.

Examples

Create a single-mode aerosol distribution with parameters N=7100, GM=11.7 nm, GSD=1.706. These are the sample parameters for the first mode of a typical Urban aerosol distribution as described in Seinfeld and Pandis (Table 8.3).

>>> d = AerosolDistribution("Urban")
>>> d.add_mode(n=7100, gm=0.0117, gsd=1.706, label="Mode 1")

We can also go ahead and add the second and third modes if we so choose:

>>> d.add_mode(n=6320, gm=0.0373, gsd=1.778, label="Mode 2")
>>> d.add_mode(n=960, gm=0.151, gsd=1.599, label="Mode 3")

Back to top

Source

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