View Issue Details

IDProjectCategoryView StatusLast Update
0000878OpenFOAMBugpublic2013-06-13 10:59
Reporteruser258Assigned Touser2 
PrioritylowSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSOpenSuseOS Version11.3
Summary0000878: mapped boundary condition: average required when setAverage false
DescriptionWhen the mapped boundary condition is used without the averaging step. Thus setting setAverage to true and omitting the average keyword, a fatal error is obtained.
--> FOAM FATAL IO ERROR:
keyword average is undefined in dictionary "./0/var::boundaryField::patch"

The problem can be solved by setting a dummy value for average, but this looks silly.
Steps To ReproduceBoundary condition

    inlet
    {
        type mapped;
        fieldName var;
        value uniform 0.001;
        setAverage false;
    average -1;
        interpolationScheme cell;
    }
Additional InformationThe keyword average is always looked up

   100 setAverage_(readBool(dict.lookup("setAverage"))),
   101 average_(pTraits<Type>(dict.lookup("average"))),

In $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.C
TagsNo tags attached.

Activities

user2

2013-06-13 10:59

  ~0002278

Thanks for the report - fixed by commit 118b7a3

Issue History

Date Modified Username Field Change
2013-06-06 13:45 user258 New Issue
2013-06-13 10:59 user2 Note Added: 0002278
2013-06-13 10:59 user2 Status new => resolved
2013-06-13 10:59 user2 Fixed in Version => 2.2.x
2013-06-13 10:59 user2 Resolution open => fixed
2013-06-13 10:59 user2 Assigned To => user2