Go to the documentation of this file.
47 <<
"Constructing limitedSurfaceInterpolationScheme<Type>" <<
endl;
53 <<
"Discretisation scheme not specified"
55 <<
"Valid schemes are :" <<
endl
56 << MeshConstructorTablePtr_->sortedToc()
60 const word schemeName(schemeData);
62 auto cstrIter = MeshConstructorTablePtr_->cfind(schemeName);
64 if (!cstrIter.found())
71 *MeshConstructorTablePtr_
75 return cstrIter()(
mesh, schemeData);
91 <<
"Constructing limitedSurfaceInterpolationScheme<Type>"
98 <<
"Discretisation scheme not specified"
100 <<
"Valid schemes are :" <<
endl
101 << MeshConstructorTablePtr_->sortedToc()
105 const word schemeName(schemeData);
107 auto cstrIter = MeshFluxConstructorTablePtr_->cfind(schemeName);
109 if (!cstrIter.found())
116 *MeshFluxConstructorTablePtr_
120 return cstrIter()(
mesh, faceFlux, schemeData);
156 surfaceScalarField::Boundary& bWeights =
164 const scalarField& pFaceFlux = faceFlux_.boundaryField()[patchi];
187 this->
mesh().surfaceInterpolation::weights(),
int debug
Static debugging option.
#define InfoInFunction
Report an information message using Foam::Info.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static tmp< limitedSurfaceInterpolationScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
bool eof() const
Return true if end of input seen.
virtual ~limitedSurfaceInterpolationScheme()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar pos0(const dimensionedScalar &ds)
#define forAll(list, i)
Loop across all elements in list.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > flux(const GeometricField< Type, fvPatchField, volMesh > &) const
Return the interpolation weighting factors.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
tmp< surfaceScalarField > weights(const GeometricField< Type, fvPatchField, volMesh > &, const surfaceScalarField &CDweights, tmp< surfaceScalarField > tLimiter) const
Return the interpolation weighting factors for the given field,.
A face is a list of labels corresponding to mesh vertices.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
tmp< areaScalarField > limiter(const areaScalarField &phi)
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
const Boundary & boundaryField() const
Return const-reference to the boundary field.