Particle-size distribution model wherein random samples are drawn from the doubly-truncated univariate normal probability density function: More...
Public Member Functions | |
TypeName ("normal") | |
normal (const dictionary &dict, Random &rndGen) | |
normal (const normal &p) | |
virtual autoPtr< distributionModel > | clone () const |
void | operator= (const normal &)=delete |
virtual | ~normal ()=default |
virtual scalar | sample () const |
virtual scalar | meanValue () const |
![]() | |
TypeName ("distributionModel") | |
declareRunTimeSelectionTable (autoPtr, distributionModel, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen)) | |
distributionModel (const word &name, const dictionary &dict, Random &rndGen) | |
distributionModel (const distributionModel &p) | |
virtual | ~distributionModel ()=default |
virtual scalar | minValue () const |
virtual scalar | maxValue () const |
Additional Inherited Members | |
![]() | |
static autoPtr< distributionModel > | New (const dictionary &dict, Random &rndGen) |
![]() | |
virtual void | check () const |
![]() | |
const dictionary | distributionModelDict_ |
Random & | rndGen_ |
scalar | minValue_ |
scalar | maxValue_ |
Particle-size distribution model wherein random samples are drawn from the doubly-truncated univariate normal probability density function:
where
![]() | = | Doubly-truncated univariate normal distribution |
![]() | = | Mean of the parent general normal distribution |
![]() | = | Standard deviation of the parent general normal distribution |
![]() | = | General normal probability density function |
![]() | = | General normal cumulative distribution function |
![]() | = | Sample |
![]() | = | Minimum of the distribution |
![]() | = | Maximum of the distribution |
Constraints:
Random samples are generated by the inverse transform sampling technique by using the quantile function of the doubly-truncated univariate normal probability density function:
with
where is sample drawn from the uniform probability density function on the unit interval
.
Reference:
Governing expressions (tag:B): Burkardt, J. (2014). The truncated normal distribution. Department of Scientific Computing Website, Florida State University, 1-35. URL:people.sc.fsu.edu/~jburkardt/presentations/truncated_normal.pdf (Retrieved on: 19 Feb 2021)
constant/<CloudProperties>
: subModels { injectionModels { <name> { ... sizeDistribution { type normal; normalDistribution { mu <mean>; sigma <stardard deviation>; minValue <min>; maxValue <max>; } } } } }
where the entries mean:
Property | Description | Type | Reqd | Deflt |
---|---|---|---|---|
type | Type name: normal | word | yes | - |
normalDistribution | Distribution settings | dict | yes | - |
mu | Mean of the parent general normal distribution | scalar | yes | - |
sigma | Standard deviation of the parent general normal distribution | scalar | yes | - |
minValue | Minimum of the distribution | scalar | yes | - |
maxValue | Maximum of the distribution | scalar | yes | - |
normal | ( | const dictionary & | dict, |
Random & | rndGen | ||
) |
Definition at line 41 of file normal.C.
Referenced by normal::clone().
|
virtualdefault |
TypeName | ( | "normal" | ) |
|
inlinevirtual |
Implements distributionModel.
Definition at line 272 of file normal.H.
References normal::normal().
|
delete |
|
virtual |
Implements distributionModel.
Definition at line 86 of file normal.C.
References Foam::constant::physicoChemical::b, Foam::erf(), Foam::Math::erfInv(), Foam::max(), Foam::min(), p, Foam::sqrt(), and x.
|
virtual |
Implements distributionModel.
Definition at line 108 of file normal.C.
References Foam::constant::physicoChemical::b, Foam::erf(), Foam::exp(), Foam::constant::mathematical::pi(), Foam::sqr(), and Foam::sqrt().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.