Go to the documentation of this file.
41 inletOutletFvPatchScalarField(
p, iF),
45 this->refValue() = 0.0;
46 this->refGrad() = 0.0;
47 this->valueFraction() = 0.0;
59 inletOutletFvPatchScalarField(ptf,
p, iF, mapper),
72 inletOutletFvPatchScalarField(
p, iF),
74 UName_(
dict.lookupOrDefault<
word>(
"U",
"U"))
76 this->phiName_ =
dict.lookupOrDefault<
word>(
"phi",
"phi");
78 if (intensity_ < 0 || intensity_ > 1)
81 <<
"Turbulence intensity should be specified as a fraction 0-1 "
82 "of the mean velocity\n"
83 " value given is " << intensity_ <<
nl
84 <<
" on patch " << this->patch().name()
92 this->refValue() = 0.0;
93 this->refGrad() = 0.0;
94 this->valueFraction() = 0.0;
103 inletOutletFvPatchScalarField(ptf),
116 inletOutletFvPatchScalarField(ptf, iF),
139 this->valueFraction() = 1.0 -
pos(phip);
141 inletOutletFvPatchScalarField::updateCoeffs();
152 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
153 writeEntryIfDifferent<word>(os,
"phi",
"phi", this->phiName_);
154 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from string.
rDeltaT dimensionedInternalField()
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
turbulentIntensityKineticEnergyInletFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
errorManipArg< error, int > exit(error &err, const int errNo=1)
GeometricField< vector, fvPatchField, volMesh > volVectorField
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
volScalarField scalarField(fieldObject, mesh)
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
scalar intensity_
Turbulent intensity as fraction of mean velocity.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void write(Ostream &) const
Write.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
This boundary condition provides a turbulent kinetic energy condition, based on user-supplied turbule...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
word UName_
Name of the velocity field.
dimensionedScalar pos(const dimensionedScalar &ds)