59int main(
int argc,
char *argv[])
63 "Check a finite-area mesh"
69 "Write mesh as a vtp (vtk) file for display or debugging"
76 "Test different geometry order - experimental!!",
93 if (
args.readIfPresent(
"geometryOrder", geometryOrder))
95 Info<<
"Setting faMesh::geometryOrder = " << geometryOrder <<
nl
96 <<
"(experimental)" <<
nl <<
endl;
103 Info<<
"Create faMesh";
106 Info<<
" [" << areaName <<
"]";
114 Info<<
" ...failed to create area-mesh";
117 Info<<
" [" << areaName <<
"]";
127 const auto& aMesh = faMeshPtr();
132 if (
args.found(
"write-vtk"))
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static int geometryOrder() noexcept
Return the current geometry treatment.
static autoPtr< faMesh > TryNew(const word &areaName, const polyMesh &pMesh)
Read construction from polyMesh if all files are available.
static const word & regionName(const word ®ion)
The mesh region name or word::null if polyMesh::defaultRegion.
A class for handling words, derived from Foam::string.
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)