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

opcsim.OPC¶

class opcsim.OPC(wl, bins=None, n_bins=5, dmin=0.5, dmax=2.5, theta=30.0, 90.0, **kwargs)¶

Define an Optical Particle Counter (OPC) with unique properties for wavelength, bins, and viewing angle.

__init__(self, wl, bins=None, n_bins=5, dmin=0.5, dmax=2.5, theta=(30.0, 90.0), \*\*kwargs)¶
Parameters
wl: float

The laser wavelength in units of microns.

bins: 3xn array

An array of bin diameters containing the (left boundary, midpoint, right boundary).

n_bins: int

The number of desired bins. This should be used with dmin and dmax to generate a 3xn array of bins.

dmin: float

The left-most bin boundary of the OPC.

dmax: float

The right-most bin boundary of the OPC.

theta: tuple of floats

The viewing range in units of degrees.

Returns
OPC:

An instance of the OPC class.

Examples

Initialize an OPC with 5 bins between 0.5 - 2.5 microns.

>>> opc = opcsim.OPC(wl=0.658, n_bins=5, dmin=0.5, dmax=2.5, theta=(30., 90.))

Initialize an OPC with known bins as defined by its bin boundaries.

>>> opc = opcsim.OPC(wl=0.658, bins=[0.38, 0.54, 0.78, 1.05, 1.5, 2.5], theta=(32., 88.))

Methods

__init__(self, wl[, bins, n_bins, dmin, …])

Parameters

calibrate(self, material[, method, mie_kws, …])

Calibrate the OPC assuming a specific material.

evaluate(self, distribution[, rh])

Return the total number of particles in each bin for a given AerosolDistribution.

histogram(self, distribution[, weight, base, rh])

Return a histogram containing the [weight] of particles in each OPC bin.

integrate(self, distribution[, dmin, dmax, …])

Integrate the distribution according to the OPC for any [weight].

Attributes

ddp

Bin width in microns

dlogdp

Log-weighted bin width in microns

midpoints

Bin midpoints in microns

Back to top

Source

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