Skip to main content

pressurePIDControlInletVelocity

Description

The pressurePIDControlInletVelocity is a velocity boundary condition that tries to generate an inlet velocity that maintains a specified pressure drop between two face zones downstream. The zones should fully span a duct through which all the inlet flow passes.

An incompressible, lossless analysis of the flow between the inlet and the two face-zones is performed. An ideal inlet velocity is thereby calculated from the user-specified pressure drop. This analysis can include the transient effect of the inlet velocity change. In this case, a shape factor is included to represent non-linearity in the duct cross section.

The average pressure drop between the two face zones is measured. The same incompressible, lossless analysis is performed using this pressure drop. The difference between the two computed velocities is considered as an error. The ideal inlet is modified so as to drive this error to zero. This is accomplished by means of a PID control algorithm, for which non-dimensional gains are specified by the user.

The shape factor takes a value of 0 for a linear change in cross sectional area between the two face zones. A value of 1 represents a step change in area at the mid-point between the zones. A smooth cubic or cosine profile between two zones with zero divergence is typically represented by a factor of between 0.2 and 0.25.

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type pressurePIDControlInletVelocity;
upstream <word>;
downstream <word>;
deltaP <scalar>;
P <scalar>;
I <scalar>;
D <scalar>;

// Optional entries
shapeFactor <scalar>;
p <word>;
phi <word>;
rho <word>;
error <scalar>;
errorIntegral <scalar>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: pressurePIDControlInletVelocitywordyes-
upstreamName of the upstream face zonewordyes-
downstreamName of the downstream face zonewordyes-
deltaPDesired pressure difference between upstream and downstreamscalaryes-
PProportional gainscalaryes-
IIntegral gainscalaryes-
DDerivative gainscalaryes-
shapeFactorNozzle shape factorscalarno0.0
phiName of flux fieldwordnophi
rhoName of density fieldwordnorho
errorErrorscalarno0.0
errorIntegralError integral wrt timescalarno0.0

The inherited entries are elaborated in:

Further information

Tutorial:

  • N/A

Source code:

API:

History: Introduced in version v3.0+