interaction.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 __interaction_hpp__
22 #define __interaction_hpp__
23 
24 #include "demInteraction.hpp"
25 #include "eventObserver.hpp"
26 #include "interactionBase.hpp"
27 #include "contactSearch.hpp"
28 
29 
30 
31 namespace pFlow
32 {
33 
35 :
36  public demInteraction,
37  public eventObserver,
38  public interactionBase
39 {
40 public:
41 
42  using IdType = typename interactionBase::IdType;
43 
45 
47 
48 protected:
49 
52 
55 
56 public:
57 
58  TypeInfo("interaction");
59 
60 
62 
65  const particles& prtcl,
66  const geometry& geom );
67 
68 
69 
70  virtual ~interaction() = default;
71 
75  (
77  const particles& prtcl,
78  const geometry& geom
79  ),
80  (control, prtcl, geom)
81  );
82 
84  {
85  return contactSearch_;
86  }
87 
89  {
90  return contactSearch_();
91  }
92 
93  const auto& fileDict()const
94  {
95  return fileDict_;
96  }
97 
98  static
101  const particles& prtcl,
102  const geometry& geom);
103 
104 };
105 
106 
107 }
108 
109 #endif //__interaction_hpp__
pFlow::interactionBase::IndexType
CELL_INDEX_TYPE IndexType
Definition: interactionBase.hpp:35
pFlow::interactionBase::IdType
ID_TYPE IdType
Definition: interactionBase.hpp:37
pFlow::demComponent::control
const auto & control() const
Definition: demComponent.hpp:57
pFlow::interaction::contactSearchPtr
auto & contactSearchPtr()
Definition: interaction.hpp:83
pFlow::interaction::create
static uniquePtr< interaction > create(systemControl &control, const particles &prtcl, const geometry &geom)
Definition: interaction.cpp:56
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::interaction::ExecutionSpace
typename interactionBase::ExecutionSpace ExecutionSpace
Definition: interaction.hpp:46
eventObserver.hpp
pFlow::interaction::TypeInfo
TypeInfo("interaction")
pFlow::eventObserver
Definition: eventObserver.hpp:33
pFlow::interactionBase::ExecutionSpace
DefaultExecutionSpace ExecutionSpace
Definition: interactionBase.hpp:39
interactionBase.hpp
pFlow
Definition: demComponent.hpp:28
pFlow::interaction::create_vCtor
create_vCtor(interaction, systemControl,(systemControl &control, const particles &prtcl, const geometry &geom),(control, prtcl, geom))
pFlow::demInteraction
Definition: demInteraction.hpp:32
pFlow::particles
Definition: particles.hpp:33
demInteraction.hpp
pFlow::interactionBase
Definition: interactionBase.hpp:31
pFlow::interaction::IndexType
typename interactionBase::IndexType IndexType
Definition: interaction.hpp:44
pFlow::interaction::contactSearchRef
auto & contactSearchRef()
Definition: interaction.hpp:88
pFlow::interaction::~interaction
virtual ~interaction()=default
pFlow::uniquePtr
Definition: uniquePtr.hpp:44
pFlow::geometry
Definition: geometry.hpp:37
pFlow::interaction::contactSearch_
uniquePtr< contactSearch > contactSearch_
contact search object for pp and pw interactions
Definition: interaction.hpp:54
contactSearch.hpp
pFlow::interaction::interaction
interaction(systemControl &control, const particles &prtcl, const geometry &geom)
Definition: interaction.cpp:25
pFlow::interaction::fileDict_
dictionary & fileDict_
interaction file dictionary
Definition: interaction.hpp:51
pFlow::interaction::IdType
typename interactionBase::IdType IdType
Definition: interaction.hpp:42
pFlow::interaction::fileDict
const auto & fileDict() const
Definition: interaction.hpp:93
pFlow::interaction
Definition: interaction.hpp:34
pFlow::dictionary
Definition: dictionary.hpp:38