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"
friend Ostream & operator(Ostream &, const HashTable< dictionary, label, Hash > &tbl)
constexpr Map() noexcept=default
Map< word > solids() const
Return a Map of (id => name) for solids.
void setMaterial(const label, const word &)
Assign material Type.
label findIndex(const word &name) const
The index corresponding to entry with 'Label' of given name, or -1 if not found.
void readDict(const objectRegistry &, const word &name="cellTable", const fileName &instance="constant")
Read constant/cellTable.
Map< word > shells() const
Return a Map of (id => name) for shells.
label maxIndex() const
The max table index, -1 if empty.
word name(const label id) const
The 'Label' name corresponding to id, or cellTable_ID if not otherwise defined.
Map< word > fluids() const
Return a Map of (id => name) for fluids.
void setName(const label, const word &)
Assign name.
Map< word > selectType(const word &materialType) const
Return the extracted Map of (id => name) for materialType (fluid | solid | shell).
cellTable(const cellTable &)=delete
No copy construct.
void addCellZones(polyMesh &, const labelList &tableIds) const
Classify tableIds into cellZones according to the cellTable.
Map< word > names() const
Return the extracted Map of (id => name).
Map< word > materialTypes() const
Return a Map of (id => fluid|solid|shell).
void writeDict(const objectRegistry &, const word &name="cellTable", const fileName &instance="constant") const
Write constant/cellTable for later reuse.
cellTable() noexcept=default
Default construct.
label push_back(const dictionary &dict)
Add to the end, return index.
void combine(const dictionary &mapDict, labelList &tableIds)
Combine tableIds together.
label append(const dictionary &dict)
Add to the end, return index.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
List< label > labelList
A List of labels.