59int 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)"
86 if (
args.found(
"case"))
88 exportName +=
'-' +
args.globalCaseName();
97 scalar scaleFactor = 1;
98 if (
args.readIfPresent(
"scale", scaleFactor))
100 if (scaleFactor <= 0)
110 runTime.setTime(timeDirs[timeI], timeI);
123 meshName +=
'_' +
runTime.timeName();
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void noParallel()
Remove the parallel options.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
static void addNote(const string ¬e)
Add extra notes for the usage information.
A class for handling file names.
static string defaultMeshName
Specify a default mesh name.
readUpdateState
Enumeration defining the state of the mesh after a read update.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options and also set the runTime to the first i...
messageStream Info
Information stream (stdout output on master, null elsewhere).
List< instant > instantList
List of instants.
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.