Particle-size distribution model wherein random samples are drawn from the doubly-truncated univariate normal probability density function: More...


Public Member Functions | |
| TypeName ("normal") | |
| Runtime type information. More... | |
| normal (const dictionary &dict, Random &rndGen) | |
| Construct from components. More... | |
| normal (const normal &p) | |
| Copy construct. More... | |
| virtual autoPtr< distributionModel > | clone () const |
| Construct and return a clone. More... | |
| void | operator= (const normal &)=delete |
| No copy assignment. More... | |
| virtual | ~normal ()=default |
| Destructor. More... | |
| virtual scalar | sample () const |
| Sample the distribution. More... | |
| virtual scalar | meanValue () const |
| Return the theoretical mean of the distribution. More... | |
Public Member Functions inherited from distributionModel | |
| TypeName ("distributionModel") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, distributionModel, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen)) | |
| Declare runtime constructor selection table. More... | |
| distributionModel (const word &name, const dictionary &dict, Random &rndGen) | |
| Construct from dictionary. More... | |
| distributionModel (const distributionModel &p) | |
| Copy construct. More... | |
| virtual | ~distributionModel ()=default |
| Destructor. More... | |
| virtual scalar | minValue () const |
| Return the minimum of the distribution. More... | |
| virtual scalar | maxValue () const |
| Return the maximum of the distribution. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from distributionModel | |
| static autoPtr< distributionModel > | New (const dictionary &dict, Random &rndGen) |
| Selector. More... | |
Protected Member Functions inherited from distributionModel | |
| virtual void | check () const |
| Check that the distribution model is valid. More... | |
Protected Attributes inherited from distributionModel | |
| const dictionary | distributionModelDict_ |
| Coefficients dictionary. More... | |
| Random & | rndGen_ |
| Reference to the random number generator. More... | |
| scalar | minValue_ |
| Minimum of the distribution. More... | |
| scalar | maxValue_ |
| Maximum of the distribution. More... | |
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:

![$ x \in [B,A] $](form_411.png)

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 | ||
| ) |
Construct from components.
Definition at line 41 of file normal.C.
Referenced by normal::clone().

|
virtualdefault |
Destructor.
| TypeName | ( | "normal" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements distributionModel.
Definition at line 284 of file normal.H.
References normal::normal().

|
delete |
No copy assignment.
|
virtual |
Sample the distribution.
Implements distributionModel.
Definition at line 86 of file normal.C.
References Foam::constant::physicoChemical::b, Foam::clamp(), Foam::erf(), Foam::Math::erfInv(), p, Foam::sqrt(), and x.

|
virtual |
Return the theoretical mean of the distribution.
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().
