49int main(
int argc,
char *argv[])
53 "Conformal Voronoi automatic mesh generator"
55 argList::addBoolOption
58 "Check all surface geometry for quality"
61 argList::addBoolOption
64 "Conform to the initial points without any point motion"
67 argList::noFunctionObjects();
73 const bool conformationOnly =
args.
found(
"conformationOnly");
86 IOobject::MUST_READ_IF_MODIFIED,
98 "cvSearchableSurfaces",
105 foamyHexMeshDict.subDict(
"geometry"),
106 foamyHexMeshDict.getOrDefault(
"singleRegionName",
true)
114 allGeometry.checkTopology(
true);
116 allGeometry.checkGeometry
129 conformalVoronoiMesh::debug =
true;
136 if (conformationOnly)
138 mesh.initialiseForConformation();
146 mesh.initialiseForMotion();
157 runTime.printExecutionTime(Info);
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool found(const word &optName) const
Return true if the named option is found.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
const word & executable() const noexcept
Name of executable without the path.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
label checkGeometry(const polyMesh &mesh, const bool allGeometry, autoPtr< surfaceWriter > &surfWriter, autoPtr< coordSetWriter > &setWriter)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)