Go to the documentation of this file.
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
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);
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
bool insert(const Key &key, const T &obj)
A HashTable to objects of type <T> with a label key.
Ostream & endl(Ostream &os)
Registry of regIOobjects.
void writeAux(const objectRegistry ®istry) const
static void warnDuplicates(const word &context, const wordList &lst)
Internal bits for wrapping libccmio - do not use directly.
The IOstreamOption is a simple container for options an IOstream can normally have.
Lookup type of boundary radiation properties.
OBJstream os(runTime.globalPath()/outputName)
iterator find(const Key &key)
Output to file stream, using an OSstream.
@ ASCII
"ascii" (normal default)
forAllConstIters(mixture.phases(), phase)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
word name(const expressions::valueTypeCode typeCode)