This source condition provides a turbulence dissipation, (epsilon), based on a specified mixing length. The source values are calculated using: More...
Public Member Functions | |
TypeName ("turbulentMixingLengthDissipationRate") | |
Runtime type information. More... | |
turbulentMixingLengthDissipationRateFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict) | |
Construct from internal field and dictionary. More... | |
turbulentMixingLengthDissipationRateFvScalarFieldSource (const turbulentMixingLengthDissipationRateFvScalarFieldSource &, 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 | ~turbulentMixingLengthDissipationRateFvScalarFieldSource () |
Destructor. More... | |
virtual tmp< scalarField > | sourceValue (const fvSource &) const |
Return the source value. More... | |
virtual tmp< scalarField > | internalCoeff (const fvSource &) const |
Return the internal coefficient. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
This source condition provides a turbulence dissipation, (epsilon), based on a specified mixing length. The source values are calculated using:
where
= | epsilon values | |
= | Model coefficient, set to 0.09 | |
= | turbulence kinetic energy | |
= | length scale |
In the case of a sink, the current cell values are used instead.
Property | Description | Required | Default value |
---|---|---|---|
mixingLength | Length scale [m] | yes | |
k | turbulence kinetic energy field name | no | k |
Example of the source condition specification:
<patchName> { type turbulentMixingLengthDissipationRate; mixingLength 0.005; }
Definition at line 112 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.H.
turbulentMixingLengthDissipationRateFvScalarFieldSource | ( | const DimensionedField< scalar, volMesh > & | iF, |
const dictionary & | dict | ||
) |
Construct from internal field and dictionary.
Definition at line 34 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.C.
turbulentMixingLengthDissipationRateFvScalarFieldSource | ( | const turbulentMixingLengthDissipationRateFvScalarFieldSource & | field, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 47 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.C.
Destructor.
Definition at line 62 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.C.
TypeName | ( | "turbulentMixingLengthDissipationRate" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 150 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.H.
|
virtual |
Return the source value.
Definition at line 70 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.C.
References momentumTransportModel::coeffDict(), dictionary::lookupOrDefault(), Foam::pow(), and Foam::sqrt().
|
virtual |
Return the internal coefficient.
Definition at line 90 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.C.
References Foam::name(), fvSource::nCells(), Foam::neg0(), and fvSource::source().
|
virtual |
Write.
Definition at line 101 of file turbulentMixingLengthDissipationRateFvScalarFieldSource.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().