Go to the documentation of this file.
59 int main(
int argc,
char *argv[])
63 "A mesh generator for finiteArea mesh"
69 "Specify name for a default empty patch",
76 "Create but do not write"
81 "Suppress procAddressing creation and field decomposition"
87 "Suppress field decomposition"
93 "Write mesh as a vtp (vtk) file for display or debugging"
98 "Write mesh edges as obj files (one per processor)",
107 const bool doDecompose = !
args.
found(
"no-decompose");
108 const bool doDecompFields = !
args.
found(
"no-fields");
112 Info<<
"Skip decompose of finiteArea mesh/fields" <<
nl;
114 else if (!doDecompFields)
116 Info<<
"Skip decompose of finiteArea fields" <<
nl;
134 #include "printMeshSummary.H"
143 #include "faMeshWriteVTK.H"
148 Info<<
"\ndry-run: not writing mesh or decomposing fields\n" <<
nl;
155 Info<<
nl <<
"Write finite area mesh." <<
nl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
virtual bool write(const bool valid=true) const
Write mesh.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Functions to operate on Pointer Lists.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
IOdictionary & meshDefDict
int dryRun() const noexcept
Return the dry-run flag.
messageStream Info
Information stream (stdout output on master, null elsewhere)
static void addDryRunOption(const string &usage, bool advanced=false)
Enable a 'dry-run' bool option, with usage information.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static unsigned int defaultPrecision() noexcept
Return the default precision.
Finite area mesh. Used for 2-D non-Euclidian finite area method.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.