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

periodicBoundaryContactSearch.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 __periodicBoundaryContactSearch_hpp__
#define __periodicBoundaryContactSearch_hpp__
#include "boundaryContactSearch.hpp"
#include "box.hpp"
#include "ppwBndryContactSearch.hpp"
#include "pointFields.hpp"
#include "wallBoundaryContactSearch.hpp"
namespace pFlow
{
class periodicBoundaryContactSearch
: public boundaryContactSearch
{
private:
box searchBox_;
realx3 transferVec_;
uint32 thisIndex_;
uint32 mirrorIndex_;
uniquePtr<ppwBndryContactSearch> ppContactSearch_ = nullptr;
uniquePtr<wallBoundaryContactSearch> pwContactSearch_ = nullptr;
const realPointField_D &diameter_;
bool masterSearch_ = false;
void setSearchBox();
public:
TypeInfo("boundaryContactSearch<regular,periodic>")
periodicBoundaryContactSearch(
const dictionary &dict,
const boundaryBase &boundary,
const contactSearch &cSearch);
~periodicBoundaryContactSearch() override = default;
add_vCtor(
boundaryContactSearch,
periodicBoundaryContactSearch,
boundaryBase);
bool broadSearch(
uint32 iter,
real t,
real dt,
csPairContainerType &ppPairs,
csPairContainerType &pwPairs,
bool force = false) override;
};
}
#endif //__periodicBoundaryContactSearch_hpp__
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::periodicBoundaryContactSearch::thisIndex_
uint32 thisIndex_
Definition: periodicBoundaryContactSearch.hpp:41
wallBoundaryContactSearch.hpp
pFlow::periodicBoundaryContactSearch::diameter_
const realPointField_D & diameter_
Definition: periodicBoundaryContactSearch.hpp:49
pFlow::periodicBoundaryContactSearch::masterSearch_
bool masterSearch_
Definition: periodicBoundaryContactSearch.hpp:51
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
box.hpp
pointFields.hpp
pFlow::periodicBoundaryContactSearch::ppContactSearch_
uniquePtr< ppwBndryContactSearch > ppContactSearch_
Definition: periodicBoundaryContactSearch.hpp:45
boundaryContactSearch.hpp
pFlow::unsortedPairs
Definition: unsortedPairs.hpp:32
pFlow
Definition: demGeometry.hpp:27
pFlow::periodicBoundaryContactSearch::TypeInfo
TypeInfo("boundaryContactSearch<regular,periodic>") periodicBoundaryContactSearch(const dictionary &dict
pFlow::pointField
Definition: pointField.hpp:33
pFlow::periodicBoundaryContactSearch::pwContactSearch_
uniquePtr< wallBoundaryContactSearch > pwContactSearch_
Definition: periodicBoundaryContactSearch.hpp:47
ppwBndryContactSearch.hpp
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pFlow::periodicBoundaryContactSearch::setSearchBox
void setSearchBox()
Definition: periodicBoundaryContactSearch.cpp:28
pFlow::boundaryContactSearch
Definition: boundaryContactSearch.hpp:32
pFlow::contactSearch
Definition: contactSearch.hpp:42
pFlow::periodicBoundaryContactSearch::cSearch
const boundaryBase const contactSearch & cSearch
Definition: periodicBoundaryContactSearch.hpp:61
pFlow::periodicBoundaryContactSearch::mirrorIndex_
uint32 mirrorIndex_
Definition: periodicBoundaryContactSearch.hpp:43
pFlow::box
Definition: box.hpp:32
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::periodicBoundaryContactSearch::boundary
const boundaryBase & boundary
Definition: periodicBoundaryContactSearch.hpp:60
pFlow::periodicBoundaryContactSearch::add_vCtor
add_vCtor(boundaryContactSearch, periodicBoundaryContactSearch, boundaryBase)
pFlow::periodicBoundaryContactSearch::broadSearch
bool broadSearch(uint32 iter, real t, real dt, csPairContainerType &ppPairs, csPairContainerType &pwPairs, bool force=false) override
Definition: periodicBoundaryContactSearch.cpp:87
pFlow::periodicBoundaryContactSearch::searchBox_
box searchBox_
Definition: periodicBoundaryContactSearch.hpp:37
pFlow::triple< real >
pFlow::periodicBoundaryContactSearch
Definition: periodicBoundaryContactSearch.hpp:33
pFlow::periodicBoundaryContactSearch::transferVec_
realx3 transferVec_
Definition: periodicBoundaryContactSearch.hpp:39
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