View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004202 | OpenFOAM | Bug | public | 2025-01-17 15:41 | 2025-01-17 17:08 |
Reporter | michael.mueller-wrd | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Other | OS Version | (please specify) |
Product Version | 12 | ||||
Fixed in Version | dev | ||||
Summary | 0004202: documentation of fanPressure BC | ||||
Description | Documentation 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... | ||||
Tags | No tags attached. | ||||
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 |