61int main(
int argc,
char *argv[])
65 "Convert AVL/FIRE polyhedral mesh to OpenFOAM format"
68 argList::noParallel();
69 argList::addArgument(
"firePolyMesh",
"The input FIRE mesh");
70 argList::addBoolOption
73 "Write in ASCII format instead of binary"
75 argList::addBoolOption
78 "Perform edge checking as well"
84 "Geometry scaling factor - default is 1 (no scaling)"
96 ? IOstreamOption::ASCII
97 : IOstreamOption::BINARY
101 IOstream::defaultPrecision(
max(10u, IOstream::defaultPrecision()));
Checks the mesh for edge connectivity as expected by the AVL/FIRE on-the-fly calculations....
streamFormat
Data format (ascii | binary)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Extract command arguments and options from the supplied argc and argv parameters.
T get(const label index) const
Get a value from the argument at index.
const fileName & rootPath() const noexcept
Return root path.
bool found(const word &optName) const
Return true if the named option is found.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
const fileName & caseName() const noexcept
Return case name (parallel run) or global case (serial run)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
label checkFireEdges(const faceList &faces, const labelListList &pointFaces, const UList< point > &points=UList< point >::null())
check edge connectivity
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word format(conversionProperties.get< word >("format"))
Foam::argList args(argc, argv)