68int main(
int argc,
char *argv[])
72 "Convert STARCD/PROSTAR (v4) mesh to OpenFOAM"
75 argList::noParallel();
76 argList::addArgument(
"prefix",
"The prefix for the input PROSTAR files");
77 argList::addBoolOption
80 "Write in ASCII instead of binary format"
86 "Geometry scaling factor - default is 0.001 ([mm] to [m])"
88 argList::addBoolOption
91 "Retain solid cells and treat like fluid cells"
102 ? IOstreamOption::ASCII
103 : IOstreamOption::BINARY
107 IOstream::defaultPrecision(
max(10u, IOstream::defaultPrecision()));
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.
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)