Go to the documentation of this file.
59 int main(
int argc,
char *argv[])
63 "Write an OpenFOAM mesh in AVL/FIRE fpma format"
71 "Write in ASCII format instead of binary"
77 "Geometry scaling factor - default is 1 (none)"
97 scalar scaleFactor = 1;
100 if (scaleFactor <= 0)
112 #include "getTimeIndex.H"
A class for handling file names.
static word timeName(const scalar t, const int precision=precision_)
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
General entry point for writing.
static void addNote(const string ¬e)
Add extra notes for the usage information.
const fileName & globalCaseName() const noexcept
Return global case name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
#define forAll(list, i)
Loop across all elements in list.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Base class for graphics format writing. Entry points are.
readUpdateState
Enumeration defining the state of the mesh after a read update.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static string defaultMeshName
Specify a default mesh name.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
static void noParallel()
Remove the parallel options.
static instantList select0(Time &runTime, const argList &args)
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Foam::argList args(argc, argv)
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.