69int main(
int argc,
char *argv[])
73 "Write an OpenFOAM mesh in STARCD/PROSTAR (v4) bnd/cel/vrt format"
82 "Geometry scaling factor - default is 1000 ([m] to [mm])"
87 "Suppress writing a boundary (.bnd) file"
96 if (
args.found(
"case"))
98 exportName +=
'-' +
args.globalCaseName();
102 const scalar scaleFactor =
args.getOrDefault<scalar>(
"scale", 1000);
103 const bool writeBndFile = !
args.found(
"noBnd");
109 runTime.setTime(timeDirs[timeI], timeI);
127 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.