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");
257 virtual void write(Ostream&)
const;
virtual void write(Ostream &) const
Write.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &f1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
TypeName("pressurePIDControlInletVelocity")
Runtime type information.
pressurePIDControlInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
const wordList area
Standard area field types (scalar, vector, tensor, etc)
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This boundary condition tries to generate an inlet velocity that maintains a specified pressure drop ...
A class for managing temporary objects.