www.cemf.ir
boundaryContactSearch.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 #ifndef __boundaryContactSearch_hpp__
21 #define __boundaryContactSearch_hpp__
22 
23 #include "generalBoundary.hpp"
24 #include "contactSearchGlobals.hpp"
25 #include "virtualConstructor.hpp"
26 
27 namespace pFlow
28 {
29 
30 class contactSearch;
31 
33  : public generalBoundary
34 {
35 private:
37 
40 
43 
45  bool performedSearch_ = false;
46 
47 public:
48  // type info
49  TypeInfo("boundaryContactSearch<none>");
50 
52  const dictionary &dict,
53  const boundaryBase &boundary,
54  const contactSearch &cSearch);
55 
59  (
60  const dictionary &dict,
61  const boundaryBase &boundary,
62  const contactSearch &cSearch),
63  (dict, boundary, cSearch));
64 
65  add_vCtor(
68  boundaryBase);
69 
70  const contactSearch &cSearch() const
71  {
72  return contactSearch_;
73  }
74 
76  real t,
77  real dt,
78  uint32 iter,
79  const message &msg,
80  const anyList &varList) override
81  {
82 
84  {
85  // do nothing
86  }
87  return true;
88  }
89 
90  virtual bool broadSearch(
91  uint32 iter,
92  real t,
93  real dt,
94  csPairContainerType &ppPairs,
95  csPairContainerType &pwPairs,
96  bool force = false)
97  {
98  return true;
99  }
100 
102  const dictionary &dict,
103  const boundaryBase &boundary,
104  const contactSearch &cSearch);
105 };
106 
107 }
108 
109 #endif //__boundaryContactSearch_hpp__
pFlow::message::equivalentTo
bool equivalentTo(EVENT evnt) const
Definition: message.hpp:131
pFlow::message
Definition: message.hpp:33
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::boundaryContactSearch::boundaryContactSearch
boundaryContactSearch(const dictionary &dict, const boundaryBase &boundary, const contactSearch &cSearch)
Definition: boundaryContactSearch.cpp:24
pFlow::boundaryContactSearch::cSearch
const contactSearch & cSearch() const
Definition: boundaryContactSearch.hpp:70
pFlow::boundaryContactSearch::broadSearch
virtual bool broadSearch(uint32 iter, real t, real dt, csPairContainerType &ppPairs, csPairContainerType &pwPairs, bool force=false)
Definition: boundaryContactSearch.hpp:90
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::boundaryContactSearch::create_vCtor
create_vCtor(boundaryContactSearch, boundaryBase,(const dictionary &dict, const boundaryBase &boundary, const contactSearch &cSearch),(dict, boundary, cSearch))
pFlow::unsortedPairs
Definition: unsortedPairs.hpp:32
pFlow
Definition: demGeometry.hpp:27
pFlow::boundaryContactSearch::contactSearch_
const contactSearch & contactSearch_
Definition: boundaryContactSearch.hpp:36
pFlow::message::BNDR_RESET
@ BNDR_RESET
Definition: message.hpp:48
pFlow::anyList
Definition: anyList.hpp:35
pFlow::boundaryContactSearch::add_vCtor
add_vCtor(boundaryContactSearch, boundaryContactSearch, boundaryBase)
pFlow::boundaryContactSearch::updateInterval_
uint32 updateInterval_
update interval in terms of iteration numebr
Definition: boundaryContactSearch.hpp:39
pFlow::boundaryContactSearch::performedSearch_
bool performedSearch_
performed search?
Definition: boundaryContactSearch.hpp:45
contactSearchGlobals.hpp
virtualConstructor.hpp
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pFlow::boundaryContactSearch::hearChanges
bool hearChanges(real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
Definition: boundaryContactSearch.hpp:75
pFlow::boundaryContactSearch
Definition: boundaryContactSearch.hpp:32
pFlow::boundaryContactSearch::create
static uniquePtr< boundaryContactSearch > create(const dictionary &dict, const boundaryBase &boundary, const contactSearch &cSearch)
Definition: boundaryContactSearch.cpp:39
pFlow::contactSearch
Definition: contactSearch.hpp:42
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
generalBoundary.hpp
pFlow::generalBoundary::boundary
const auto & boundary() const
Definition: generalBoundary.hpp:108
pFlow::boundaryContactSearch::lastUpdated_
uint32 lastUpdated_
last iteration number which contact search has been performed
Definition: boundaryContactSearch.hpp:42
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::generalBoundary
Definition: generalBoundary.hpp:38
pFlow::boundaryContactSearch::TypeInfo
TypeInfo("boundaryContactSearch<none>")