www.cemf.ir
selectorGeometric.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 __selectorGeometric_hpp__
22 #define __selectorGeometric_hpp__
23 
24 #include "pStructSelector.hpp"
25 #include "PeakableRegion.hpp"
26 #include "pointStructure.hpp"
27 #include "dictionary.hpp"
28 
29 namespace pFlow
30 {
31 
32 template<typename GeomType>
34 :
35  public pStructSelector
36 {
37 private:
38 
40 
42 
43  uint32Vector selectedPoints_{"selectedPoints"};
44 
45  bool selectPoints();
46 
47 public:
48 
49  TypeInfoTemplate11("selector", GeomType);
50 
52 
54  const word& type,
55  const pointStructure& pStruct,
56  const dictionary& dict);
57 
58  add_vCtor
59  (
63  );
64 
65  add_vCtor
66  (
69  word
70  );
71 
72  ~selectorGeometric() override = default;
73 
74  const uint32Vector& selectedPoints()const override
75  {
76  return selectedPoints_;
77  }
78 
80  {
81  return selectedPoints_;
82  }
83 };
84 
85 }
86 
87 #include "selectorGeometric.cpp"
88 
89 #endif //__selectorGeometric_hpp__
pFlow::selectorGeometric::selectedPoints
uint32Vector & selectedPoints() override
Definition: selectorGeometric.hpp:79
pFlow::selectorGeometric::selectedPoints
const uint32Vector & selectedPoints() const override
Definition: selectorGeometric.hpp:74
selectorGeometric.cpp
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::selectorGeometric::selectPoints
bool selectPoints()
Definition: selectorGeometric.cpp:5
pFlow::selectorGeometric::add_vCtor
add_vCtor(pStructSelector, selectorGeometric, dictionary)
pFlow
Definition: demGeometry.hpp:27
pStructSelector.hpp
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::selectorGeometric::type_
word type_
Definition: selectorGeometric.hpp:39
PeakableRegion.hpp
dictionary.hpp
pFlow::selectorGeometric::TypeInfoTemplate11
TypeInfoTemplate11("selector", GeomType)
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition: pStructSelector.cpp:45
pFlow::selectorGeometric
Definition: selectorGeometric.hpp:33
pFlow::pStructSelector
Definition: pStructSelector.hpp:36
pFlow::selectorGeometric::~selectorGeometric
~selectorGeometric() override=default
pFlow::selectorGeometric::selectedPoints_
uint32Vector selectedPoints_
Definition: selectorGeometric.hpp:43
pFlow::selectorGeometric::pRegion_
PeakableRegion< GeomType > pRegion_
Definition: selectorGeometric.hpp:41
pFlow::Vector< uint32 >
pointStructure.hpp
pFlow::PeakableRegion
Definition: PeakableRegion.hpp:32
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::selectorGeometric::selectorGeometric
selectorGeometric(const pointStructure &pStruct, const dictionary &dict)
Definition: selectorGeometric.cpp:25