Skip to main content

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:

phi=4m˙ρπ2dm3ω phi = \frac{4 \dot{m}}{\rho \pi^2 d_m^3 \omega}

The non-dimensional flux is calculated as follows:

Ψ=2ΔPρ(πωdm) \Psi = \frac{2 \Delta P}{\rho (\pi \omega d_m)}
PropertyDescription
dmd_mFan mean diameter [m]
ΔP\Delta PPressure drop
ω\omegaRotational speed [rad/s]
m˙\dot{m}Mass flow rate

The non-dimensional table should be given as Ψ=F(ϕ)\Psi = F(\phi).

The condition sets the static pressure at the patch ppp_p based on a specification of the total pressure, p0p_0, and pressure drop, pdp_d, specified as a function of the volumetric flow rate.

pp=p0pd p_p = p_0 - p_d

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:

PropertyDescriptionTypeRequiredDefault
typeType name: fanwordyes-
fanCurveDataset of pressure vs flow rateFunction1<scalar>yes-
directionDirection of flow through fanwordyes-
nonDimensionalFlag to use non-dimensional curvesboolnofalse
rpmFan rpm (for non-dimensional curve)Function1<scalar>conditional-
dmFan mean diameter (for non-dimensional curve)Function1<scalar>conditional-

Options for the direction entry:

PropertyDescription
inInto the fan
outOut of the fan

The inherited entries are elaborated in:

  • For compatibility with older versions (OpenFOAM-v2006 and earlier), a missing fanCurve keyword is treated as a tableFile and makes the file keyword mandatory.

Further information

Tutorial:

Source code:

API:

History: Introduced in version 1.5