Go to the documentation of this file.
26 #include "commandLine.hpp"
42 using pFlow::commandLine;
45 int main(
int argc,
char** argv )
51 "Convrtes the saved pointField and geometry"
52 " date in time folders into vtk file format.");
60 "Do not convert geometry to VTK file");
62 bool noParticle =
false;
63 cmds.add_flag(
"--no-particles",
65 "Do not convert particle fields to VTK file");
67 cmds.addOption(
"-o,--out-folder",
69 "path to output folder of VTK",
73 bool allFields =
true;
74 cmds.addOption(
"-f,--fields",
76 "a space-separated list of fields names to be converted to VTK",
82 "a space separated lists of time folders, or a strided range begin:stride:end, or an interval begin:end",
85 bool isCoupling =
false;
87 if(!cmds.parse(argc, argv))
return 0;
100 if(cmds.count(
"--fields"))
106 if( cmds.count(
"--time") )
108 if(!validRange.addRanges(times))
121 if( !validRange.isMember( folders.
time() ) )
continue;
170 output<<
"\nFinished successfully.\n";
bool convertTimeFolderPointFieldsSelected(fileSystem timeFolder, real time, fileSystem destPath, word bName, wordVector fieldsName, bool mustExist)
bool convertTimeFolderTriSurfaceFields(fileSystem timeFolder, real time, fileSystem destPath, word bName)
combinedRange< real > realCombinedRange
iOstream & endl(iOstream &os)
int main(int argc, char **argv)
const char * geometryFolder__
Vector< word > wordVector
bool convertTimeFolderPointFields(fileSystem timeFolder, real time, fileSystem destPath, word bName)
INLINE_FUNCTION_HD bool equal(const real &s1, const real &s2)
fileSystem folder() const