# PhasicFlow: src/Interaction/contactSearch/boundaries/boundaryContactSearch/boundaryContactSearch.hpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

boundaryContactSearch.hpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
#ifndef __boundaryContactSearch_hpp__
#define __boundaryContactSearch_hpp__
#include "generalBoundary.hpp"
#include "contactSearchGlobals.hpp"
#include "virtualConstructor.hpp"
namespace pFlow
{
class contactSearch;
class boundaryContactSearch
: public generalBoundary
{
private:
const contactSearch &contactSearch_;
uint32 updateInterval_;
uint32 lastUpdated_ = 0;
bool performedSearch_ = false;
public:
// type info
TypeInfo("boundaryContactSearch<none>");
boundaryContactSearch(
const dictionary &dict,
const boundaryBase &boundary,
const contactSearch &cSearch);
create_vCtor(
boundaryContactSearch,
boundaryBase,
(
const dictionary &dict,
const boundaryBase &boundary,
const contactSearch &cSearch),
(dict, boundary, cSearch));
add_vCtor(
boundaryContactSearch,
boundaryContactSearch,
boundaryBase);
const contactSearch &cSearch() const
{
return contactSearch_;
}
bool hearChanges(
real t,
real dt,
uint32 iter,
const message &msg,
const anyList &varList) override
{
if (msg.equivalentTo(message::BNDR_RESET))
{
// do nothing
}
return true;
}
virtual bool broadSearch(
uint32 iter,
real t,
real dt,
csPairContainerType &ppPairs,
csPairContainerType &pwPairs,
bool force = false)
{
return true;
}
static uniquePtr<boundaryContactSearch> create(
const dictionary &dict,
const boundaryBase &boundary,
const contactSearch &cSearch);
};
}
#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>")