www.cemf.ir
pointSorting.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 __pointSorting_hpp__
21 #define __pointSorting_hpp__
22 
23 #include "baseTimeControl.hpp"
24 #include "indexContainer.hpp"
25 #include "pointFlag.hpp"
26 
27 
28 namespace pFlow
29 {
30 
31 class box;
32 
33 
35 {
36 private:
37 
39 
41 
43 
44 public:
45 
46  explicit pointSorting(const dictionary& dict);
47 
48  bool performSorting()const
49  {
50  return performSorting_();
51  }
52 
53  bool sortTime(uint32 iter, real t, real dt)const
54  {
55  return performSorting_() && timeControl_.timeEvent(iter, t, dt);
56  }
57 
59  const box& boundingBox,
60  const ViewType1D<realx3>& pos,
61  const pFlagTypeDevice& flag
62  )const;
63 
64 };
65 
66 }
67 
68 #endif
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::pointSorting::getSortedIndices
uint32IndexContainer getSortedIndices(const box &boundingBox, const ViewType1D< realx3 > &pos, const pFlagTypeDevice &flag) const
Definition: pointSorting.cpp:45
pFlow::pointSorting::performSorting
bool performSorting() const
Definition: pointSorting.hpp:48
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::baseTimeControl::timeEvent
bool timeEvent(uint32 iter, real t, real dt) const
Definition: baseTimeControl.cpp:78
pFlow::pointSorting::timeControl_
baseTimeControl timeControl_
Definition: pointSorting.hpp:40
pFlow
Definition: demGeometry.hpp:27
pFlow::pointSorting::sortTime
bool sortTime(uint32 iter, real t, real dt) const
Definition: pointSorting.hpp:53
pFlow::pointSorting::pointSorting
pointSorting(const dictionary &dict)
Definition: pointSorting.cpp:24
pFlow::baseTimeControl
Definition: baseTimeControl.hpp:29
pFlow::pointSorting
Definition: pointSorting.hpp:34
baseTimeControl.hpp
pFlow::ViewType1D
Kokkos::View< T *, properties... > ViewType1D
1D veiw as a vector
Definition: KokkosTypes.hpp:93
pFlow::Logical
Holds a bool value and converts strings to bool.
Definition: Logical.hpp:39
pFlow::pointSorting::dx_
real dx_
Definition: pointSorting.hpp:42
pFlow::box
Definition: box.hpp:32
indexContainer.hpp
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::pointFlag< DefaultExecutionSpace >
pFlow::indexContainer
It holds two vectors of indecis on Host and Device.
Definition: indexContainer.hpp:39
pointFlag.hpp
pFlow::pointSorting::performSorting_
Logical performSorting_
Definition: pointSorting.hpp:38