Go to the documentation of this file.
53 Info<<
"snGradScheme<Type>::New(const fvMesh&, Istream&)"
54 " : constructing snGradScheme<Type>"
63 ) <<
"Discretisation scheme not specified"
65 <<
"Valid schemes are :" <<
endl
66 << MeshConstructorTablePtr_->sortedToc()
70 const word schemeName(schemeData);
72 typename MeshConstructorTable::iterator constructorIter =
73 MeshConstructorTablePtr_->find(schemeName);
75 if (constructorIter == MeshConstructorTablePtr_->end())
80 ) <<
"Unknown discretisation scheme "
81 << schemeName <<
nl <<
nl
82 <<
"Valid schemes are :" <<
endl
83 << MeshConstructorTablePtr_->sortedToc()
87 return constructorIter()(
mesh, schemeData);
106 const word& snGradName
118 snGradName +
"("+vf.name()+
')',
125 vf.dimensions()*tdeltaCoeffs().dimensions()
131 const scalarField& deltaCoeffs = tdeltaCoeffs().internalField();
140 deltaCoeffs[facei]*(vf[neighbour[facei]] - vf[owner[facei]]);
167 const word& sndGradName
170 return snGrad(vf, vf.mesh().nonOrthDeltaCoeffs(), sndGradName);
185 snGrad(vf, deltaCoeffs(vf))
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
bool eof() const
Return true if end of input seen.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
virtual bool coupled() const
Return true if this patch field is coupled.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual ~snGradScheme()
Destructor.
cellIbMask *cellIbMaskExt *faceIbMask *cellIbMask boundaryField().evaluateCoupled()
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static tmp< snGradScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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.
Generic GeometricField class.
void clear() const
If object pointer points to valid object:
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > sndGrad(const GeometricField< Type, fvPatchField, volMesh > &, const word &snGradName="sndGrad")
Return the sndGrad of the given cell field.