www.cemf.ir
positionOrdered.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 __positionOrdered_hpp__
22 #define __positionOrdered_hpp__
23 
24 #include "positionParticles.hpp"
25 
26 namespace pFlow
27 {
28 
29 
31 :
32  public positionParticles
33 {
34 private:
35 
37 
39 
41 
43 
44  // - unit vector of the first axis
46 
47  // - unit vector of the second axis
49 
50  // - unit vector of the third axis
52 
53 
55 
56  bool findAxisIndex();
57 
58  bool positionPointsOrdered();
59 
60 public:
61 
62  // - type Info
63  TypeInfo("ordered");
64 
66  systemControl& control,
67  const dictionary& dict);
68 
69  // - add this class to vCtor selection table
70  add_vCtor(
73  dictionary);
74 
75  ~positionOrdered() final = default;
76 
78 
79  uint32 numPoints()const final
80  {
81  return static_cast<uint32>(position_.size());
82  }
83 
84  uint32 size()const final
85  {
86  return static_cast<uint32>(position_.size());
87  }
88 
89  real maxDiameter() const final
90  {
91  return diameter_;
92  }
93 
94  // - const access to position
95  const realx3Vector& position()const final
96  {
97  return position_;
98  }
99 
100  // - access to position
102  {
103  return position_;
104  }
105 
106 
107 };
108 
109 
110 }
111 
112 
113 
114 #endif // __positionOrdered_hpp__
pFlow::positionOrdered::axisOrder_
wordList axisOrder_
Definition: positionOrdered.hpp:42
pFlow::List< word >
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::positionOrdered::position_
realx3Vector position_
Definition: positionOrdered.hpp:54
pFlow::positionOrdered::findAxisIndex
bool findAxisIndex()
Definition: positionOrdered.cpp:26
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::positionOrdered::position
realx3Vector & position() final
Definition: positionOrdered.hpp:101
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::positionOrdered::positionPointsOrdered
bool positionPointsOrdered()
Definition: positionOrdered.cpp:78
pFlow::Vector::size
auto size() const
Size of the vector.
Definition: Vector.hpp:265
pFlow::positionOrdered::position
const realx3Vector & position() const final
Definition: positionOrdered.hpp:95
pFlow::positionOrdered::uVector1_
realx3 uVector1_
Definition: positionOrdered.hpp:45
pFlow::positionOrdered::TypeInfo
TypeInfo("ordered")
pFlow
Definition: demGeometry.hpp:27
pFlow::positionOrdered::uVector2_
realx3 uVector2_
Definition: positionOrdered.hpp:48
pFlow::positionOrdered::size
uint32 size() const final
Definition: positionOrdered.hpp:84
pFlow::positionOrdered::numPoints_
uint32 numPoints_
Definition: positionOrdered.hpp:40
pFlow::positionOrdered::numPoints
uint32 numPoints() const final
Definition: positionOrdered.hpp:79
pFlow::positionOrdered::~positionOrdered
~positionOrdered() final=default
pFlow::positionOrdered::diameter_
real diameter_
Definition: positionOrdered.hpp:38
pFlow::positionOrdered::add_vCtor
add_vCtor(positionParticles, positionOrdered, dictionary)
pFlow::positionOrdered
Definition: positionOrdered.hpp:30
pFlow::positionParticles
Definition: positionParticles.hpp:35
pFlow::positionOrdered::uVector3_
realx3 uVector3_
Definition: positionOrdered.hpp:51
pFlow::positionOrdered::poDict_
dictionary poDict_
Definition: positionOrdered.hpp:36
pFlow::positionOrdered::positionOrdered
positionOrdered(systemControl &control, const dictionary &dict)
Definition: positionOrdered.cpp:124
pFlow::positionOrdered::maxDiameter
real maxDiameter() const final
Definition: positionOrdered.hpp:89
pFlow::triple< real >
pFlow::Vector< realx3 >
positionParticles.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