pFlowToVTK finalized and tested

- geometry conversion now can handle separate vtk files.
This commit is contained in:
Hamidreza Norouzi
2024-03-30 08:35:16 -07:00
parent 815b134e1e
commit ef0e752929
13 changed files with 460 additions and 382 deletions

View File

@ -26,7 +26,7 @@ Licence:
#include "Vectors.hpp"
#include "phasicFlowKokkos.hpp"
#include "pointFieldToVTK.hpp"
//#include "triSurfaceFieldToVTK.hpp"
#include "triSurfaceFieldToVTK.hpp"
//#include "readControlDict.hpp"
@ -60,10 +60,10 @@ int main(int argc, char** argv )
"path");
bool separateSurfaces = false;
cmds.addOption(
cmds.add_flag(
"-s,--separate-surfaces",
separateSurfaces,
"surfaces in the geometry are converted separatedly");
"use this when you want to have sub-surfaces in separate files");
wordVector fields;
bool allFields = true;
@ -117,15 +117,16 @@ int main(int argc, char** argv )
if( !validRange.isMember( folders.time() ) )continue;
output<< "time: " << Cyan_Text( folders.time() )<<" s" <<endl;
/*if(!noGoem)
if(!noGoem)
{
fileSystem geomFolder = folders.folder()/geometryFolder__;
if(!pFlow::TSFtoVTK::convertTimeFolderTriSurfaceFields(geomFolder, folders.time(), destFolder, "surface"))
if(!pFlow::TSFtoVTK::convertTimeFolderTriSurfaceFields(
Control, destFolder, "surface", separateSurfaces))
{
fatalExit;
return 1;
}
}*/
}
if(!noParticle)
{