Binary conversion from pointFiled files to vtk format

- all vtk files are stored in the /particles/ folder
- terminal output is modified
- time series file are added. files with extntions .vtk.series can be loaded into paraview
This commit is contained in:
HRN
2025-01-09 19:16:18 +03:30
parent d39e1ec27b
commit 66c3cda39e
17 changed files with 530 additions and 106 deletions

View File

@ -34,15 +34,17 @@ class vtkFile
{
protected:
fileSystem dirPath_;
uniquePtr<oFstream> oStream_= nullptr;
word baseName_;
real time_ = 0.0;
bool binary_ = false;
bool append_=false;
uniquePtr<oFstream> oStream_= nullptr;
real time_ = 0.0;
fileSystem dirPath_;
word baseName_;
bool openStream(bool wHeader);
@ -54,6 +56,7 @@ public:
const fileSystem dir,
const word& bName,
real time,
bool bnry,
bool append = false);
virtual ~vtkFile() = default;
@ -87,6 +90,12 @@ public:
return false;
}
inline
bool binary()const
{
return binary_;
}
virtual fileSystem fileName()const;
};