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


This boundary condition provides a turbulent kinetic energy condition, based on user-supplied turbulence intensity, defined as a fraction of the mean velocity:
where
| = | kinetic energy at the patch |
| = | turbulence intensity |
| = | velocity field |
In the event of reverse flow, a zero-gradient condition is applied.
| Property | Description | Required | Default value |
|---|---|---|---|
intensity | fraction of mean field [0-1] | yes | |
U | velocity field name | no | U |
phi | flux field name | no | phi |
Example of the boundary condition specification:
<patchName>
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05; // 5% turbulence
value uniform 1; // placeholder
}Definition at line 118 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.H.
| turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 32 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
Referenced by turbulentIntensityKineticEnergyInletFvPatchScalarField::clone().

| turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 62 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, p, and Foam::foamVersion::patch.

| turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const turbulentIntensityKineticEnergyInletFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
turbulentIntensityKineticEnergyInletFvPatchScalarField onto a new patch
Definition at line 48 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
| turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const turbulentIntensityKineticEnergyInletFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 96 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
| turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const turbulentIntensityKineticEnergyInletFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 108 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
| TypeName | ( | "turbulentIntensityKineticEnergyInlet" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 189 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.H.

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 213 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.H.

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 122 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References Foam::magSqr(), Foam::foamVersion::patch, Foam::pos0(), and Foam::sqr().

|
virtual |
Write.
Definition at line 143 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References os(), fvPatchField< scalar >::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.