38 #ifndef Foam_genericPatchFieldBase_H 39 #define Foam_genericPatchFieldBase_H 81 const label fieldSize,
82 const label patchSize,
83 const word& patchName,
97 const word& patchName,
104 const word& entryName,
105 const word& patchName,
111 const label patchSize,
112 const word& patchName,
114 const bool separateValue
120 const label patchSize,
121 const word& patchName,
133 template<
class MapperType>
137 const MapperType& mapper
141 template<
class MapperType>
181 return actualTypeName_;
A class for handling keywords in dictionaries.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void writeGeneric(Ostream &os, const bool separateValue) const
Write all generic entries from dictionary, optionally treating the "value" entry separately.
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers...
bool processEntry(const entry &dEntry, const label patchSize, const word &patchName, const IOobject &io)
void reportMissingEntry(const word &entryName, const word &patchName, const IOobject &io) const
FatalError for missing entry.
const dimensionedScalar e
Elementary charge.
void genericFatalSolveError(const word &patchName, const IOobject &io) const
Add error message to FatalError about solving with generic condition.
A class for handling words, derived from Foam::string.
void processGeneric(const label patchSize, const word &patchName, const IOobject &io, const bool separateValue)
void mapGeneric(const genericPatchFieldBase &rhs, const MapperType &mapper)
Implementation for construct with mapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void rmapGeneric(const genericPatchFieldBase &rhs, const labelList &addr)
Implementation for reverse map given patch field onto this patch field.
OBJstream os(runTime.globalPath()/outputName)
Generic infrastructure for reading/writing unknown patch types.
const word & actualType() const noexcept
The actual patch type.
Specialisations of Field<T> for scalar, vector and tensor.
void putEntry(const entry &e, Ostream &os) const
Write a single entry, with lookup of hashed values.
void autoMapGeneric(const MapperType &mapper)
Implementation for autoMap of self given a mapping object.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
genericPatchFieldBase()=default
Default construct, generally not useful.
A keyword and a list of tokens is an 'entry'.