www.cemf.ir
postprocess.hpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 
21 #ifndef __postprocess_hpp__
22 #define __postprocess_hpp__
23 
24 
25 #include "MapPtr.hpp"
26 #include "systemControl.hpp"
27 #include "pointRectCell.hpp"
28 #include "processField.hpp"
29 
30 
31 namespace pFlow
32 {
33 
34 class timeFolder;
35 
36 
38 {
39 protected:
40 
42 
44 
46 
48 
50 
52 
54 
56 
58 
59  //uniquePtr<repository> processedRepository_ {nullptr};
60 
62 
63  real time_=0.0;
64 
65  //orderedMapPtr<real, repository> timeFolderRepositories_;
66 
67 
69 
71 
72 
74  {
75  return timeFolderReposiory_();
76  }
77 
78 public:
79 
80  postprocess(systemControl& control);
81 
82 
83 
84  bool processTimeFolder(real time, const word& tName, const fileSystem& localFolder);
85 
86  bool processTimeFolder(const timeFolder& tFolder);
87 
88 
89  bool writeToVTK(fileSystem path, word bName)const;
90 
91 
92 };
93 
94 
95 
96 }
97 
98 
99 
100 #endif //__postprocess_hpp__
pFlow::postprocess::writeToVTK
bool writeToVTK(fileSystem path, word bName) const
Definition: postprocess.cpp:133
pFlow::List< word >
pFlow::ListPtr
Definition: ListPtr.hpp:37
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::postprocess::timeFolderReposiory_
uniquePtr< repository > timeFolderReposiory_
Definition: postprocess.hpp:55
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:58
systemControl.hpp
pFlow::postprocess::processedFields_
ListPtr< processField > processedFields_
Definition: postprocess.hpp:61
pFlow::postprocess::countedVairablesLists_
List< uint32List > countedVairablesLists_
Definition: postprocess.hpp:53
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::postprocess::saveTimes
Logical saveTimes
Definition: postprocess.hpp:68
pointRectCell.hpp
pFlow::postprocess::saveTimeFolders
Logical saveTimeFolders
Definition: postprocess.hpp:70
pFlow
Definition: demGeometry.hpp:27
pFlow::fileSystem
Manages file pathes, manupulate and combines them.
Definition: fileSystem.hpp:71
processField.hpp
pFlow::postprocess::countedVariableNamesList_
List< wordList > countedVariableNamesList_
Definition: postprocess.hpp:51
pFlow::postprocess::countDictNames_
wordList countDictNames_
Definition: postprocess.hpp:49
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:28
pFlow::Logical
Holds a bool value and converts strings to bool.
Definition: Logical.hpp:39
pFlow::postprocess::pointToCell_
uniquePtr< pointRectCell > pointToCell_
Definition: postprocess.hpp:57
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::postprocess::timeFolderReposiory
auto & timeFolderReposiory()
Definition: postprocess.hpp:73
pFlow::postprocess::dict_
dictionary dict_
Definition: postprocess.hpp:43
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67
pFlow::postprocess::time_
real time_
Definition: postprocess.hpp:63
MapPtr.hpp
pFlow::timeFolder
Definition: timeFolder.hpp:32