Go to the documentation of this file.
57 <<
"constructing lnGradScheme<Type>"
64 <<
"Grad scheme not specified" <<
nl <<
nl
65 <<
"Valid schemes are :" <<
endl
66 << MeshConstructorTablePtr_->sortedToc()
70 const word schemeName(schemeData);
72 auto cstrIter = MeshConstructorTablePtr_->cfind(schemeName);
74 if (!cstrIter.found())
81 *MeshConstructorTablePtr_
85 return cstrIter()(
mesh, schemeData);
104 const word& lnGradName
116 lnGradName +
"("+vf.name()+
')',
123 vf.dimensions()*tdeltaCoeffs().dimensions()
129 const scalarField& deltaCoeffs = tdeltaCoeffs().internalField();
138 deltaCoeffs[faceI]*(vf[neighbour[faceI]] - vf[owner[faceI]]);
161 lnGrad(vf, deltaCoeffs(vf));
int debug
Static debugging option.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > lnGrad(const GeometricField< Type, faPatchField, areaMesh > &, const tmp< edgeScalarField > &, const word &snGradName="lnGrad")
Return the lnGrad of the given cell field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
#define InfoInFunction
Report an information message using Foam::Info.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
bool eof() const
Return true if end of input seen.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
tmp< GeometricField< Type, faePatchField, edgeMesh > > lnGrad(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual ~lnGradScheme()
Destructor.
static tmp< lnGradScheme< Type > > New(const faMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
Finite area mesh. Used for 2-D non-Euclidian finite area method.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.