# PhasicFlow: utilities/postprocessPhasicFlow/postprocess.hpp Source File

postprocess.hpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
#ifndef __postprocess_hpp__
#define __postprocess_hpp__
#include "MapPtr.hpp"
#include "systemControl.hpp"
#include "pointRectCell.hpp"
#include "processField.hpp"
namespace pFlow
{
class timeFolder;
class postprocess
{
protected:
systemControl& control_;
dictionary dict_;
wordList numberBasedDictNames_;
wordList weightBasedDictNames_;
uniquePtr<repository> timeFolderReposiory_ {nullptr};
uniquePtr<pointRectCell> pointToCell_ {nullptr};
//uniquePtr<repository> processedRepository_ {nullptr};
ListPtr<processField> processedFields_;
real time_=0.0;
//orderedMapPtr<real, repository> timeFolderRepositories_;
Logical saveTimes{"No"};
Logical saveTimeFolders{"No"};
auto& timeFolderReposiory()
{
return timeFolderReposiory_();
}
public:
postprocess(systemControl& control);
bool processTimeFolder(real time, const word& tName, const fileSystem& localFolder);
bool processTimeFolder(const timeFolder& tFolder);
bool writeToVTK(fileSystem path, word bName)const;
};
}
#endif //__postprocess_hpp__
pFlow::postprocess::writeToVTK
bool writeToVTK(fileSystem path, word bName) const
Definition: postprocess.cpp:122
pFlow::List< word >
pFlow::ListPtr
Definition: ListPtr.hpp:38
pFlow::real
float real
Definition: builtinTypes.hpp:46
pFlow::postprocess::timeFolderReposiory_
uniquePtr< repository > timeFolderReposiory_
Definition: postprocess.hpp:49
pFlow::postprocess::control_
systemControl & control_
Definition: postprocess.hpp:41
pFlow::postprocess::processTimeFolder
bool processTimeFolder(real time, const word &tName, const fileSystem &localFolder)
Definition: postprocess.cpp:53
systemControl.hpp
pFlow::postprocess::processedFields_
ListPtr< processField > processedFields_
Definition: postprocess.hpp:55
pFlow::word
std::string word
Definition: builtinTypes.hpp:63
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::postprocess::saveTimes
Logical saveTimes
Definition: postprocess.hpp:62
pointRectCell.hpp
pFlow::postprocess::saveTimeFolders
Logical saveTimeFolders
Definition: postprocess.hpp:64
pFlow
Definition: demComponent.hpp:28
pFlow::fileSystem
Definition: fileSystem.hpp:63
processField.hpp
pFlow::postprocess
Definition: postprocess.hpp:37
pFlow::postprocess::numberBasedDictNames_
wordList numberBasedDictNames_
Definition: postprocess.hpp:45
pFlow::postprocess::weightBasedDictNames_
wordList weightBasedDictNames_
Definition: postprocess.hpp:47
pFlow::postprocess::postprocess
postprocess(systemControl &control)
Definition: postprocess.cpp:27
pFlow::Logical
Definition: Logical.hpp:35
pFlow::postprocess::pointToCell_
uniquePtr< pointRectCell > pointToCell_
Definition: postprocess.hpp:51
pFlow::uniquePtr
Definition: uniquePtr.hpp:44
pFlow::postprocess::timeFolderReposiory
auto & timeFolderReposiory()
Definition: postprocess.hpp:67
pFlow::postprocess::dict_
dictionary dict_
Definition: postprocess.hpp:43
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::postprocess::time_
real time_
Definition: postprocess.hpp:57
MapPtr.hpp
pFlow::timeFolder
Definition: timeFolder.hpp:32