mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
pFlowToVTK finalized and tested
- geometry conversion now can handle separate vtk files.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user