60int main(
int argc,
char *argv[])
64 "A mesh generator for finiteArea mesh"
70 "Specify name for a default empty patch",
73 argList::addOption(
"dict",
"file",
"Alternative faMeshDefinition");
75 argList::addDryRunOption
77 "Create but do not write"
79 argList::addBoolOption
82 "Suppress procAddressing creation and field decomposition"
85 argList::addBoolOption
88 "Suppress field decomposition"
91 argList::addBoolOption
94 "Write mesh as a vtp (vtk) file for display or debugging"
96 argList::addBoolOption
99 "Write mesh edges as obj files (one per processor)",
108 const bool doDecompose = !
args.
found(
"no-decompose");
109 const bool doDecompFields = !
args.
found(
"no-fields");
113 Info<<
"Skip decompose of finiteArea mesh/fields" <<
nl;
115 else if (!doDecompFields)
117 Info<<
"Skip decompose of finiteArea fields" <<
nl;
135 #include "printMeshSummary.H"
144 #include "faMeshWriteVTK.H"
149 Info<<
"\ndry-run: not writing mesh or decomposing fields\n" <<
nl;
154 IOstream::defaultPrecision(10);
156 Info<<
nl <<
"Write finite area mesh." <<
nl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Functions to operate on Pointer Lists.
int dryRun() const noexcept
Return the dry-run flag.
bool found(const word &optName) const
Return true if the named option is found.
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
A class for handling words, derived from Foam::string.
IOdictionary & meshDefDict
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)