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) - bf)*tScheme2_().weights(vf);
291 bf*tScheme1_().interpolate(vf)
292 + (scalar(1) - bf)*tScheme2_().interpolate(vf);
299 return tScheme1_().corrected() || tScheme2_().corrected();
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField...
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual tmp< surfaceScalarField > blendingFactor(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the face-based blending factor.
TypeName("cellCoBlended")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual bool corrected() const
Return true if this scheme uses an explicit correction.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const fvMesh & mesh() const
Return mesh reference.
const Time & time() const
Return the top-level database.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > correction(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the explicit correction to the face-interpolate.
const dimensionSet & dimensions() const
Return dimensions.
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.
scalar deltaTValue() const
Return time step value.
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 successful.
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.
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.
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
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Abstract base class for surface interpolation schemes.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf) const
Return the face-interpolate of the given cell field.
Two-scheme cell-based Courant number based blending differencing scheme.
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity