PhasicFlow
v0.1
www.cemf.ir
interactionBase.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 __interactionBase_hpp__
22
#define __interactionBase_hpp__
23
24
#include "
interactionTypes.hpp
"
25
#include "
particles.hpp
"
26
#include "
geometry.hpp
"
27
28
namespace
pFlow
29
{
30
31
class
interactionBase
32
{
33
public
:
34
35
using
IndexType
=
CELL_INDEX_TYPE
;
36
37
using
IdType
=
ID_TYPE
;
38
39
using
ExecutionSpace
=
DefaultExecutionSpace
;
40
41
protected
:
42
43
const
particles
&
particles_
;
44
45
const
geometry
&
geometry_
;
46
47
public
:
48
49
interactionBase
(
50
const
particles
& prtcl,
51
const
geometry
& geom)
52
:
53
particles_
(prtcl),
54
geometry_
(geom)
55
{}
56
57
inline
58
const
auto
&
pStruct
()
const
59
{
60
return
particles_
.
pStruct
();
61
}
62
63
inline
64
const
auto
&
surface
()
const
65
{
66
return
geometry_
.
surface
();
67
}
68
69
inline
70
const
auto
&
Particles
()
const
71
{
72
return
particles_
;
73
}
74
75
inline
auto
&
Geometry
()
const
76
{
77
return
geometry_
;
78
}
79
};
80
81
}
82
83
84
#endif //__interactionBase_hpp__
pFlow::interactionBase::pStruct
const auto & pStruct() const
Definition:
interactionBase.hpp:58
pFlow::geometry::surface
auto & surface()
Definition:
geometry.hpp:160
pFlow::interactionBase::IndexType
CELL_INDEX_TYPE IndexType
Definition:
interactionBase.hpp:35
pFlow::interactionBase::particles_
const particles & particles_
Definition:
interactionBase.hpp:43
pFlow::interactionBase::interactionBase
interactionBase(const particles &prtcl, const geometry &geom)
Definition:
interactionBase.hpp:49
pFlow::interactionBase::IdType
ID_TYPE IdType
Definition:
interactionBase.hpp:37
pFlow::interactionBase::Particles
const auto & Particles() const
Definition:
interactionBase.hpp:70
pFlow::ID_TYPE
int32 ID_TYPE
Definition:
interactionTypes.hpp:36
pFlow::interactionBase::Geometry
auto & Geometry() const
Definition:
interactionBase.hpp:75
pFlow::CELL_INDEX_TYPE
int32 CELL_INDEX_TYPE
Definition:
interactionTypes.hpp:34
particles.hpp
pFlow::DefaultExecutionSpace
Kokkos::DefaultExecutionSpace DefaultExecutionSpace
Definition:
KokkosTypes.hpp:47
pFlow::interactionBase::surface
const auto & surface() const
Definition:
interactionBase.hpp:64
pFlow::interactionBase::geometry_
const geometry & geometry_
Definition:
interactionBase.hpp:45
pFlow::interactionBase::ExecutionSpace
DefaultExecutionSpace ExecutionSpace
Definition:
interactionBase.hpp:39
pFlow
Definition:
demComponent.hpp:28
pFlow::particles
Definition:
particles.hpp:33
pFlow::particles::pStruct
const auto & pStruct() const
Definition:
particles.hpp:118
interactionTypes.hpp
geometry.hpp
pFlow::interactionBase
Definition:
interactionBase.hpp:31
pFlow::geometry
Definition:
geometry.hpp:37
src
Interaction
interaction
interactionBase.hpp
Generated by
1.8.17