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

@ -40,15 +40,21 @@ protected:
real time_ = 0.0;
bool append_=false;
uniquePtr<oFstream> oStream_= nullptr;
bool openStream();
bool openStream(bool wHeader);
virtual bool writeHeader();
public:
vtkFile(const fileSystem dir, const word& bName, real time);
vtkFile(
const fileSystem dir,
const word& bName,
real time,
bool append = false);
virtual ~vtkFile() = default;
@ -56,7 +62,7 @@ public:
{
if(!oStream_)
{
if(!openStream())
if(!openStream(!append_))
{
fatalErrorInFunction<<
" error in opening vtkFile "<< fileName() <<endl;