Go to the documentation of this file.
58 static bool hasReadWriteTypes(
const word& readType,
const word& writeType)
60 volatile bool good =
true;
78 int main(
int argc,
char *argv[])
82 "Convert between edgeMesh formats"
91 "The input format (default: use file extension)"
97 "The output format (default: use file extension)"
103 "Input geometry scaling factor"
113 if (importName == exportName)
116 <<
"Output file would overwrite input file."
120 const word readFileType
125 const word writeFileType
131 if (!hasReadWriteTypes(readFileType, writeFileType))
134 <<
"Unsupported file format(s)" <<
nl
140 Info<<
"\nRead edgeMesh " << importName <<
nl;
143 <<
"\nwriting " << exportName;
145 scalar scaleFactor(0);
148 Info<<
" with scaling " << scaleFactor <<
endl;
149 mesh.scalePoints(scaleFactor);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
static bool canReadType(const word &fileType, bool verbose=false)
A class for handling file names.
virtual bool write(const bool valid=true) const
T getOrDefault(const word &optName, const T &deflt) const
const fileName & caseName() const noexcept
static void addNote(const string ¬e)
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
T get(const label index) const
bool readIfPresent(const word &optName, T &val) const
static void addArgument(const string &argName, const string &usage="")
errorManipArg< error, int > exit(error &err, const int errNo=1)
static bool canWriteType(const word &fileType, bool verbose=false)
word name(const expressions::valueTypeCode typeCode)
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
Mesh data needed to do the Finite Area discretisation.
const fileName & rootPath() const noexcept