fanPressure
Description
The fanPressure is a pressure boundary condition to assign either a pressure
inlet or outlet total pressure condition for a fan. The condition sets the
static pressure from a definition of the total pressure and pressure drop as a
function of volumetric flow rate across the patch.
The non-dimensional flux is calculated as follows:
The non-dimensional flux is calculated as follows:
| Property | Description |
|---|---|
| Fan mean diameter [m] | |
| Pressure drop | |
| Rotational speed [rad/s] | |
| Mass flow rate |
The non-dimensional table should be given as .
The condition sets the static pressure at the patch based on a specification of the total pressure, , and pressure drop, , specified as a function of the volumetric flow rate.
Usage
The condition requires entries in both the boundary and field files.
Boundary file
<patchName>
{
type patch;
...
}
Field file
<patchName>
{
// Mandatory entries
type fanPressure;
fanCurve <Function1<scalar>>;
direction <word>;
// Optional entries
nonDimensional <bool>;
// Conditional entries
// if 'nonDimensional' is true
rpm <Function1<scalar>>;
dm <Function1<scalar>>;
// Inherited entries;
...
}
where:
| Property | Description | Type | Required | Default |
|---|---|---|---|---|
type | Type name: fan | word | yes | - |
fanCurve | Dataset of pressure vs flow rate | Function1<scalar> | yes | - |
direction | Direction of flow through fan | word | yes | - |
nonDimensional | Flag to use non-dimensional curves | bool | no | false |
rpm | Fan rpm (for non-dimensional curve) | Function1<scalar> | conditional | - |
dm | Fan mean diameter (for non-dimensional curve) | Function1<scalar> | conditional | - |
Options for the direction entry:
| Property | Description |
|---|---|
in | Into the fan |
out | Out of the fan |
The inherited entries are elaborated in:
- For compatibility with older versions (OpenFOAM-v2006 and earlier),
a missing
fanCurvekeyword is treated as atableFileand makes thefilekeyword mandatory.
Further information
Tutorial:
Source code:
API:
History: Introduced in version 1.5