This source condition provides values of diameter randomly sampled from a given distribution. More...


Public Member Functions | |
| TypeName ("distributionDiameter") | |
| Runtime type information. More... | |
| distributionDiameterLagrangianScalarFieldSource (const regIOobject &, const dictionary &dict) | |
| Construct from internal field and dictionary. More... | |
| distributionDiameterLagrangianScalarFieldSource (const distributionDiameterLagrangianScalarFieldSource &, const regIOobject &) | |
| Copy constructor setting the internal field reference. More... | |
| virtual autoPtr< LagrangianScalarFieldSource > | clone (const regIOobject &iIo) const |
| Construct and return a clone setting the internal field reference. More... | |
| virtual | ~distributionDiameterLagrangianScalarFieldSource () |
| Destructor. More... | |
| virtual tmp< LagrangianSubScalarField > | value (const LagrangianInjection &, const LagrangianSubMesh &) const |
| Return the value for an instantaneous injection. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
This source condition provides values of diameter randomly sampled from a given distribution.
It is important to use this condition for diameter, rather than the generic distribution source condition, as this condition will account for the injection of parcels with differing numbers of particles when sampling the distribution. If the generic distribution source condition is used when injecting parcels of equal mass, for example, then the parcels containing many small particles will be over-represented in the sampling. This condition corrects for this and produces the correct distribution for whatever uniform size the number condition creates.
This condition must be used with parcel clouds and in conjunction with a condition for the number field that specifies a uniform size, such as flowRateNumber or totalNumber.
| Property | Description | Required? | Default |
|---|---|---|---|
distribution | The distribution | yes |
Example specification:
<LagrangianModelName>
{
type distributionDiameter;
distribution
{
type RosinRammler;
Q 0;
min 0.1 [mm];
max 1.5 [mm];
d 1.4 [mm];
n 2 [];
}
}Definition at line 101 of file distributionDiameterLagrangianScalarFieldSource.H.
| distributionDiameterLagrangianScalarFieldSource | ( | const regIOobject & | iIo, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 33 of file distributionDiameterLagrangianScalarFieldSource.C.
Referenced by distributionDiameterLagrangianScalarFieldSource::clone().

| distributionDiameterLagrangianScalarFieldSource | ( | const distributionDiameterLagrangianScalarFieldSource & | field, |
| const regIOobject & | iIo | ||
| ) |
Copy constructor setting the internal field reference.
Definition at line 56 of file distributionDiameterLagrangianScalarFieldSource.C.
|
virtual |
Destructor.
Definition at line 72 of file distributionDiameterLagrangianScalarFieldSource.C.
| TypeName | ( | "distributionDiameter" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting the internal field reference.
Definition at line 142 of file distributionDiameterLagrangianScalarFieldSource.H.
References distributionDiameterLagrangianScalarFieldSource::distributionDiameterLagrangianScalarFieldSource().

|
virtual |
Return the value for an instantaneous injection.
Definition at line 80 of file distributionDiameterLagrangianScalarFieldSource.C.
References LagrangianModel::name(), Foam::name(), distribution::New(), DimensionedField< Type, GeoMesh, PrimitiveField >::New(), uniformSizeNumberLagrangianScalarFieldSource::sampleQ(), LagrangianSubMesh::size(), and timeIndex.

|
virtual |
Write.
Definition at line 120 of file distributionDiameterLagrangianScalarFieldSource.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().
