Go to the documentation of this file.
48 #ifndef fixedBlended_H
49 #define fixedBlended_H
69 const scalar blendingFactor_;
105 blendingFactor_(readScalar(is)),
115 if (blendingFactor_ < 0 || blendingFactor_ > 1)
118 <<
"coefficient = " << blendingFactor_
119 <<
" should be >= 0 and <= 1"
124 Info<<
"fixedBlended: " << blendingFactor_
125 <<
"*" << tScheme1_().type()
126 <<
" + (1-" << blendingFactor_ <<
")*"
127 << tScheme2_().type()
142 blendingFactor_(readScalar(is)),
152 if (blendingFactor_ < 0 || blendingFactor_ > 1)
155 <<
"coefficient = " << blendingFactor_
156 <<
" should be >= 0 and <= 1"
161 Info<<
"fixedBlended: " << blendingFactor_
162 <<
"*" << tScheme1_().type()
163 <<
" + (1-" << blendingFactor_ <<
")*"
164 << tScheme2_().type()
180 blendingFactor_*tScheme1_().weights(vf)
181 + (scalar(1) - blendingFactor_)*tScheme2_().weights(vf);
194 blendingFactor_*tScheme1_().interpolate(vf)
195 + (scalar(1) - blendingFactor_)*tScheme2_().interpolate(vf);
202 return tScheme1_().corrected() || tScheme2_().corrected();
222 + (scalar(1) - blendingFactor_)
239 (scalar(1) - blendingFactor_)
static tmp< surfaceInterpolationScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
A class for managing temporary objects.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
Ostream & endl(Ostream &os)
Add newline and flush stream.
TypeName("fixedBlended")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
Mesh data needed to do the Finite Volume discretisation.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the face-interpolate of the given cell field.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the explicit correction to the face-interpolate.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the interpolation weighting factors.
Two-scheme fixed-blending differencing scheme.
Abstract base class for surface interpolation schemes.
const fvMesh & mesh() const
Return mesh reference.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.