View Issue Details

IDProjectCategoryView StatusLast Update
0004202OpenFOAMBugpublic2025-01-17 17:08
Reportermichael.mueller-wrd Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version12 
Fixed in Versiondev 
Summary0004202: documentation of fanPressure BC
DescriptionDocumentation of fanPressure BC seems to be outdated.

Output given by $> foamInfo fanPressure
( -> $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H )
'''
Description
    This boundary condition can be applied to assign either a pressure inlet
    or outlet total pressure condition for a fan.

Usage
    \table
        Property | Description | Required | Default value
        fanCurve | fan curve function | yes |
        p0 | environmental total pressure | yes |
    \endtable

    Example of the boundary condition specification:
    \verbatim
    inlet
    {
        type fanPressure;
        fanCurve table;
        fanCurveCoeffs
        {
            file "$FOAM_CASE/constant/pressureVsQ";
            format csv;
            nHeaderLine 1;
            columns (0 1);
            separator ",";
            mergeSeparators no;
            outOfBounds clamp;
            interpolationScheme linear;
        }
        direction in;
        p0 uniform 0;
        value uniform 0;
    }

    outlet
    {
        type fanPressure;
        fanCurve table;
        fanCurveCoeffs
        {
            file "$FOAM_CASE/constant/pressureVsQ";
            format csv;
            nHeaderLine 1;
            columns (0 1);
            separator ",";
            mergeSeparators no;
            outOfBounds clamp;
            interpolationScheme linear;
        }
        direction out;
        p0 uniform 0;
        value uniform 0;
    }
    \endverbatim

    The above example shows the use of a comma separated (CSV) file to specify
    the condition.

Model
    This appears to be the 'fanPressure' model of the 'derived' family.
'''

However, when using that kind of specification in 0/../p_rgh file, one will get a warning in the log file, which hints at a simpler form without the fanCurveCoeffs sub-dictionary.
'''
    Using deprecated "fanCurveCoeffs" sub-dictionary.
    Please use the simpler form
format csv;
file "$FOAM_CASE/constant/USR/pressureVsQ";
nHeaderLine 1;
columns (0 1);
separator " ";
mergeSeparators true;
'''

Anyway, both deprecated and simpler form run fine.
This is just a matter of documentation in the corresponding header...
TagsNo tags attached.

Activities

henry

2025-01-17 17:08

manager   ~0013508

Resolved by commit 80cb1c74e4e9e1769d0c12e9c6baec96817cd600

Issue History

Date Modified Username Field Change
2025-01-17 15:41 michael.mueller-wrd New Issue
2025-01-17 17:08 henry Assigned To => henry
2025-01-17 17:08 henry Status new => resolved
2025-01-17 17:08 henry Resolution open => fixed
2025-01-17 17:08 henry Fixed in Version => dev
2025-01-17 17:08 henry Note Added: 0013508