Particle Distributions
TODO
Functions
Cloudy.ParticleDistributions.moment
— Functionmoment(dist, q)
dist
- distribution of which the partial momentq
is takenq
- is a potentially real-valued order of the moment
Returns the q-th moment of a particle mass distribution function.
Cloudy.ParticleDistributions.get_moments
— Functionget_moments(pdist::GammaParticleDistribution{FT})
Returns the first P (0, 1, 2) moments of the distribution where P is the innate numer of prognostic moments
Cloudy.ParticleDistributions.density
— Functiondensity(dist, x)
dist
- is a particle mass distributionx
- is a point to evaluate the density ofdist
at
Returns the particle mass density evaluated at point x
.
Cloudy.ParticleDistributions.normed_density
— Functionnormed_density(dist, x)
dist
- is a particle mass distributionx
- is a point to evaluate the density ofdist
at
Returns the particle normalized mass density evaluated at point x
.
Cloudy.ParticleDistributions.nparams
— Functionnparams(dist)
dist
- is a particle mass distribution
Returns the number of settable parameters of dist.
Cloudy.ParticleDistributions.update_dist_from_moments
— Functionupdate_dist_from_moments(pdist::GammaPrimitiveParticleDistribution{FT}, moments::Tuple{FT, FT, FT})
Returns a new gamma distribution given the first three moments
update_dist_from_moments(pdist::LognormalPrimitiveParticleDistribution{FT}, moments::Tuple{FT, FT})
Returns a new lognormal distribution given the first three moments
update_dist_from_moments(pdist::ExponentialPrimitiveParticleDistribution{FT}, moments::Tuple{FT, FT})
Returns a new exponential distribution given the first two moments
update_dist_from_moments(pdist::MonodispersePrimitiveParticleDistribution{FT}, moments::Tuple{FT, FT})
Returns a new monodisperse distribution given the first two moments
Cloudy.ParticleDistributions.moment_source_helper
— Functionmomentsourcehelper(dist, p1, p2, x_threshold)
dist
- AbstractParticleDistributionp1
- power of particle massp2
- power of particle massx_threshold
- particle mass threshold
Returns ∫0^xthreshold ∫0^(xthreshold-x') x^p1 x'^p2 f(x) f(x') dx dx' for computations of the source of moments of the distribution below the given threshold xthreshold. For MonodispersePrimitiveParticleDistribution The integral can be computed analytically: ∫0^xthreshold ∫0^(xthreshold-x') x^p1 x'^p2 f(x) f(x') dx dx = n^2 * θ^(p1+p2) if θ < xthreshold/2, and equals zero otherwise. For ExponentialPrimitiveParticleDistribution and GammaPrimitiveParticleDistribution the two-dimensional integral reduces to a one-dimensional integral over incomplete gamma functions.