43 template<
class Type,
class GType>
60 ) <<
"Laplacian scheme not specified" <<
endl <<
endl 61 <<
"Valid laplacian schemes are :" <<
endl 62 << IstreamConstructorTablePtr_->sortedToc()
66 const word schemeName(schemeData);
68 typename IstreamConstructorTable::iterator cstrIter =
69 IstreamConstructorTablePtr_->find(schemeName);
71 if (cstrIter == IstreamConstructorTablePtr_->end())
76 ) <<
"Unknown laplacian scheme " << schemeName <<
nl <<
nl 77 <<
"Valid laplacian schemes are :" <<
endl 78 << IstreamConstructorTablePtr_->sortedToc()
82 return cstrIter()(
mesh, schemeData);
88 template<
class Type,
class GType>
95 template<
class Type,
class GType>
103 return fvmLaplacian(tinterpGammaScheme_().
interpolate(gamma)(), vf);
107 template<
class Type,
class GType>
115 return fvcLaplacian(tinterpGammaScheme_().
interpolate(gamma)(), vf);
errorManipArg< error, int > exit(error &err, const int errNo=1)
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)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~laplacianScheme()
Destructor.
Generic GeometricField class.
A class for handling words, derived from string.
bool eof() const
Return true if end of input seen.
virtual tmp< fvMatrix< Type > > fvmLaplacian(const GeometricField< GType, fvsPatchField, surfaceMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)=0
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
static tmp< laplacianScheme< Type, GType > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new laplacianScheme created on freestore.
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcLaplacian(const GeometricField< Type, fvPatchField, volMesh > &)=0
#define InfoInFunction
Report an information message using Foam::Info.