69int main(
int argc,
char *argv[])
73 "Write an OpenFOAM mesh in STARCD/PROSTAR (v4) bnd/cel/vrt format"
75 argList::noParallel();
76 timeSelector::addOptions();
82 "Geometry scaling factor - default is 1000 ([m] to [mm])"
84 argList::addBoolOption
87 "Suppress writing a boundary (.bnd) file"
95 fileName exportName = meshWriter::defaultMeshName;
103 const bool writeBndFile = !
args.
found(
"noBnd");
109 runTime.setTime(timeDirs[timeI], timeI);
111 #include "getTimeIndex.H"
115 if (!timeI || state != polyMesh::UNCHANGED)
125 if (state != polyMesh::UNCHANGED)
127 meshName +=
'_' +
runTime.timeName();
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
bool found(const word &optName) const
Return true if the named option is found.
const fileName & globalCaseName() const noexcept
Return global case name.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
A class for handling file names.
readUpdateState
Enumeration defining the state of the mesh after a read update.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)
#define forAll(list, i)
Loop across all elements in list.