56 <<
"constructing gradScheme<Type>" 63 <<
"Grad scheme not specified" <<
nl <<
nl 64 <<
"Valid grad schemes are :" <<
nl 65 << IstreamConstructorTablePtr_->sortedToc()
69 const word schemeName(schemeData);
71 auto* ctorPtr = IstreamConstructorTable(schemeName);
80 *IstreamConstructorTablePtr_
84 return ctorPtr(
mesh, schemeData);
109 GradFieldType* pgGrad =
110 mesh().thisDb().template getObjectPtr<GradFieldType>(
name);
112 if (!this->
mesh().cache(name))
115 if (pgGrad && pgGrad->ownedByRegistry())
122 return calcGrad(vsf,
name);
130 pgGrad = calcGrad(vsf,
name).ptr();
135 if (pgGrad->upToDate(vsf))
144 pgGrad = calcGrad(vsf,
name).ptr();
168 return grad(vsf,
"grad(" + vsf.
name() +
')');
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
const word & name() const noexcept
Return the object name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh > > grad(const GeometricField< Type, faPatchField, areaMesh > &, const word &name) const
Calculate and return the grad of the given field which may have been cached.
bool store()
Register object with its registry and transfer ownership to the registry.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Generic GeometricField class.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
int debug
Static debugging option.
static tmp< gradScheme< Type > > New(const faMesh &mesh, Istream &schemeData)
Return a pointer to a new gradScheme created on freestore.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Area discretisation.
A class for managing temporary objects.
static void cachePrintMessage(const char *message, const word &name, const FieldType &vf)
Helper for printing cache message.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
bool eof() const noexcept
True if end of input seen.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
#define InfoInFunction
Report an information message using Foam::Info.