73 int main(
int argc,
char *argv[])
80 "skip checking the mesh topology" 85 "include bounding box checks" 90 "include extra topology checks" 95 "read user-defined mesh quality criterions from system/meshQualityDict" 101 "reconstruct and write all faceSets and cellSets in selected format" 119 Info<<
"Disabling all topology checks." <<
nl <<
endl;
123 Info<<
"Enabling all (cell, face, edge, point) topology checks." 128 Info<<
"Enabling all geometry checks." <<
nl <<
endl;
132 Info<<
"Enabling user-defined geometry checks." <<
nl <<
endl;
136 Info<<
"Reconstructing and writing " << surfaceFormat
138 <<
" of all faceSets and cellSets." <<
nl <<
endl;
174 vtkSetWriter::typeName,
183 runTime.setTime(timeDirs[timeI], timeI);
194 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
201 label nFailedChecks = 0;
232 if (nFailedChecks == 0)
238 Info<<
"\nFailed " << nFailedChecks <<
" mesh checks.\n" 244 Info<<
"Time = " << runTime.userTimeName() <<
nl <<
endl;
262 Info<<
"\nFailed " << nFailedChecks <<
" mesh checks.\n" static autoPtr< setWriter > New(const word &writeType, const IOstream::streamFormat writeFormat=IOstream::ASCII, const IOstream::compressionType writeCompression=IOstream::UNCOMPRESSED)
Select given write options.
#define forAll(list, i)
Loop across all elements in list.
void reset(T *=nullptr)
If object pointer already set, delete object and set to given.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
const Time & time() const
Return the top-level database.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
label checkTopology(const polyMesh &, const bool, const bool, const autoPtr< surfaceWriter > &, const autoPtr< setWriter > &)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
label checkGeometry(const polyMesh &mesh, const bool allGeometry, const autoPtr< surfaceWriter > &, const autoPtr< setWriter > &)
A class for handling words, derived from string.
label checkMeshQuality(const polyMesh &, const dictionary &, const autoPtr< surfaceWriter > &)
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
IOstream::compressionType writeCompression() const
Default write compression.
const globalMeshData & globalData() const
Return parallel info.
static autoPtr< surfaceWriter > New(const word &writeType, const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Select given write options.
const word & system() const
Return system name.
IOstream::streamFormat writeFormat() const
Default write format.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
readUpdateState readUpdate(const stitchType stitch=stitchType::geometric)
Update the mesh based on the mesh files saved in time.
void printMeshStats(const polyMesh &mesh, const bool allTopology)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
readUpdateState
Enumeration defining the state of the mesh after a read update.
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.