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 
53  //uniquePtr<repository> processedRepository_ {nullptr};
54 
56 
57  real time_=0.0;
58 
59  //orderedMapPtr<real, repository> timeFolderRepositories_;
60 
61 
63 
65 
66 
68  {
69  return timeFolderReposiory_();
70  }
71 
72 public:
73 
74  postprocess(systemControl& control);
75 
76 
77 
78  bool processTimeFolder(real time, const word& tName, const fileSystem& localFolder);
79 
80  bool processTimeFolder(const timeFolder& tFolder);
81 
82 
83  bool writeToVTK(fileSystem path, word bName)const;
84 
85 
86 };
87 
88 
89 
90 }
91 
92 
93 
94 #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