74 <<
"cannot be called for a genericFvFieldSource"
75 " (actual type " << actualTypeName() <<
")"
76 <<
"\n on source " << model.
name()
77 <<
" of field " << this->internalField().name()
78 <<
" in file " << this->internalField().objectPath()
79 <<
"\n You are probably trying to solve for a field with a "
80 "generic source condition."
83 return NullObjectRef<DimensionedField<Type, volMesh>>();
97 <<
"cannot be called for a genericFvFieldSource"
98 " (actual type " << actualTypeName() <<
")"
99 <<
"\n on source " << model.
name()
100 <<
" of field " << this->internalField().name()
101 <<
" in file " << this->internalField().objectPath()
102 <<
"\n You are probably trying to solve for a field with a "
103 "generic source condition."
106 return NullObjectRef<Field<Type>>();
119 <<
"cannot be called for a genericFvFieldSource"
120 " (actual type " << actualTypeName() <<
")"
121 <<
"\n on source " << model.
name()
122 <<
" of field " << this->internalField().name()
123 <<
" in file " << this->internalField().objectPath()
124 <<
"\n You are probably trying to solve for a field with a "
125 "generic source condition."
128 return NullObjectRef<DimensionedField<scalar, volMesh>>();
142 <<
"cannot be called for a genericFvFieldSource"
143 " (actual type " << actualTypeName() <<
")"
144 <<
"\n on source " << model.
name()
145 <<
" of field " << this->internalField().name()
146 <<
" in file " << this->internalField().objectPath()
147 <<
"\n You are probably trying to solve for a field with a "
148 "generic source condition."
151 return NullObjectRef<scalarField>();
162 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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 void write(Ostream &) const
Write.
genericFvFieldSource(const DimensionedField< Type, volMesh > &, const dictionary &)
Construct internal field and dictionary.
virtual ~genericFvFieldSource()
Destructor.
virtual tmp< DimensionedField< Type, volMesh > > sourceValue(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the source value.
virtual tmp< DimensionedField< scalar, volMesh > > internalCoeff(const fvSource &model, const DimensionedField< scalar, volMesh > &source) const
Return the source value.
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)