This boundary condition provides a turbulence dissipation, (epsilon) inlet condition based on a specified mixing length. The patch values are calculated using:
More...
Private Attributes | |
scalar | mixingLength_ |
Turbulent length scale. More... | |
word | kName_ |
Name of the turbulent kinetic energy field. More... | |
This boundary condition provides a turbulence dissipation, (epsilon) inlet condition based on a specified mixing length. The patch values are calculated using:
where
![]() | = | patch epsilon values |
![]() | = | Model coefficient, set to 0.09 |
![]() | = | turbulence kinetic energy |
![]() | = | length scale |
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
mixingLength | Length scale [m] | yes | |
phi | flux field name | no | phi |
k | turbulence kinetic energy field name | no | k |
Example of the boundary condition specification:
myPatch { type turbulentMixingLengthDissipationRateInlet; mixingLength 0.005; value uniform 200; // placeholder }
Definition at line 127 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.
turbulentMixingLengthDissipationRateInletFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 42 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
turbulentMixingLengthDissipationRateInletFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 74 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
References dict, dictionary::lookupOrDefault(), fvPatchField::operator=(), and p.
turbulentMixingLengthDissipationRateInletFvPatchScalarField | ( | const turbulentMixingLengthDissipationRateInletFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
turbulentMixingLengthDissipationRateInletFvPatchScalarField onto a new patch
Definition at line 59 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
turbulentMixingLengthDissipationRateInletFvPatchScalarField | ( | const turbulentMixingLengthDissipationRateInletFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 96 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
turbulentMixingLengthDissipationRateInletFvPatchScalarField | ( | const turbulentMixingLengthDissipationRateInletFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 108 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
TypeName | ( | "turbulentMixingLengthDissipationRateInlet" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 181 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 201 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 121 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
References turbulenceModel::coeffDict(), dimensionedInternalField(), Foam::constant::atomic::group, IOobject::groupName(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::kName_, dictionary::lookupOrDefault(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::mixingLength_, Foam::pos(), Foam::pow(), turbulenceModel::propertiesName, and Foam::sqrt().
|
virtual |
Write.
Definition at line 157 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.C.
References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().
|
private |
Turbulent length scale.
Definition at line 134 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.
Referenced by turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs().
|
private |
Name of the turbulent kinetic energy field.
Definition at line 137 of file turbulentMixingLengthDissipationRateInletFvPatchScalarField.H.
Referenced by turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.