97 #ifndef pressurePIDControlInletVelocityFvPatchVectorField_H
98 #define pressurePIDControlInletVelocityFvPatchVectorField_H
111 class pressurePIDControlInletVelocityFvPatchVectorField
113 public fixedValueFvPatchVectorField
118 const word upstreamName_;
121 const word downstreamName_;
124 const scalar deltaP_;
127 const scalar shapeFactor_;
154 scalar errorIntegral_;
163 scalar oldErrorIntegral_;
175 template <
class Type>
179 const GeometricField<Type, fvsPatchField, surfaceMesh>& field,
188 TypeName(
"pressurePIDControlInletVelocity");
194 pressurePIDControlInletVelocityFvPatchVectorField
197 const DimensionedField<vector, volMesh>&
201 pressurePIDControlInletVelocityFvPatchVectorField
204 const DimensionedField<vector, volMesh>&,
211 pressurePIDControlInletVelocityFvPatchVectorField
213 const pressurePIDControlInletVelocityFvPatchVectorField&,
215 const DimensionedField<vector, volMesh>&,
216 const fvPatchFieldMapper&
220 pressurePIDControlInletVelocityFvPatchVectorField
222 const pressurePIDControlInletVelocityFvPatchVectorField&
226 virtual tmp<fvPatchVectorField> clone()
const
228 return tmp<fvPatchVectorField>
230 new pressurePIDControlInletVelocityFvPatchVectorField
238 pressurePIDControlInletVelocityFvPatchVectorField
240 const pressurePIDControlInletVelocityFvPatchVectorField&,
241 const DimensionedField<vector, volMesh>&
245 virtual tmp<fvPatchVectorField> clone
247 const DimensionedField<vector, volMesh>& iF
250 return tmp<fvPatchVectorField>
252 new pressurePIDControlInletVelocityFvPatchVectorField
264 virtual void updateCoeffs();
267 virtual void write(Ostream&)
const;