61 int main(
int argc,
char *argv[])
65 "A mesh generator for finiteArea mesh" 71 "Specify name for a default empty patch",
78 "Create but do not write" 83 "Suppress procAddressing creation and field decomposition" 89 "Suppress field decomposition" 95 "Write mesh as a vtp (vtk) file for display or debugging" 100 "Write mesh edges as obj files (one per processor)",
109 const bool doDecompose = !
args.
found(
"no-decompose");
110 const bool doDecompFields = !
args.
found(
"no-fields");
114 Info<<
"Skip decompose of finiteArea mesh/fields" <<
nl;
116 else if (!doDecompFields)
118 Info<<
"Skip decompose of finiteArea fields" <<
nl;
145 #include "faMeshWriteVTK.H" 150 Info<<
"\ndry-run: not writing mesh or decomposing fields\n" <<
nl;
157 Info<<
nl <<
"Write finite area mesh." <<
nl;
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
static void addNote(const string ¬e)
Add extra notes for the usage information.
IOdictionary & meshDefDict
virtual bool write(const bool valid=true) const
Write mesh.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static unsigned int defaultPrecision() noexcept
Return the default precision.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
Functions to operate on Pointer Lists.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
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.
static void addDryRunOption(const string &usage, bool advanced=false)
Enable a 'dry-run' bool option, with usage information.
int dryRun() const noexcept
Return the dry-run flag.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
messageStream Info
Information stream (stdout output on master, null elsewhere)
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.