37 namespace functionObjects
55 stopAt_(
Time::stopAtControl::endTime)
71 noTopology_ =
dict.lookupOrDefault(
"noTopology",
false);
72 allGeometry_ =
dict.lookupOrDefault(
"allGeometry",
false);
73 allTopology_ =
dict.lookupOrDefault(
"allTopology",
false);
75 writeSurfaces_ =
dict.lookupOrDefault(
"writeSurfaces",
false);
78 surfaceFormat_ =
dict.lookupOrDefault<
word>
81 vtkSurfaceWriter::typeName
85 writeSets_ =
dict.lookupOrDefault(
"writeSets",
false);
88 setFormat_ =
dict.lookupOrDefault<
word>
91 vtkSetWriter::typeName
97 skewThreshold_ =
dict.lookupOrDefault(
"skewThreshold", 4.0);
114 if (mesh_.changing())
122 mesh_.time().writeFormat(),
123 mesh_.time().writeCompression()
133 mesh_.time().writeFormat(),
134 mesh_.time().writeCompression()
138 label nFailedChecks = 0;
161 if (nFailedChecks == 0)
167 Info<<
"\n Failed " << nFailedChecks <<
" mesh checks.\n";
174 time_.stopAt(stopAt_);
180 return nFailedChecks == 0;
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static const NamedEnum< stopAtControl, 4 > stopAtControlNames
@ endTime
stop when Time reaches the prescribed endTime
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
Executes primitiveMesh::checkMesh(true) every execute time for which the mesh changed,...
virtual ~checkMesh()
Destructor.
checkMesh(const word &name, const Time &, const dictionary &)
Construct from Time and dictionary.
virtual bool execute()
Execute primitiveMesh::checkMesh(true)
virtual bool write()
Do nothing.
virtual bool read(const dictionary &)
Read the checkMesh controls.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Base class for writing coordinate sets with data.
static autoPtr< setWriter > New(const word &writeType, const IOstream::streamFormat writeFormat=IOstream::ASCII, const IOstream::compressionType writeCompression=IOstream::UNCOMPRESSED)
Select given write options.
static autoPtr< surfaceWriter > New(const word &writeType, const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Select given write options.
A class for handling words, derived from string.
Functions for checking mesh topology and geometry.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
label checkTopology(const polyMesh &mesh, const bool allTopology, const autoPtr< surfaceWriter > &surfWriter, const autoPtr< setWriter > &setWriter)
Check the topology.
label checkGeometry(const polyMesh &mesh, const bool allGeometry, const scalar nonOrthThreshold, const scalar skewThreshold, const autoPtr< surfaceWriter > &, const autoPtr< setWriter > &)
Check the geometry.
scalar degToRad(const scalar deg)
Convert degrees to radians.
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.
const unitConversion unitDegrees