43 #ifndef fixedBlended_H 44 #define fixedBlended_H 64 const scalar blendingFactor_;
110 if (blendingFactor_ < 0 || blendingFactor_ > 1)
113 <<
"coefficient = " << blendingFactor_
114 <<
" should be >= 0 and <= 1" 119 Info<<
"fixedBlended: " << blendingFactor_
120 <<
"*" << tScheme1_().type()
121 <<
" + (1-" << blendingFactor_ <<
")*" 122 << tScheme2_().type()
147 if (blendingFactor_ < 0 || blendingFactor_ > 1)
150 <<
"coefficient = " << blendingFactor_
151 <<
" should be >= 0 and <= 1" 156 Info<<
"fixedBlended: " << blendingFactor_
157 <<
"*" << tScheme1_().type()
158 <<
" + (1-" << blendingFactor_ <<
")*" 159 << tScheme2_().type()
175 blendingFactor_*tScheme1_().weights(vf)
176 + (scalar(1) - blendingFactor_)*tScheme2_().weights(vf);
189 blendingFactor_*tScheme1_().interpolate(vf)
190 + (scalar(1) - blendingFactor_)*tScheme2_().interpolate(vf);
197 return tScheme1_().corrected() || tScheme2_().corrected();
217 + (scalar(1) - blendingFactor_)
234 (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.
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.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
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.