61 ) <<
"Discretisation scheme not specified"
63 <<
"Valid schemes are :" <<
endl
64 << MeshConstructorTablePtr_->sortedToc()
68 const word schemeName(schemeData);
70 typename MeshConstructorTable::iterator constructorIter =
71 MeshConstructorTablePtr_->find(schemeName);
73 if (constructorIter == MeshConstructorTablePtr_->end())
78 ) <<
"Unknown discretisation scheme "
79 << schemeName <<
nl <<
nl
80 <<
"Valid schemes are :" <<
endl
81 << MeshConstructorTablePtr_->sortedToc()
85 return constructorIter()(mesh, schemeData);
104 const word& snGradName
114 snGradName +
"("+vf.
name()+
')',
131 deltaCoeffs[facei]*(vf[neighbour[facei]] - vf[owner[facei]]);
160 const word& sndGradName
163 return snGrad(vf, vf.
mesh().nonOrthDeltaCoeffs(), sndGradName);
176 snGrad(vf, deltaCoeffs(vf))
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
const word & name() const
Return name.
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.
const labelUList & owner() const
Internal face owner.
const labelUList & neighbour() const
Internal face neighbour.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual bool coupled() const
Return true if this patch field is coupled.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
virtual ~snGradScheme()
Destructor.
static tmp< SurfaceField< Type > > sndGrad(const VolField< Type > &, const word &snGradName="sndGrad")
Return the sndGrad of the given cell field.
static tmp< SurfaceField< Type > > snGrad(const VolField< Type > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad")
Return the snGrad of the given cell field with the given deltaCoeffs.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
A class for managing temporary objects.
void clear() const
If object pointer points to valid object:
T & ref() const
Return non-const reference or generate a fatal error.
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.
tmp< SurfaceField< Type > > snGrad(const VolField< Type > &vf, const word &name)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.