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)
A class for managing temporary objects.
virtual bool corrected() const
Ostream & endl(Ostream &os)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Mesh data needed to do the Finite Volume discretisation.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf) const
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &vf) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Two-scheme fixed-blending differencing scheme.
Abstract base class for surface interpolation schemes.
const fvMesh & mesh() const
#define FatalIOErrorInFunction(ios)
Generic GeometricField class.