43 #ifndef fixedBlended_H 44 #define fixedBlended_H 64 const scalar blendingFactor_;
103 if (blendingFactor_ < 0 || blendingFactor_ > 1)
106 <<
"coefficient = " << blendingFactor_
107 <<
" should be >= 0 and <= 1" 112 Info<<
"fixedBlended: " << blendingFactor_
113 <<
"*" << tScheme1_().type()
114 <<
" + (1-" << blendingFactor_ <<
")*" 115 << tScheme2_().type()
140 if (blendingFactor_ < 0 || blendingFactor_ > 1)
143 <<
"coefficient = " << blendingFactor_
144 <<
" should be >= 0 and <= 1" 149 Info<<
"fixedBlended: " << blendingFactor_
150 <<
"*" << tScheme1_().type()
151 <<
" + (1-" << blendingFactor_ <<
")*" 152 << tScheme2_().type()
171 blendingFactor_*tScheme1_().weights(vf)
172 + (scalar(1) - blendingFactor_)*tScheme2_().weights(vf);
185 blendingFactor_*tScheme1_().interpolate(vf)
186 + (scalar(1) - blendingFactor_)*tScheme2_().interpolate(vf);
193 return tScheme1_().corrected() || tScheme2_().corrected();
213 + (scalar(1) - blendingFactor_)
230 (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 interpolation 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.
fixedBlended(const fvMesh &mesh, Istream &is)
Construct from mesh and Istream.
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.
void operator=(const fixedBlended &)=delete
Disallow default bitwise assignment.
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.