Particle-size distribution model wherein samples are given fixed values. More...
#include <fixedValue.H>


Public Member Functions | |
| TypeName ("fixedValue") | |
| Runtime type information. | |
| fixedValue (const dictionary &dict, Random &rndGen) | |
| Construct from components. | |
| fixedValue (const fixedValue &p) | |
| Copy construct. | |
| virtual autoPtr< distributionModel > | clone () const |
| Construct and return a clone. | |
| void | operator= (const fixedValue &)=delete |
| No copy assignment. | |
| virtual | ~fixedValue ()=default |
| Destructor. | |
| virtual scalar | sample () const |
| Sample the distribution. | |
| virtual scalar | minValue () const |
| Return the minimum of the distribution. | |
| virtual scalar | maxValue () const |
| Return the maximum of the distribution. | |
| virtual scalar | meanValue () const |
| Return the theoretical mean of the distribution. | |
| Public Member Functions inherited from distributionModel | |
| TypeName ("distributionModel") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, distributionModel, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen)) | |
| Declare runtime constructor selection table. | |
| distributionModel (const word &name, const dictionary &dict, Random &rndGen) | |
| Construct from dictionary. | |
| distributionModel (const distributionModel &p) | |
| Copy construct. | |
| virtual | ~distributionModel ()=default |
| Destructor. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from distributionModel | |
| static autoPtr< distributionModel > | New (const dictionary &dict, Random &rndGen) |
| Selector. | |
| Protected Member Functions inherited from distributionModel | |
| virtual void | check () const |
| Check that the distribution model is valid. | |
| Protected Attributes inherited from distributionModel | |
| const dictionary | distributionModelDict_ |
| Coefficients dictionary. | |
| Random & | rndGen_ |
| Reference to the random number generator. | |
| scalar | minValue_ |
| Minimum of the distribution. | |
| scalar | maxValue_ |
| Maximum of the distribution. | |
Particle-size distribution model wherein samples are given fixed values.
constant/<CloudProperties>: subModels
{
injectionModels
{
<name>
{
...
sizeDistribution
{
type fixedValue;
fixedValueDistribution
{
value <value>;
}
}
}
}
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
type | Type name: fixedValue | word | yes | - |
fixedValueDistribution | Distribution settings | dict | yes | - |
value | Fixed value for size | scalar | yes | - |
Definition at line 104 of file fixedValue.H.
| fixedValue | ( | const dictionary & | dict, |
| Random & | rndGen ) |
Construct from components.
Definition at line 38 of file fixedValue.C.
References dict, distributionModel::distributionModel(), distributionModel::distributionModelDict_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::nl, and rndGen.
Referenced by clone(), fixedValue(), operator=(), and TypeName().


| fixedValue | ( | const fixedValue & | p | ) |
Copy construct.
Definition at line 57 of file fixedValue.C.
References distributionModel::distributionModel(), fixedValue(), and p.

|
virtualdefault |
Destructor.
| TypeName | ( | "fixedValue" | ) |
Runtime type information.
References dict, fixedValue(), p, and rndGen.

|
inlinevirtual |
Construct and return a clone.
Implements distributionModel.
Definition at line 139 of file fixedValue.H.
References fixedValue().

|
delete |
|
virtual |
Sample the distribution.
Implements distributionModel.
|
virtual |
Return the minimum of the distribution.
Reimplemented from distributionModel.
|
virtual |
Return the maximum of the distribution.
Reimplemented from distributionModel.
|
virtual |
Return the theoretical mean of the distribution.
Implements distributionModel.