ENH: blendingFactor function object - suppress warning and correct docs. Fixes #359

This commit is contained in:
Andrew Heather
2016-12-21 08:12:46 +00:00
parent a807d1e18e
commit 33811401d6
2 changed files with 5 additions and 3 deletions

View File

@ -35,7 +35,9 @@ Description
The weight of a blended scheme is given by a function of the blending The weight of a blended scheme is given by a function of the blending
factor, f: factor, f:
weight = f*scheme1 + (1 - f)*scheme2 \[f
weight = f scheme1 + (1 - f) scheme2
\f]
The factor is a face-based quantity, which is converted to a cell-based The factor is a face-based quantity, which is converted to a cell-based
quantity by assigning the minimum blending factor for any cell face. quantity by assigning the minimum blending factor for any cell face.
@ -60,7 +62,7 @@ Usage
... ...
// Name of field // Name of field
fieldName U; field U;
} }
\endverbatim \endverbatim

View File

@ -86,7 +86,7 @@ bool Foam::functionObjects::blendingFactor::calcScheme()
{ {
typedef GeometricField<Type, fvPatchField, volMesh> FieldType; typedef GeometricField<Type, fvPatchField, volMesh> FieldType;
if (!foundObject<FieldType>(fieldName_)) if (!foundObject<FieldType>(fieldName_, false))
{ {
return false; return false;
} }