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