44 const Map<dictionary>& table
51 if (iter().getOrDefault<label>(
"PorosityId", 0) != 0)
56 iter().getOrDefault<word>
76 bool duplicates =
false;
78 for (
const word& item : lst)
81 auto iter = hashed.
find(item);
96 Info <<
nl <<
"WARNING: " << context <<
" with identical names:";
101 Info <<
" " << iter.key();
111void Foam::ccm::reader::writeInterfaces
131 ioObj.note() =
"as yet unsupported interfaces (baffles)";
133 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
136 ioObj.writeHeader(
os);
138 os << bafInterfaces_;
144void Foam::ccm::reader::writeMeshLabelList
147 const word& propertyName,
168 ioObj.note() =
"persistent data for STARCD <-> OPENFOAM translation";
169 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
175 ioObj.writeObject(streamOpt,
true);
186 cellTable_.writeDict(registry);
187 boundaryRegion_.writeDict(registry);
188 writeInterfaces(registry);
Internal bits for wrapping libccmio - do not use directly.
A HashTable similar to std::unordered_map.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
iterator find(const Key &key)
Find and return an iterator set at the hashed entry.
A List of objects of type <T> with automated input and output.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
The IOstreamOption is a simple container for options an IOstream can normally have.
@ ASCII
"ascii" (normal default)
A HashTable to objects of type <T> with a label key.
Output to file stream, using an OSstream.
void size(const label n)
Older name for setAddressableSize.
void writeAux(const objectRegistry ®istry) const
Write cellTable, boundaryRegion and interface information.
static void warnDuplicates(const word &context, const wordList &lst)
Warn about repeated name.
Registry of regIOobjects.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.