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 
25 #include "streams.hpp"
26 
27 namespace pFlow
28 {
29 
30 class particles;
31 class dictionary;
32 
33 class insertion
34 {
35 protected:
36  // - insertion active
37  Logical active_ = "No";
38 
39  // - check for collision / desabled for now
41 
42  // - particles
44 
45 
46  bool readInsertionDict(const dictionary& dict);
47 
48  bool writeInsertionDict(dictionary& dict)const;
49 
50 public:
51 
52  // type info
53  TypeInfo("insertion");
54 
55  insertion(particles& prtcl);
56 
57 
58  virtual ~insertion() = default;
59 
60  bool isActive()const {
61  return active_();
62  }
63 
64 
65  virtual bool read(iIstream& is) = 0;
66 
67  virtual bool write(iOstream& os)const = 0;
68 
69 
70 };
71 }
72 
73 #endif
pFlow::insertion::read
virtual bool read(iIstream &is)=0
pFlow::insertion::write
virtual bool write(iOstream &os) const =0
pFlow::insertion::isActive
bool isActive() const
Definition: insertion.hpp:60
pFlow::insertion::particles_
particles & particles_
Definition: insertion.hpp:43
pFlow
Definition: demComponent.hpp:28
pFlow::insertion::checkForCollision_
Logical checkForCollision_
Definition: insertion.hpp:40
pFlow::iIstream
Definition: iIstream.hpp:33
pFlow::particles
Definition: particles.hpp:33
pFlow::insertion::insertion
insertion(particles &prtcl)
Definition: insertion.cpp:69
pFlow::insertion::writeInsertionDict
bool writeInsertionDict(dictionary &dict) const
Definition: insertion.cpp:47
pFlow::insertion::active_
Logical active_
Definition: insertion.hpp:37
streams.hpp
pFlow::Logical
Definition: Logical.hpp:35
pFlow::insertion::readInsertionDict
bool readInsertionDict(const dictionary &dict)
Definition: insertion.cpp:28
pFlow::insertion::~insertion
virtual ~insertion()=default
pFlow::insertion::TypeInfo
TypeInfo("insertion")
pFlow::iOstream
Definition: iOstream.hpp:53
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::insertion
Definition: insertion.hpp:33