www.cemf.ir
Insertion.hpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 
21 #ifndef __Insertion_hpp__
22 #define __Insertion_hpp__
23 
24 #include "InsertionRegion.hpp"
25 #include "ListPtr.hpp"
26 #include "insertion.hpp"
27 #include "particles.hpp"
28 
29 namespace pFlow
30 {
31 
55 template<typename ShapeType>
56 class Insertion : public insertion
57 {
58 private:
59 
60  const ShapeType& shapes_;
61 
62  // - insertion regions
64 
65  bool readInsertionDict();
66 
67 protected:
68 
69  bool writeInsertionDict(dictionary& dict)const override;
70 
71 public:
72 
73  TypeInfoTemplateNV11("Insertion", ShapeType);
74 
75  Insertion(particles& prtcl, const ShapeType& shapes);
76 
77  // Insertion(fileSystem file, particles& prtcl, const ShapeType& shapes);
78 
79  bool insertParticles(uint32 iter, real t, real dt);
80 
81  /*virtual bool read(iIstream& is) override;
82 
83  virtual bool write(iOstream& os)const override;*/
84 };
85 
86 }
87 
88 #include "Insertion.cpp"
89 
90 #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