Go to the documentation of this file.
56 refCast<const fv::gaussConvectionScheme<Type> >(cs());
64 << interpScheme.typeName <<
" is not a blended scheme"
70 refCast<const blendedSchemeBase<Type> >(interpScheme);
84 label nCellsScheme1 = 0;
85 label nCellsScheme2 = 0;
86 label nCellsBlended = 0;
89 scalar i = indicator[cellI];
111 <<
" scheme 1 cells : " << nCellsScheme1 <<
nl
112 <<
" scheme 2 cells : " << nCellsScheme2 <<
nl
113 <<
" blended cells : " << nCellsBlended <<
nl
tmp< GeometricField< Type, fvPatchField, volMesh > > cellReduce(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf, const CombineOp &cop, const Type &nullValue)
A class for handling words, derived from string.
const surfaceInterpolationScheme< Type > & interpScheme() const
Switch log_
Switch to send output to Info as well as to file.
scalar tolerance_
Tolerance used when calculating the number of blended cells.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
const Time & time() const
Return time.
static tmp< convectionScheme< Type > > New(const fvMesh &mesh, const surfaceScalarField &faceFlux, Istream &schemeData)
Return a pointer to a new convectionScheme created on freestore.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
Basic second-order convection using face-gradients and Gauss' theorem.
word resultName_
Result field name.
OFstream & file()
Return access to the file (if only 1)
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const objectRegistry & obr_
Reference to the database.
Mesh data needed to do the Finite Volume discretisation.
word fieldName_
Field name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void correctBoundaryConditions()
Correct boundary field.
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
virtual tmp< surfaceScalarField > blendingFactor(const GeometricField< Type, fvPatchField, volMesh > &vf) const =0
Return the face-based blending factor.
Abstract base class for surface interpolation schemes.
word phiName_
Name of flux field, default is "phi".
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
void calc()
Calculate the blending factor.
Generic GeometricField class.
Construct a volume field from a surface field using a combine operator.
Base class for blended schemes to provide access to the blending factor surface field.