www.cemf.ir
countField.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
#ifndef __countField_hpp__
21
#define __countField_hpp__
22
23
24
#include "
virtualConstructor.hpp
"
25
#include "
dictionary.hpp
"
26
#include "
readFromTimeFolder.hpp
"
27
#include "
includeMask.hpp
"
28
29
30
namespace
pFlow
31
{
32
33
34
class
repository;
35
36
class
countField
37
{
38
protected
:
39
40
dictionary
dict_
;
41
42
mutable
readFromTimeFolder
timeFolder_
;
43
44
uniquePtr<includeMask>
includeMask_
=
nullptr
;
45
46
bool
static
getFieldType
(
47
const
dictionary
&
dict
,
48
readFromTimeFolder
&
timeFolder
,
49
word
& fieldName,
50
word
& fieldType);
51
52
public
:
53
54
TypeInfo
(
"countField"
);
55
56
countField
(
const
dictionary
&
dict
,
repository
& rep);
57
58
59
auto
&
dict
()
60
{
61
return
dict_
;
62
}
63
64
const
auto
&
dict
()
const
65
{
66
return
dict_
;
67
}
68
69
auto
&
timeFolderRepository
()
70
{
71
return
timeFolder_
.
db
();
72
}
73
74
75
auto
&
timeFolder
()
76
{
77
return
timeFolder_
;
78
}
79
80
word
variableName
()
const
81
{
82
return
dict_
.
name
();
83
}
84
85
// requires a class to read pointField from timefolder
86
bool
process
(
uint32
& countedValue);
87
88
89
90
//virtual bool writeToFile(iOstream& is) const = 0;
91
92
/*static
93
uniquePtr<countField> create(
94
const dictionary& dict,
95
repository& rep);*/
96
};
97
98
99
}
100
101
102
#endif //__countField_hpp__
includeMask.hpp
pFlow::countField::timeFolder
auto & timeFolder()
Definition:
countField.hpp:75
pFlow::countField::getFieldType
static bool getFieldType(const dictionary &dict, readFromTimeFolder &timeFolder, word &fieldName, word &fieldType)
Definition:
countField.cpp:25
pFlow::readFromTimeFolder
Definition:
readFromTimeFolder.hpp:31
pFlow::uint32
unsigned int uint32
Definition:
builtinTypes.hpp:56
pFlow::word
std::string word
Definition:
builtinTypes.hpp:64
readFromTimeFolder.hpp
pFlow::countField::variableName
word variableName() const
Definition:
countField.hpp:80
pFlow::readFromTimeFolder::db
auto & db()
Definition:
readFromTimeFolder.hpp:52
pFlow::countField::process
bool process(uint32 &countedValue)
Definition:
countField.cpp:78
pFlow
Definition:
demGeometry.hpp:27
pFlow::countField::dict
auto & dict()
Definition:
countField.hpp:59
pFlow::countField::TypeInfo
TypeInfo("countField")
dictionary.hpp
pFlow::countField::countField
countField(const dictionary &dict, repository &rep)
Definition:
countField.cpp:63
virtualConstructor.hpp
pFlow::countField
Definition:
countField.hpp:36
pFlow::countField::dict_
dictionary dict_
Definition:
countField.hpp:40
pFlow::iEntry::name
virtual word name() const
name/keyword of entry
Definition:
iEntry.hpp:100
pFlow::countField::includeMask_
uniquePtr< includeMask > includeMask_
Definition:
countField.hpp:44
pFlow::uniquePtr
Definition:
uniquePtr.hpp:42
pFlow::repository
Definition:
repository.hpp:34
pFlow::countField::timeFolder_
readFromTimeFolder timeFolder_
Definition:
countField.hpp:42
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::countField::dict
const auto & dict() const
Definition:
countField.hpp:64
pFlow::countField::timeFolderRepository
auto & timeFolderRepository()
Definition:
countField.hpp:69
pFlow::timeFolder
Definition:
timeFolder.hpp:32
utilities
postprocessPhasicFlow
countField.hpp
Generated by
1.8.17