www.cemf.ir
empty.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 __empty_hpp__
22 #define __empty_hpp__
23 
24 #include "positionParticles.hpp"
25 
26 namespace pFlow
27 {
28 
29 
30 class empty
31 :
32  public positionParticles
33 {
34 private:
35 
37 
38 public:
39 
40  // - type Info
41  TypeInfo("empty");
42 
43  empty(
44  systemControl& control,
45  const dictionary& dict);
46 
47  // - add this class to vCtor selection table
48  add_vCtor(
50  empty,
51  dictionary);
52 
53  ~empty() final = default;
54 
56 
57  uint32 numPoints()const final
58  {
59  return 0;
60  }
61 
62  uint32 size()const final
63  {
64  return 0;
65  }
66 
67  real maxDiameter() const final
68  {
69  return 1.0;
70  }
71 
72  // - const access to position
73  const realx3Vector& position()const final
74  {
75  return position_;
76  }
77 
78  // - access to position
80  {
81  return position_;
82  }
83 
84 
85 };
86 
87 
88 }
89 
90 
91 
92 #endif // __empety_hpp__
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::empty::maxDiameter
real maxDiameter() const final
Definition: empty.hpp:67
pFlow::empty
Definition: empty.hpp:30
pFlow::empty::position
const realx3Vector & position() const final
Definition: empty.hpp:73
pFlow::empty::add_vCtor
add_vCtor(positionParticles, empty, dictionary)
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::empty::TypeInfo
TypeInfo("empty")
pFlow
Definition: demGeometry.hpp:27
pFlow::empty::position
realx3Vector & position() final
Definition: empty.hpp:79
pFlow::empty::numPoints
uint32 numPoints() const final
Definition: empty.hpp:57
pFlow::empty::~empty
~empty() final=default
pFlow::empty::position_
realx3Vector position_
Definition: empty.hpp:36
pFlow::empty::empty
empty(systemControl &control, const dictionary &dict)
Definition: empty.cpp:25
pFlow::positionParticles
Definition: positionParticles.hpp:35
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
pFlow::empty::size
uint32 size() const final
Definition: empty.hpp:62