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_)
TypeName("fixedBlended")
Runtime type information.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the explicit correction to the face-interpolate.
Two-scheme fixed-blending differencing scheme.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & mesh() const
Return mesh reference.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the face-interpolate of the given cell field.
static tmp< surfaceInterpolationScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for managing temporary objects.
Abstract base class for surface interpolation schemes.
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the interpolation weighting factors.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...