mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: blendingFactor function object - suppress warning and correct docs. Fixes #359
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user