This boundary condition provides a turbulent kinetic energy condition, based on user-supplied turbulence intensity, defined as a fraction of the mean velocity: More...
Public Member Functions | |
TypeName ("turbulentIntensityKineticEnergyInlet") | |
Runtime type information. More... | |
turbulentIntensityKineticEnergyInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
turbulentIntensityKineticEnergyInletFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
turbulentIntensityKineticEnergyInletFvPatchScalarField (const turbulentIntensityKineticEnergyInletFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
turbulentIntensityKineticEnergyInletFvPatchScalarField (const turbulentIntensityKineticEnergyInletFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
turbulentIntensityKineticEnergyInletFvPatchScalarField (const turbulentIntensityKineticEnergyInletFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. 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 117 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.H.
turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
Referenced by turbulentIntensityKineticEnergyInletFvPatchScalarField::clone(), and turbulentIntensityKineticEnergyInletFvPatchScalarField::turbulentIntensityKineticEnergyInletFvPatchScalarField().
turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 53 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::lookupOrDefault(), Foam::nl, scalarField(), fvPatch::size(), and turbulentIntensityKineticEnergyInletFvPatchScalarField::turbulentIntensityKineticEnergyInletFvPatchScalarField().
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 87 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
turbulentIntensityKineticEnergyInletFvPatchScalarField | ( | const turbulentIntensityKineticEnergyInletFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 102 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References turbulentIntensityKineticEnergyInletFvPatchScalarField::updateCoeffs().
TypeName | ( | "turbulentIntensityKineticEnergyInlet" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 179 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.H.
References turbulentIntensityKineticEnergyInletFvPatchScalarField::turbulentIntensityKineticEnergyInletFvPatchScalarField(), turbulentIntensityKineticEnergyInletFvPatchScalarField::updateCoeffs(), and turbulentIntensityKineticEnergyInletFvPatchScalarField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 116 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References Foam::magSqr(), Foam::neg(), Foam::sqr(), and turbulentIntensityKineticEnergyInletFvPatchScalarField::write().
Referenced by turbulentIntensityKineticEnergyInletFvPatchScalarField::clone(), and turbulentIntensityKineticEnergyInletFvPatchScalarField::turbulentIntensityKineticEnergyInletFvPatchScalarField().
|
virtual |
Write.
Definition at line 137 of file turbulentIntensityKineticEnergyInletFvPatchScalarField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by turbulentIntensityKineticEnergyInletFvPatchScalarField::clone(), and turbulentIntensityKineticEnergyInletFvPatchScalarField::updateCoeffs().