Go to the documentation of this file.
43 template<
class Type,
class GType>
52 Info<<
"laplacianScheme<Type, GType>::New(const fvMesh&, Istream&) : "
53 "constructing laplacianScheme<Type, GType>"
62 ) <<
"Laplacian scheme not specified" <<
endl <<
endl
63 <<
"Valid laplacian schemes are :" <<
endl
64 << IstreamConstructorTablePtr_->sortedToc()
68 const word schemeName(schemeData);
70 typename IstreamConstructorTable::iterator cstrIter =
71 IstreamConstructorTablePtr_->find(schemeName);
73 if (cstrIter == IstreamConstructorTablePtr_->end())
78 ) <<
"Unknown laplacian scheme " << schemeName <<
nl <<
nl
79 <<
"Valid laplacian schemes are :" <<
endl
80 << IstreamConstructorTablePtr_->sortedToc()
84 return cstrIter()(
mesh, schemeData);
90 template<
class Type,
class GType>
97 template<
class Type,
class GType>
105 return fvmLaplacian(tinterpGammaScheme_().
interpolate(gamma)(), vf);
109 template<
class Type,
class GType>
117 return fvcLaplacian(tinterpGammaScheme_().
interpolate(gamma)(), vf);
static tmp< laplacianScheme< Type, GType > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new laplacianScheme created on freestore.
A class for handling words, derived from string.
A class for managing temporary objects.
bool eof() const
Return true if end of input seen.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~laplacianScheme()
Destructor.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual tmp< fvMatrix< Type > > fvmLaplacian(const GeometricField< GType, fvsPatchField, surfaceMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)=0
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcLaplacian(const GeometricField< Type, fvPatchField, volMesh > &)=0
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Generic GeometricField class.