70 #ifndef cellCoBlended_H 71 #define cellCoBlended_H 75 #include "surfaceInterpolate.H" 154 if (Co1_ < 0 || Co2_ < 0 || Co1_ >= Co2_)
157 <<
"coefficients = " << Co1_ <<
" and " << Co2_
158 <<
" should be > 0 and Co2 > Co1" 185 if (Co1_ < 0 || Co2_ < 0 || Co1_ >= Co2_)
188 <<
"coefficients = " << Co1_ <<
" and " << Co2_
189 <<
" should be > 0 and Co2 > Co1" 211 mesh.objectRegistry::template lookupObject<volScalarField>
219 <<
"dimensions of faceFlux are not correct" 233 extrapolatedCalculatedFvPatchScalarField::typeName
241 Co.primitiveFieldRef() =
243 Co.correctBoundaryConditions();
249 vf.
name() +
"BlendingFactor",
275 bf*tScheme1_().weights(vf)
276 + (scalar(1.0) - bf)*tScheme2_().weights(vf);
291 bf*tScheme1_().interpolate(vf)
292 + (scalar(1.0) - bf)*tScheme2_().interpolate(vf);
299 return tScheme1_().corrected() || tScheme2_().corrected();
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField...
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvMesh & mesh() const
Return mesh reference.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
TypeName("cellCoBlended")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual tmp< surfaceScalarField > blendingFactor(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the face-based blending factor.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the interpolation weighting factors.
A class for handling words, derived from string.
static tmp< surfaceInterpolationScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
Base class for blended schemes to provide access to the blending factor surface field.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
const dimensionSet & dimensions() const
Return dimensions.
scalar deltaTValue() const
Return time step value.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the explicit correction to the face-interpolate.
const dimensionSet dimDensity
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the face-interpolate of the given cell field.
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Abstract base class for surface interpolation schemes.
Two-scheme cell-based Courant number based blending differencing scheme.
const word & name() const
Return name.
const dimensionSet dimArea(sqr(dimLength))
const Time & time() const
Return the top-level database.
const dimensionSet dimVelocity