59int main(
int argc,
char *argv[])
63 "Write an OpenFOAM mesh in AVL/FIRE fpma format"
65 argList::noParallel();
66 timeSelector::addOptions();
68 argList::addBoolOption
71 "Write in ASCII format instead of binary"
77 "Geometry scaling factor - default is 1 (none)"
85 fileName exportName = meshWriter::defaultMeshName;
94 fileFormats::FIREMeshWriter::binary = !
args.
found(
"ascii");
97 scalar scaleFactor = 1;
100 if (scaleFactor <= 0)
110 runTime.setTime(timeDirs[timeI], timeI);
112 #include "getTimeIndex.H"
116 if (!timeI || state != polyMesh::UNCHANGED)
121 if (state != polyMesh::UNCHANGED)
123 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.
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
const fileName & globalCaseName() const noexcept
Return global case name.
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.