This source condition sets the values of the number field to recover a specified volumetric or mass flow-rate. It should be used in conjunction with a continuous injection model. More...


Public Member Functions | |
| TypeName ("flowRateNumber") | |
| Runtime type information. More... | |
| flowRateNumberLagrangianScalarFieldSource (const regIOobject &, const dictionary &dict) | |
| Construct from internal field and dictionary. More... | |
| flowRateNumberLagrangianScalarFieldSource (const flowRateNumberLagrangianScalarFieldSource &, 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 | ~flowRateNumberLagrangianScalarFieldSource () |
| 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... | |
Public Member Functions inherited from uniformSizeNumberLagrangianScalarFieldSource | |
| TypeName ("uniformSizeNumber") | |
| Runtime type information. More... | |
| uniformSizeNumberLagrangianScalarFieldSource (const regIOobject &, const dictionary &dict) | |
| Construct from internal field and dictionary. More... | |
| uniformSizeNumberLagrangianScalarFieldSource (const uniformSizeNumberLagrangianScalarFieldSource &, const regIOobject &) | |
| Copy constructor setting the internal field reference. More... | |
| virtual | ~uniformSizeNumberLagrangianScalarFieldSource () |
| Destructor. More... | |
| label | sampleQ () const |
| Return the sample size exponent. More... | |
Additional Inherited Members | |
Public Types inherited from uniformSizeNumberLagrangianScalarFieldSource | |
| enum class | uniformSize { number , surfaceArea , volume , mass } |
| Enumeration for the uniform size. More... | |
Static Public Attributes inherited from uniformSizeNumberLagrangianScalarFieldSource | |
| static const NamedEnum< uniformSize, 4 > | uniformSizeNames_ |
| Names of the uniform size. More... | |
Protected Member Functions inherited from uniformSizeNumberLagrangianScalarFieldSource | |
| void | calcSizes (const LagrangianInjection &injection, const LagrangianSubMesh &subMesh, tmp< LagrangianSubScalarField > &size, const bool needv, tmp< LagrangianSubScalarField > &v, const bool needm, tmp< LagrangianSubScalarField > &m) const |
| Calculate the necessary sizes. More... | |
This source condition sets the values of the number field to recover a specified volumetric or mass flow-rate. It should be used in conjunction with a continuous injection model.
This condition requires a uniform size to be specified. All injected parcels will have the same value of this size. The size can be number, surfaceArea, volume or mass. This choice relates to the desired discretisation of the Lagrangian material. Broadly, the uniform size chosen should be that against which the dominant effect of the Lagrangian model scales.
So, if the particles are primarily evaporating droplets of fuel, then the effect of each will be primarily a function of the mass of fuel that evaporates into the system. The uniformSize should therefore be set to mass.
But, if the model is purely dynamic, and the dominant effect is viscous drag, then each particle will exert a force in proportion with a reference area. In this case surfaceArea would be a better choice.
If a distribution of sizes is injected then the choice of uniform size interacts with how the distribution is to be sampled. For that reason, it is important to use a diameter source condition such as distributionDiameter which accounts for this, rather than the general distribution condition.
| Property | Description | Required? | Default |
|---|---|---|---|
uniformSize | The size kept uniform </td> | ||
across all parcels | yes | ||
volumetricFlowRate | The volumetric flow rate | if massFlowRate </td> | |
is not specified | |||
massFlowRate | The mass flow rate | if volumetricFlowRate </td> | |
is not specified |
Example specification:
<LagrangianModelName>
{
type flowRateNumber;
uniformSize volume; // number, surfaceArea, mass
volumetricFlowRate 1 [g/s];
}
Definition at line 123 of file flowRateNumberLagrangianScalarFieldSource.H.
| flowRateNumberLagrangianScalarFieldSource | ( | const regIOobject & | iIo, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 31 of file flowRateNumberLagrangianScalarFieldSource.C.
References dict, Foam::exit(), Foam::FatalIOError, and FatalIOErrorInFunction.
Referenced by flowRateNumberLagrangianScalarFieldSource::clone().


| flowRateNumberLagrangianScalarFieldSource | ( | const flowRateNumberLagrangianScalarFieldSource & | field, |
| const regIOobject & | iIo | ||
| ) |
Copy constructor setting the internal field reference.
Definition at line 75 of file flowRateNumberLagrangianScalarFieldSource.C.
|
virtual |
Destructor.
Definition at line 90 of file flowRateNumberLagrangianScalarFieldSource.C.
| TypeName | ( | "flowRateNumber" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting the internal field reference.
Reimplemented from uniformSizeNumberLagrangianScalarFieldSource.
Definition at line 161 of file flowRateNumberLagrangianScalarFieldSource.H.
References flowRateNumberLagrangianScalarFieldSource::flowRateNumberLagrangianScalarFieldSource().

|
virtual |
Return the value for an instantaneous injection.
Definition at line 98 of file flowRateNumberLagrangianScalarFieldSource.C.
References Foam::dimMass, Foam::dimVolume, M, Foam::sum(), and tmp< T >::valid().

|
virtual |
Write.
Reimplemented from uniformSizeNumberLagrangianScalarFieldSource.
Definition at line 143 of file flowRateNumberLagrangianScalarFieldSource.C.
References uniformSizeNumberLagrangianScalarFieldSource::write(), and Foam::writeEntry().
