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()
208 <<
"Cannot be called for a generic patchField";
210 genericFatalSolveError
213 this->internalField()
const faPatch & patch() const noexcept
Return the patch.
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...
#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.
constexpr char nl
The newline '\n' character (0x0a)
virtual void write(Ostream &) const
Write.
const DimensionedField< Type, areaMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
virtual void rmap(const faPatchField< Type > &, const labelList &)
Reverse map the given faPatchField onto this faPatchField.
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 INVALID.
A class for handling words, derived from Foam::string.
void processGeneric(const label patchSize, const word &patchName, const IOobject &io, const bool separateValue)
genericFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
tmp< Field< Type > > gradientBoundaryCoeffs() const
Fatal.
virtual void autoMap(const faPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
errorManip< error > abort(error &err)
const word & name() const noexcept
The patch name.
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 List.
OBJstream os(runTime.globalPath()/outputName)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
This boundary condition provides a generic version of the calculated condition, useful as a fallback ...
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 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.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
A FieldMapper for finite-area patch fields.
Defines the attributes of an object for which implicit objectRegistry management is supported...
tmp< Field< Type > > gradientInternalCoeffs() const
Fatal.