# PhasicFlow: src/Particles/GrainParticles/boundaryGrainParticlesList.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.

boundaryGrainParticlesList.cpp
Go to the documentation of this file.
#include "boundaryGrainParticlesList.hpp"
pFlow::boundaryGrainParticlesList::boundaryGrainParticlesList(
const boundaryList &bndrs,
grainParticles &prtcls
)
:
ListPtr(bndrs.size()),
boundaries_(bndrs)
{
for(auto i=0; i<boundaries_.size(); i++)
{
this->set
(
i,
boundaryGrainParticles::create(boundaries_[i], prtcls)
);
}
}
pFlow::ListPtr::size
size_t size() const
Definition: ListPtrI.hpp:266
pFlow::ListPtr
Definition: ListPtr.hpp:37
pFlow::grainParticles
Definition: grainParticles.hpp:42
pFlow::boundaryList
Definition: boundaryList.hpp:35
pFlow::boundaryGrainParticlesList::boundaries_
const boundaryList & boundaries_
Definition: boundaryGrainParticlesList.hpp:19
pFlow::boundaryGrainParticlesList::boundaryGrainParticlesList
boundaryGrainParticlesList(const boundaryList &bndrs, grainParticles &prtcls)
Definition: boundaryGrainParticlesList.cpp:3
boundaryGrainParticlesList.hpp
pFlow::boundaryGrainParticles::create
static uniquePtr< boundaryGrainParticles > create(const boundaryBase &boundary, grainParticles &prtcls)
Definition: boundaryGrainParticles.cpp:27
pFlow::ListPtr< boundaryGrainParticles >::set
uniquePtr< boundaryGrainParticles > set(size_t i, boundaryGrainParticles *ptr)
Definition: ListPtrI.hpp:155