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))
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
#define forAll(list, i)
Loop across all elements in list.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &, const tmp< surfaceScalarField > &, const word &snGradName="snGrad")
Return the snGrad of the given cell field with the given deltaCoeffs.
const word & name() const
Return name.
void clear() const
If object pointer points to valid object:
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > sndGrad(const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")
Return the sndGrad of the given cell field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Generic GeometricField class.
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
const labelUList & neighbour() const
Internal face neighbour.
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
virtual bool coupled() const
Return true if this patch field is coupled.
bool eof() const
Return true if end of input seen.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const Mesh & mesh() const
Return mesh.
const labelUList & owner() const
Internal face owner.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
#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.
virtual ~snGradScheme()
Destructor.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
#define InfoInFunction
Report an information message using Foam::Info.