Go to the documentation of this file.
35 int main(
int argc,
char** argv )
41 "Convrtes the saved pointField and geometry"
42 " date in time folders into vtk file format.");
50 "Do not convert geometry to VTK file");
52 bool noParticle =
false;
53 cmds.add_flag(
"--no-particles",
55 "Do not convert particle fields to VTK file");
58 cmds.add_flag(
"-b, --binary",
60 "Wrtie vtk file (for particles only) in binary format. Default is ASCII");
64 "path to output folder of VTK",
67 bool separateSurfaces =
false;
69 "-s,--separate-surfaces",
71 "use this when you want to have sub-surfaces in separate files");
74 bool allFields =
true;
77 "a space-separated list of fields names to be converted to VTK",
83 "a space separated lists of time folders, or a strided range begin:stride:end, or an interval begin:end",
88 if(!cmds.
parse(argc, argv))
return 0;
97 INFORMATION<<
"Writing vtk file in binray format will accelerate the conversion (5~10x)"<<
98 " and visualization in paraview."<<
99 " Consider addig flag -b or --binary in the command line."<<
END_INFO;
110 if(cmds.count(
"--fields"))
116 if( cmds.count(
"--time") )
144 Control, destFolderGeometry,
"surface", separateSurfaces, surfNames, geomFileNames))
150 timeSeries.addTimeFile(surfNames, folders.
time(), geomFileNames);
155 REPORT(1)<<
"Converting pointFields to vtk file in "<< formatName<<
" format ..."<<
END_REPORT;
184 timeSeries.addTimeFile(
"particles", folders.
time(), fileName);
const vectorType & vectorField() const
#define fatalExit
Fatal exit.
bool convertTimeFolderPointFields(systemControl &control, const fileSystem &destPath, const word &bName, word &filename)
Option * addOption(word optionName, word description, word opText="")
INLINE_FUNCTION_HD bool equal(const box &b1, const box &b2, real tol=smallValue)
iOstream & endl(iOstream &os)
Add newline and flush stream.
int main(int argc, char **argv)
Manages file pathes, manupulate and combines them.
bool addIntervalRange(const word &strRange)
const char *const geometryFolder__
bool parse(int argc, char **argv)
bool convertTimeFolderTriSurfaceFields(systemControl &control, const fileSystem &destPath, const word &bName, bool separate, wordList &surfNames, wordList &fileNames)
bool addRanges(const std::vector< word > &strRanges)
bool isMember(T val) const
fileSystem CWD()
Free function to reture current working directory.
bool convertTimeFolderPointFieldsSelected(systemControl &control, const fileSystem &destPath, const word &bName, const wordVector &fieldsName, bool mustExist, word &filename)