38 #ifndef genericPatchFieldBase_H 39 #define genericPatchFieldBase_H 61 const label fieldSize,
62 const label patchSize,
63 const word& patchName,
91 const word& patchName,
98 const word& entryName,
99 const word& patchName,
105 const label patchSize,
106 const word& patchName,
108 const bool separateValue
114 const label patchSize,
115 const word& patchName,
127 template<
class MapperType>
131 const MapperType& mapper
135 template<
class MapperType>
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.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
void genericFatalSolveError(const word &patchName, const IOobject &io) const
Add error message to FatalError about solving with generic condition.
HashPtrTable< vectorField > vectorFields_
A class for handling words, derived from Foam::string.
HashPtrTable< scalarField > scalarFields_
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.
HashPtrTable< tensorField > tensorFields_
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.
HashPtrTable< symmTensorField > symmTensorFields_
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
HashPtrTable< sphericalTensorField > sphTensorFields_
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
word actualTypeName_
The non-generic patch name.
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'.