# PhasicFlow: solvers/grainGranFlow/createDEMComponents.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.

createDEMComponents.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.
-----------------------------------------------------------------------------*/
//
REPORT(0)<<"\nReading sphere particles . . ."<<END_REPORT;
pFlow::grainParticles grnParticles(Control, proprties);
//
REPORT(0)<<"\nCreating particle insertion object . . ."<<END_REPORT;
/*auto& sphInsertion =
Control.caseSetup().emplaceObject<sphereInsertion>(
objectFile(
insertionFile__,
"",
objectFile::READ_ALWAYS,
objectFile::WRITE_ALWAYS
),
sphParticles,
sphParticles.shapes()
);*/
auto grnInsertion = pFlow::grainInsertion(
grnParticles,
grnParticles.grains());
REPORT(0)<<"\nCreating interaction model for sphere-sphere contact and sphere-wall contact . . ."<<END_REPORT;
auto interactionPtr = pFlow::interaction::create(
Control,
grnParticles,
surfGeometry
);
auto& grnInteraction = interactionPtr();
interactionPtr
auto interactionPtr
Definition: createDEMComponents.hpp:44
grnParticles
pFlow::grainParticles grnParticles(Control, proprties)
grnInsertion
auto grnInsertion
Definition: createDEMComponents.hpp:39
pFlow::grainParticles
Definition: grainParticles.hpp:42
pFlow::interaction::create
static uniquePtr< interaction > create(systemControl &control, const particles &prtcl, const geometry &geom)
Definition: interaction.cpp:48
surfGeometry
auto & surfGeometry
Definition: setSurfaceGeometry.hpp:26
pFlow::grainParticles::grains
const auto & grains() const
const reference to shapes object
Definition: grainParticles.hpp:147
proprties
auto proprties
Definition: setProperty.hpp:26
END_REPORT
#define END_REPORT
Definition: streams.hpp:40
REPORT
REPORT(0)<<"\nReading sphere particles . . ."<< END_REPORT
pFlow::grainInsertion
Insertion< grainShape > grainInsertion
Definition: Insertions.hpp:34
grnInteraction
auto & grnInteraction
Definition: createDEMComponents.hpp:50
Control
auto & Control
Definition: initialize_Control.hpp:47