73 <<
"cannot be called for a genericFvFieldSource"
74 " (actual type " << actualTypeName() <<
")"
75 <<
"\n on source " << source.
name()
76 <<
" of field " << this->internalField().name()
77 <<
" in file " << this->internalField().objectPath()
78 <<
"\n You are probably trying to solve for a field with a "
79 "generic source condition."
82 return NullObjectRef<Field<Type>>();
94 <<
"cannot be called for a genericFvFieldSource"
95 " (actual type " << actualTypeName() <<
")"
96 <<
"\n on source " << source.
name()
97 <<
" of field " << this->internalField().name()
98 <<
" in file " << this->internalField().objectPath()
99 <<
"\n You are probably trying to solve for a field with a "
100 "generic source condition."
103 return NullObjectRef<scalarField>();
114 if (iter().keyword() !=
"type")
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Base class for finite-volume field sources.
const word & name() const
Return const access to the source name.
Base class for finite volume sources.
Base class for generic field types. Facilitates down-casting so that the actual type can be queried.
This provides a generic source condition, useful as a fallback for handling unknown types when post-p...
virtual tmp< scalarField > internalCoeff(const fvSource &) const
Return the internal coefficient.
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > sourceValue(const fvSource &) const
Return the source energy value.
genericFvFieldSource(const DimensionedField< Type, volMesh > &, const dictionary &)
Construct internal field and dictionary.
virtual ~genericFvFieldSource()
Destructor.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)