40#ifndef laplacianScheme_H
41#define laplacianScheme_H
70template<
class Type,
class GType>
99 virtual const word&
type()
const = 0;
221#define makeFvLaplacianTypeScheme(SS, GType, Type) \
222 typedef Foam::fv::SS<Foam::Type, Foam::GType> SS##Type##GType; \
223 defineNamedTemplateTypeNameAndDebug(SS##Type##GType, 0); \
229 typedef SS<Type, GType> SS##Type##GType; \
231 laplacianScheme<Type, GType>:: \
232 addIstreamConstructorToTable<SS<Type, GType>> \
233 add##SS##Type##GType##IstreamConstructorToTable_; \
238#define makeFvLaplacianScheme(SS) \
240makeFvLaplacianTypeScheme(SS, scalar, scalar) \
241makeFvLaplacianTypeScheme(SS, symmTensor, scalar) \
242makeFvLaplacianTypeScheme(SS, tensor, scalar) \
243makeFvLaplacianTypeScheme(SS, scalar, vector) \
244makeFvLaplacianTypeScheme(SS, symmTensor, vector) \
245makeFvLaplacianTypeScheme(SS, tensor, vector) \
246makeFvLaplacianTypeScheme(SS, scalar, sphericalTensor) \
247makeFvLaplacianTypeScheme(SS, symmTensor, sphericalTensor) \
248makeFvLaplacianTypeScheme(SS, tensor, sphericalTensor) \
249makeFvLaplacianTypeScheme(SS, scalar, symmTensor) \
250makeFvLaplacianTypeScheme(SS, symmTensor, symmTensor) \
251makeFvLaplacianTypeScheme(SS, tensor, symmTensor) \
252makeFvLaplacianTypeScheme(SS, scalar, tensor) \
253makeFvLaplacianTypeScheme(SS, symmTensor, tensor) \
254makeFvLaplacianTypeScheme(SS, tensor, tensor)
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Mesh data needed to do the Finite Volume discretisation.
Surface gradient scheme with full explicit non-orthogonal correction.
Abstract base class for laplacian schemes.
virtual tmp< fvMatrix< Type > > fvmLaplacian(const GeometricField< GType, fvsPatchField, surfaceMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)=0
declareRunTimeSelectionTable(tmp, laplacianScheme, Istream,(const fvMesh &mesh, Istream &schemeData),(mesh, schemeData))
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcLaplacian(const GeometricField< Type, fvPatchField, volMesh > &)=0
tmp< snGradScheme< Type > > tsnGradScheme_
laplacianScheme(const fvMesh &mesh, const tmp< surfaceInterpolationScheme< GType > > &igs, const tmp< snGradScheme< Type > > &sngs)
Construct from mesh, interpolation and snGradScheme schemes.
tmp< surfaceInterpolationScheme< GType > > tinterpGammaScheme_
virtual ~laplacianScheme()=default
Destructor.
static tmp< laplacianScheme< Type, GType > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new laplacianScheme created on freestore.
const fvMesh & mesh() const
Return mesh reference.
laplacianScheme(const fvMesh &mesh, Istream &is)
Construct from mesh and Istream.
laplacianScheme(const fvMesh &mesh)
Construct from mesh.
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcLaplacian(const GeometricField< GType, fvsPatchField, surfaceMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)=0
virtual const word & type() const =0
Runtime type information.
Abstract base class for runtime selected snGrad surface normal gradient schemes.
Central-differencing interpolation scheme class.
Reference counter for various OpenFOAM components.
Abstract base class for surface interpolation schemes.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)