Go to the documentation of this file.
100 #ifndef pressurePIDControlInletVelocityFvPatchVectorField_H
101 #define pressurePIDControlInletVelocityFvPatchVectorField_H
114 class pressurePIDControlInletVelocityFvPatchVectorField
116 public fixedValueFvPatchVectorField
121 const word upstreamName_;
124 const word downstreamName_;
127 const scalar deltaP_;
130 const scalar shapeFactor_;
157 scalar errorIntegral_;
166 scalar oldErrorIntegral_;
178 template <
class Type>
191 TypeName(
"pressurePIDControlInletVelocity");
270 virtual void write(Ostream&)
const;
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
virtual tmp< fvPatchVectorField > clone() const
Construct and return a clone.
pressurePIDControlInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
TypeName("pressurePIDControlInletVelocity")
Runtime type information.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const wordList area
Standard area field types (scalar, vector, tensor, etc)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
This boundary condition tries to generate an inlet velocity that maintains a specified pressure drop ...
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...