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

Insertion.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 __Insertion_hpp__
#define __Insertion_hpp__
#include "InsertionRegion.hpp"
#include "ListPtr.hpp"
#include "insertion.hpp"
#include "particles.hpp"
namespace pFlow
{
template<typename ShapeType>
class Insertion : public insertion
{
private:
const ShapeType& shapes_;
// - insertion regions
ListPtr<InsertionRegion<ShapeType>> regions_;
bool readInsertionDict();
protected:
bool writeInsertionDict(dictionary& dict)const override;
public:
TypeInfoTemplateNV11("Insertion", ShapeType);
Insertion(particles& prtcl, const ShapeType& shapes);
// Insertion(fileSystem file, particles& prtcl, const ShapeType& shapes);
bool insertParticles(uint32 iter, real t, real dt);
/*virtual bool read(iIstream& is) override;
virtual bool write(iOstream& os)const override;*/
};
}
#include "Insertion.cpp"
#endif
pFlow::ListPtr
Definition: ListPtr.hpp:37
ListPtr.hpp
pFlow::real
float real
Definition: builtinTypes.hpp:45
Insertion.cpp
insertion.hpp
pFlow::Insertion::Insertion
Insertion(particles &prtcl, const ShapeType &shapes)
Definition: Insertion.cpp:77
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::Insertion::TypeInfoTemplateNV11
TypeInfoTemplateNV11("Insertion", ShapeType)
particles.hpp
pFlow::Insertion::writeInsertionDict
bool writeInsertionDict(dictionary &dict) const override
Write to dictionary.
Definition: Insertion.cpp:25
pFlow
Definition: demGeometry.hpp:27
pFlow::Insertion::regions_
ListPtr< InsertionRegion< ShapeType > > regions_
Definition: Insertion.hpp:63
pFlow::Insertion::shapes_
const ShapeType & shapes_
Definition: Insertion.hpp:60
pFlow::particles
Definition: particles.hpp:33
pFlow::dictionary::dict
virtual dictionary & dict()
ref to this dictionary, if it is a dictionary
Definition: dictionary.cpp:369
InsertionRegion.hpp
pFlow::Insertion::readInsertionDict
bool readInsertionDict()
Definition: Insertion.cpp:51
pFlow::Insertion
This class manages all the insertion regions for particles insertion in the simulation.
Definition: Insertion.hpp:56
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::Insertion::insertParticles
bool insertParticles(uint32 iter, real t, real dt)
Definition: Insertion.cpp:112
pFlow::insertion
Base class for particle insertion.
Definition: insertion.hpp:35