Go to the documentation of this file.
67 int main(
int argc,
char *argv[])
74 "skip checking the mesh topology"
79 "include bounding box checks"
84 "include extra topology checks"
89 "read user-defined mesh quality criterions from system/meshQualityDict"
95 "reconstruct and write all faceSets and cellSets in selected format"
113 Info<<
"Disabling all topology checks." <<
nl <<
endl;
117 Info<<
"Enabling all (cell, face, edge, point) topology checks."
122 Info<<
"Enabling all geometry checks." <<
nl <<
endl;
126 Info<<
"Enabling user-defined geometry checks." <<
nl <<
endl;
130 Info<<
"Reconstructing and writing " << surfaceFormat
132 <<
" of all faceSets and cellSets." <<
nl <<
endl;
165 runTime.setTime(
timeDirs[timeI], timeI);
176 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
186 label nFailedChecks = 0;
210 if (nFailedChecks == 0)
216 Info<<
"\nFailed " << nFailedChecks <<
" mesh checks.\n"
222 Info<<
"Time = " << runTime.timeName() <<
nl <<
endl;
234 Info<<
"\nFailed " << nFailedChecks <<
" mesh checks.\n"
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
#define forAll(list, i)
Loop across all elements in list.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
label checkGeometry(const polyMesh &mesh, const bool allGeometry, const autoPtr< surfaceWriter > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void printMeshStats(const polyMesh &mesh, const bool allTopology)
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
label checkMeshQuality(const polyMesh &, const dictionary &, const autoPtr< surfaceWriter > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & system() const
Return system name.
int main(int argc, char *argv[])
Base class for graphics format writing. Entry points are.
readUpdateState
Enumeration defining the state of the mesh after a read update.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static instantList timeDirs
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static autoPtr< surfaceWriter > New(const word &writeType)
Return a reference to the selected surfaceWriter.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool optionFound(const word &opt) const
Return true if the named option is found.
void reset(T *=0)
If object pointer already set, delete object and set to given.
const Time & time() const
Return the top-level database.
const globalMeshData & globalData() const
Return parallel info.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
void clearOut()
Clear all geometry and addressing.
label checkTopology(const polyMesh &, const bool, const bool, const autoPtr< surfaceWriter > &)