100#ifndef pressurePIDControlInletVelocityFvPatchVectorField_H
101#define pressurePIDControlInletVelocityFvPatchVectorField_H
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;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition tries to generate an inlet velocity that maintains a specified pressure drop ...
TypeName("pressurePIDControlInletVelocity")
Runtime type information.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
pressurePIDControlInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< fvPatchField< vector > > clone(const DimensionedField< vector, volMesh > &iF) const
Clone with an internal field reference.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &f1, const label comm)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.