44 <<
"Trying to construct generic patchField on patch " 59 parent_bctype(
p, iF,
dict),
62 const label patchSize = this->
size();
85 parent_bctype(rhs,
p, iF, mapper),
88 this->mapGeneric(rhs, mapper);
99 parent_bctype(rhs, iF),
121 parent_bctype::autoMap(m);
122 this->autoMapGeneric(m);
133 parent_bctype::rmap(rhs, addr);
135 const auto* base = isA<genericPatchFieldBase>(rhs);
138 this->rmapGeneric(*base, addr);
147 const tmp<scalarField>&
151 <<
"Cannot be called for a generic patchField";
153 genericFatalSolveError
156 this->internalField()
172 <<
"Cannot be called for a generic patchField";
174 genericFatalSolveError
177 this->internalField()
190 <<
"Cannot be called for a generic patchField";
192 genericFatalSolveError
195 this->internalField()
207 <<
"Cannot be called for a generic patchField";
209 genericFatalSolveError
212 this->internalField()
tmp< Field< Type > > gradientInternalCoeffs() const
Fatal.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const fvPatch & patch() const noexcept
Return the patch.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void writeGeneric(Ostream &os, const bool separateValue) const
Write all generic entries from dictionary, optionally treating the "value" entry separately.
This boundary condition provides a generic version of the calculated condition, useful as a fallback ...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
void reportMissingEntry(const word &entryName, const word &patchName, const IOobject &io) const
FatalError for missing entry.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Fatal.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
tmp< Field< Type > > gradientBoundaryCoeffs() const
Fatal.
void processGeneric(const label patchSize, const word &patchName, const IOobject &io, const bool separateValue)
genericFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label size() const noexcept
The number of elements in the container.
OBJstream os(runTime.globalPath()/outputName)
Generic infrastructure for reading/writing unknown patch types.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
const std::string patch
OpenFOAM patch number as a std::string.
const entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Fatal.
virtual const word & name() const
Return name.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...