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);
Generic GeometricField class.
bool eof() const
Return true if end of input seen.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Mesh data needed to do the Finite Volume discretisation.
virtual tmp< fvMatrix< Type > > fvmLaplacian(const SurfaceField< GType > &, const VolField< Type > &)=0
virtual ~laplacianScheme()
Destructor.
virtual tmp< VolField< Type > > fvcLaplacian(const VolField< Type > &)=0
static tmp< laplacianScheme< Type, GType > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new laplacianScheme created on freestore.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define InfoInFunction
Report an information message using Foam::Info.
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.