PDF#

class ansys.chemkin.core.particles.PDF(core_wt: float, bulk_density: float)#

Object representing the population density function (PDF) of aerosols.

Overview#

class_to_volume

Convert size class to particle volume.

volume_to_class

Convert particle volume to size class.

class_to_diameter

Convert particle class to particle diameter.

diameter_to_class

Convert particle diameter to particle class.

set_moments

Calculate the key properties of the PDF from the moments values.

get_gamma_pdf

Reconstruct the PDF by assuming the gamma function distribution.

get_lognormal_pdf

Reconstruct the PDF by assuming the lognormal distribution.

vol0

Get volume of the core class unit.

mean_class

Get the mean size class of the distribution.

mean_volume

Get the volume corresponding to the mean size class.

Import detail#

from ansys.chemkin.core.particles import PDF

Property detail#

property PDF.vol0: float#

Get volume of the core class unit.

property PDF.mean_class: float#

Get the mean size class of the distribution.

property PDF.mean_volume: float#

Get the volume corresponding to the mean size class.

Attribute detail#

PDF.core_molar_mass#
PDF.bulk_density#
PDF.mass_per_class#
PDF.vol_per_class#
PDF.m0 = 0.0#
PDF.mean = 0.0#
PDF.variance = 0.0#
PDF.std_dev = 0.0#
PDF.mean_shifted = 0.0#
PDF.x_min = 0.0#

Method detail#

PDF.class_to_volume(x: float) → float#

Convert size class to particle volume.

PDF.volume_to_class(v: float) → float#

Convert particle volume to size class.

PDF.class_to_diameter(x: float) → float#

Convert particle class to particle diameter.

PDF.diameter_to_class(diameter: float) → float#

Convert particle diameter to particle class.

PDF.set_moments(m0: float, m1: float, m2: float, x_min: float) → None#

Calculate the key properties of the PDF from the moments values.

PDF.get_gamma_pdf(samples: int = 1000, limit: float = 5.0, mode: str = 'class') → tuple[numpy.typing.NDArray[numpy.double], numpy.typing.NDArray[numpy.double]]#

Reconstruct the PDF by assuming the gamma function distribution.

PDF.get_lognormal_pdf(samples: int = 1000, limit: float = 5.0, mode: str = 'class') → tuple[numpy.typing.NDArray[numpy.double], numpy.typing.NDArray[numpy.double]]#

Reconstruct the PDF by assuming the lognormal distribution.