# PhasicFlow: src/Particles/Insertion/Insertion/Insertion.hpp Source File

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 "insertion.hpp"
#include "ListPtr.hpp"
#include "InsertionRegion.hpp"
#include "particles.hpp"
namespace pFlow
{
template<typename ShapeType>
class Insertion
:
public insertion
{
protected:
const ShapeType& shapes_;
// - insertion regions
ListPtr<InsertionRegion<ShapeType>> regions_;
bool readInsertionDict(const dictionary& dict);
bool writeInsertionDict(dictionary& dict)const;
public:
TypeInfoTemplateNV("Insertion",ShapeType);
Insertion(particles& prtcl, const ShapeType& shapes);
Insertion(fileSystem file, particles& prtcl, const ShapeType& shapes);
bool insertParticles(real currentTime, real dt);
virtual bool read(iIstream& is) override;
virtual bool write(iOstream& os)const override;
};
}
#include "Insertion.cpp"
#endif
pFlow::Insertion::TypeInfoTemplateNV
TypeInfoTemplateNV("Insertion", ShapeType)
pFlow::ListPtr
Definition: ListPtr.hpp:38
ListPtr.hpp
pFlow::real
float real
Definition: builtinTypes.hpp:46
pFlow::Insertion::insertParticles
bool insertParticles(real currentTime, real dt)
Definition: Insertion.cpp:103
pFlow::Insertion::read
virtual bool read(iIstream &is) override
Definition: Insertion.cpp:171
Insertion.cpp
insertion.hpp
pFlow::Insertion::Insertion
Insertion(particles &prtcl, const ShapeType &shapes)
Definition: Insertion.cpp:71
particles.hpp
pFlow
Definition: demComponent.hpp:28
pFlow::Insertion::regions_
ListPtr< InsertionRegion< ShapeType > > regions_
Definition: Insertion.hpp:44
pFlow::fileSystem
Definition: fileSystem.hpp:63
pFlow::Insertion::shapes_
const ShapeType & shapes_
Definition: Insertion.hpp:41
pFlow::Insertion::write
virtual bool write(iOstream &os) const override
Definition: Insertion.cpp:198
pFlow::iIstream
Definition: iIstream.hpp:33
pFlow::particles
Definition: particles.hpp:33
InsertionRegion.hpp
pFlow::Insertion::writeInsertionDict
bool writeInsertionDict(dictionary &dict) const
Definition: Insertion.cpp:49
pFlow::Insertion::readInsertionDict
bool readInsertionDict(const dictionary &dict)
Definition: Insertion.cpp:23
pFlow::Insertion
Definition: Insertion.hpp:35
pFlow::iOstream
Definition: iOstream.hpp:53
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::insertion
Definition: insertion.hpp:33