62 #ifndef Foam_cellTable_H 63 #define Foam_cellTable_H 84 public Map<dictionary>
91 void setEntry(
const label
id,
const word&
key,
const word& value);
110 const fileName& instance =
"constant" 170 const fileName& instance =
"constant" 178 const fileName& instance =
"constant"
~cellTable()=default
Destructor.
A class for handling file names.
Map< word > shells() const
Return a Map of (id => name) for shells.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void setName(const label, const word &)
Assign name.
Map< word > solids() const
Return a Map of (id => name) for solids.
label append(const dictionary &dict)
Add to the end, return index.
void setMaterial(const label, const word &)
Assign material Type.
void operator=(const cellTable &)
Assignment.
void writeDict(const objectRegistry &, const word &name="cellTable", const fileName &instance="constant") const
Write constant/cellTable for later reuse.
void readDict(const objectRegistry &, const word &name="cellTable", const fileName &instance="constant")
Read constant/cellTable.
A class for handling words, derived from Foam::string.
Map< word > names() const
Return the extracted Map of (id => name)
Map< word > materialTypes() const
Return a Map of (id => fluid|solid|shell)
label maxIndex() const
The max table index, -1 if empty.
A List of wordRe with additional matching capabilities.
Map< word > fluids() const
Return a Map of (id => name) for fluids.
The cellTable persistent data saved as a Map<dictionary>.
label push_back(const dictionary &dict)
Add to the end, return index.
word name(const label id) const
The 'Label' name corresponding to id, or cellTable_ID if not otherwise defined.
cellTable() noexcept=default
Default construct.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
void combine(const dictionary &mapDict, labelList &tableIds)
Combine tableIds together.
void addCellZones(polyMesh &, const labelList &tableIds) const
Classify tableIds into cellZones according to the cellTable.
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
label findIndex(const word &name) const
The index corresponding to entry with 'Label' of given name, or -1 if not found.
Map< word > selectType(const word &materialType) const
Return the extracted Map of (id => name) for materialType (fluid | solid | shell) ...
A HashTable to objects of type <T> with a label key.