90 int main(
int argc,
char *argv[])
137 <<
"Cannot handle multiple domains"
138 <<
nl <<
"Ignoring domain " << domain <<
" setting on line "
139 << str.lineNumber() <<
endl;
168 forAll(boundaryFaces, facei)
175 <<
"Invalid boundary region number " <<
patchi
176 <<
" on line " << str.lineNumber()
186 boundaryFaces[facei].setSize(3);
187 boundaryFaces[facei][0] = tri[0];
188 boundaryFaces[facei][1] = tri[1];
189 boundaryFaces[facei][2] = tri[2];
190 boundaryPatch[facei] =
patchi;
192 vertsToBoundary.insert(tri, facei);
211 const face&
f = tris[i];
218 if (iter != vertsToBoundary.end())
220 label facei = iter();
221 const triFace& tri = iter.key();
228 if (((fc - cc) & fn) < 0)
231 boundaryFaces[facei].flip();
235 vertsToBoundary.erase(iter);
241 if (vertsToBoundary.size())
245 <<
"There are boundary faces without attached cells."
246 <<
"Boundary faces (as triFaces):" << vertsToBoundary.toc()
271 forAll(boundaryPatch, facei)
275 allPatchFaces[
patchi].append(boundaryFaces[facei]);
279 <<
"\tNeutral Boundary\tPatch name\tSize" <<
nl
280 <<
"\t----------------\t----------\t----" <<
endl;
313 Info<<
"Writing mesh to " << runTime.constant() <<
endl <<
endl;
#define forAll(list, i)
Loop across all elements in list.
An STL-conforming hash table.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual Ostream & write(const char)=0
Write character.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
An analytical geometric cellShape.
point centre(const pointField &) const
Centroid of the cell.
faceList faces() const
Faces of this cell.
A face is a list of labels corresponding to mesh vertices.
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
A triangular face using a FixedList of labels corresponding to mesh vertices.
point centre(const pointField &) const
Return centre (centroid)
vector area(const pointField &) const
Return vector area.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
int main(int argc, char *argv[])
#define WarningInFunction
Report a warning using Foam::Warning.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
vector point
Point is a vector.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
label readLabel(Istream &is)
wordList patchTypes(nPatches)
wordList patchNames(nPatches)
Foam::argList args(argc, argv)