42 int main(
int argc,
char *argv[])
46 "Convert between edgeMesh formats" 55 "geometry scaling factor - default is 1" 65 if (importName == exportName)
68 <<
"Output file " << exportName <<
" would overwrite input file." 84 Info<<
"\nRead edgeMesh " << importName <<
nl;
87 <<
"\nwriting " << exportName;
89 scalar scaleFactor = 0;
92 Info<<
" with scaling " << scaleFactor <<
endl;
93 mesh.scalePoints(scaleFactor);
A class for handling file names.
static bool canReadType(const word &ext, const bool verbose=false)
Can we read this file format?
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const fileName & rootPath() const
Return root path.
virtual bool write(const bool valid=true) const
Write mesh using IO settings from time.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
word ext() const
Return file name extension (part after last .)
Extract command arguments and options from the supplied argc and argv parameters. ...
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
Points connected by edges.
static void addNote(const string &)
Add extra notes for the usage information.
Foam::argList args(argc, argv)
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format type?