mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
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:
41
utilities/pFlowToVTK/fileSeries.hpp
Normal file
41
utilities/pFlowToVTK/fileSeries.hpp
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
|
||||
|
||||
#ifndef __fileSeries_hpp__
|
||||
#define __fileSeries_hpp__
|
||||
|
||||
#include "fileStream.hpp"
|
||||
#include "Map.hpp"
|
||||
|
||||
|
||||
namespace pFlow::PFtoVTK
|
||||
{
|
||||
|
||||
class fileSeries
|
||||
{
|
||||
private:
|
||||
|
||||
using TimeFileType = Map<real, word>;
|
||||
|
||||
Map<word, TimeFileType> timeFiles_;
|
||||
|
||||
fileSystem destDir_;
|
||||
|
||||
void writeOneBaseName(const word& baseName);
|
||||
|
||||
public:
|
||||
|
||||
fileSeries(const fileSystem dest);
|
||||
|
||||
~fileSeries();
|
||||
|
||||
|
||||
bool addTimeFile(const word& baseName, real time, const word& fileName);
|
||||
|
||||
bool addTimeFile(const wordList& baseNames, real time, const wordList& fileNames);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif //__fileSeries_hpp__
|
Reference in New Issue
Block a user