# PhasicFlow: src/Interaction/contactSearch/boundaries/boundaryContactSearchList.cpp 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.

boundaryContactSearchList.cpp
Go to the documentation of this file.
#include "boundaryContactSearchList.hpp"
#include "boundaryList.hpp"
void pFlow::boundaryContactSearchList::setList(
const dictionary &dict,
const contactSearch &cSearch)
{
for(auto i=0; i<boundaries_.size(); i++)
{
this->set
(
i,
boundaryContactSearch::create(dict, boundaries_[i], cSearch)
);
}
}
pFlow::boundaryContactSearchList::boundaryContactSearchList(
const dictionary &dict,
const boundaryList& bndrs,
const contactSearch &cSearch)
:
ListPtr(bndrs.size()),
boundaries_(bndrs)
{
setList(dict, cSearch);
}
bool pFlow::boundaryContactSearchList::boundariesUpdated() const
{
return boundaries_.boundariesUpdated();
}
pFlow::ListPtr::size
size_t size() const
Definition: ListPtrI.hpp:266
pFlow::boundaryContactSearchList::boundariesUpdated
bool boundariesUpdated() const
Definition: boundaryContactSearchList.cpp:29
pFlow::ListPtr
Definition: ListPtr.hpp:37
boundaryContactSearchList.hpp
pFlow::boundaryList
Definition: boundaryList.hpp:35
boundaryList.hpp
pFlow::boundaryContactSearchList::setList
void setList(const dictionary &dict, const contactSearch &cSearch)
Definition: boundaryContactSearchList.cpp:4
pFlow::boundaryContactSearchList::boundaries_
const boundaryList & boundaries_
Definition: boundaryContactSearchList.hpp:16
pFlow::boundaryContactSearchList::boundaryContactSearchList
boundaryContactSearchList(const dictionary &dict, const boundaryList &bndrs, const contactSearch &cSearch)
Definition: boundaryContactSearchList.cpp:18
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::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::ListPtr< boundaryContactSearch >::set
uniquePtr< boundaryContactSearch > set(size_t i, boundaryContactSearch *ptr)
Definition: ListPtrI.hpp:155