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();
111 void Foam::ccm::reader::writeInterfaces
113 const objectRegistry& registry
117 IOList<labelList> ioObj
131 ioObj.note() =
"as yet unsupported interfaces (baffles)";
133 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
135 OFstream
os(ioObj.objectPath());
136 ioObj.writeHeader(
os);
138 os << bafInterfaces_;
144 void Foam::ccm::reader::writeMeshLabelList
146 const objectRegistry& registry,
147 const word& propertyName,
149 IOstreamOption streamOpt
153 IOListRef<label> ioObj
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);
void size(const label n)
Older name for setAddressableSize.
constexpr char nl
The newline '\n' character (0x0a)
static void warnDuplicates(const word &context, const wordList &lst)
Warn about repeated name.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple container for options an IOstream can normally have.
Ignore writing from objectRegistry::writeObject()
Lookup type of boundary radiation properties.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
iterator find(const Key &key)
Find and return an iterator set at the hashed entry.
Internal bits for wrapping libccmio - do not use directly.
OBJstream os(runTime.globalPath()/outputName)
void writeAux(const objectRegistry ®istry) const
Write cellTable, boundaryRegion and interface information.
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< label > labelList
A List of labels.
Registry of regIOobjects.
Do not request registration (bool: false)
forAllConstIters(mixture.phases(), phase)
A HashTable to objects of type <T> with a label key.