PhasicFlow
v0.1
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
#include "
box.hpp
"
26
27
namespace
pFlow
28
{
29
30
31
class
empty
32
:
33
public
positionParticles
34
{
35
protected
:
36
37
dictionary
emptyDict_
;
38
39
40
realx3Vector
position_
;
41
42
public
:
43
44
// - type Info
45
TypeInfo
(
"empty"
);
46
47
empty
(
const
dictionary
& dict);
48
49
// - add this class to vCtor selection table
50
add_vCtor
(
51
positionParticles
,
52
empty
,
53
dictionary
);
54
55
virtual
~empty
() =
default
;
56
58
59
virtual
label
numPoints
()
const
60
{
61
return
0;
62
}
63
64
virtual
label
size
()
const
65
{
66
return
0;
67
}
68
69
real
maxDiameter
()
const override
70
{
71
return
1.0;
72
}
73
74
// - const access to position
75
virtual
const
realx3Vector
&
position
()
const
76
{
77
return
position_
;
78
}
79
80
// - access to position
81
virtual
realx3Vector
&
position
()
82
{
83
return
position_
;
84
}
85
86
87
};
88
89
90
}
91
92
93
94
#endif // __empety_hpp__
pFlow::empty::~empty
virtual ~empty()=default
pFlow::empty::size
virtual label size() const
Definition:
empty.hpp:64
pFlow::real
float real
Definition:
builtinTypes.hpp:46
pFlow::empty
Definition:
empty.hpp:31
pFlow::empty::add_vCtor
add_vCtor(positionParticles, empty, dictionary)
box.hpp
pFlow::empty::TypeInfo
TypeInfo("empty")
pFlow
Definition:
demComponent.hpp:28
pFlow::empty::maxDiameter
real maxDiameter() const override
Definition:
empty.hpp:69
pFlow::empty::position
virtual const realx3Vector & position() const
Definition:
empty.hpp:75
pFlow::empty::emptyDict_
dictionary emptyDict_
Definition:
empty.hpp:37
pFlow::empty::position_
realx3Vector position_
Definition:
empty.hpp:40
pFlow::empty::empty
empty(const dictionary &dict)
Definition:
empty.cpp:25
pFlow::positionParticles
Definition:
positionParticles.hpp:102
pFlow::empty::numPoints
virtual label numPoints() const
Definition:
empty.hpp:59
pFlow::label
std::size_t label
Definition:
builtinTypes.hpp:61
pFlow::Vector< realx3 >
positionParticles.hpp
pFlow::dictionary
Definition:
dictionary.hpp:38
pFlow::empty::position
virtual realx3Vector & position()
Definition:
empty.hpp:81
utilities
particlesPhasicFlow
empty
empty.hpp
Generated by
1.8.17