Particle-size distribution model wherein samples are given fixed values. More...
Public Member Functions | |
TypeName ("fixedValue") | |
Runtime type information. More... | |
fixedValue (const dictionary &dict, Random &rndGen) | |
Construct from components. More... | |
fixedValue (const fixedValue &p) | |
Copy construct. More... | |
virtual autoPtr< distributionModel > | clone () const |
Construct and return a clone. More... | |
void | operator= (const fixedValue &)=delete |
No copy assignment. More... | |
virtual | ~fixedValue ()=default |
Destructor. More... | |
virtual scalar | sample () const |
Sample the distribution. More... | |
virtual scalar | minValue () const |
Return the minimum of the distribution. More... | |
virtual scalar | maxValue () const |
Return the maximum of 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... | |
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 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 39 of file fixedValue.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Referenced by fixedValue::clone().
fixedValue | ( | const fixedValue & | p | ) |
Copy construct.
Definition at line 57 of file fixedValue.C.
|
virtualdefault |
Destructor.
TypeName | ( | "fixedValue" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements distributionModel.
Definition at line 139 of file fixedValue.H.
References fixedValue::fixedValue().
|
delete |
No copy assignment.
|
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.