This source condition provides a turbulent kinetic energy based on user-supplied turbulence intensity, defined as a fraction of the mean velocity: More...


Public Member Functions | |
| TypeName ("turbulentIntensityKineticEnergy") | |
| Runtime type information. More... | |
| turbulentIntensityKineticEnergyFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict) | |
| Construct from internal field and dictionary. More... | |
| turbulentIntensityKineticEnergyFvScalarFieldSource (const turbulentIntensityKineticEnergyFvScalarFieldSource &, const DimensionedField< scalar, volMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual autoPtr< fvScalarFieldSource > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| virtual | ~turbulentIntensityKineticEnergyFvScalarFieldSource () |
| Destructor. More... | |
| virtual tmp< DimensionedField< scalar, volMesh > > | sourceValue (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const |
| Return the source value. More... | |
| virtual tmp< scalarField > | sourceValue (const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Return the source value. More... | |
| virtual tmp< DimensionedField< scalar, volMesh > > | internalCoeff (const fvSource &model, const DimensionedField< scalar, volMesh > &source) const |
| Return the internal coefficient. More... | |
| virtual tmp< scalarField > | internalCoeff (const fvSource &model, const scalarField &source, const labelUList &cells) const |
| Return the internal coefficient. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
This source condition provides a turbulent kinetic energy based on user-supplied turbulence intensity, defined as a fraction of the mean velocity:
where
| = | kinetic energy values | |
| = | turbulence intensity | |
| = | velocity field |
In the case of a sink, the current cell values are used instead.
| Property | Description | Required | Default value |
|---|---|---|---|
intensity | fraction of mean field [0-1] | yes | |
U | velocity field name | no | U |
Example of the boundary condition specification:
<sourceName>
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05; // 5% turbulence
}Definition at line 107 of file turbulentIntensityKineticEnergyFvScalarFieldSource.H.
| turbulentIntensityKineticEnergyFvScalarFieldSource | ( | const DimensionedField< scalar, volMesh > & | iF, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 33 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
| turbulentIntensityKineticEnergyFvScalarFieldSource | ( | const turbulentIntensityKineticEnergyFvScalarFieldSource & | field, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 46 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
|
virtual |
Destructor.
Definition at line 61 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
| TypeName | ( | "turbulentIntensityKineticEnergy" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 145 of file turbulentIntensityKineticEnergyFvScalarFieldSource.H.
|
virtual |
Return the source value.
Definition at line 69 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
References Foam::magSqr(), and Foam::sqr().

|
virtual |
Return the source value.
Definition at line 83 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
References cells, Foam::magSqr(), and Foam::sqr().

|
virtual |
Return the internal coefficient.
Definition at line 98 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
References Foam::neg0().

|
virtual |
Return the internal coefficient.
Definition at line 109 of file turbulentIntensityKineticEnergyFvScalarFieldSource.C.
References Foam::neg0().

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