peakableRegion.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 
22 #ifndef __peakableRegion_hpp__
23 #define __peakableRegion_hpp__
24 
25 #include "types.hpp"
26 #include "virtualConstructor.hpp"
27 
28 
29 namespace pFlow
30 {
31 
32 
33 class dictionary;
34 
36 {
37 protected:
38 
39 
40 public:
41 
42  // type info
43  TypeInfo("peakableRegion");
44 
45  peakableRegion(const word& type, const dictionary& dict);
46 
49  word,
50  (const word& type, const dictionary& dict),
51  (type, dict)
52  );
53 
54  virtual uniquePtr<peakableRegion> clone()const = 0;
55 
56  virtual peakableRegion* clonePtr()const = 0;
57 
58  virtual ~peakableRegion() = default;
59 
61 
62  virtual bool isInside(const realx3& point)const = 0;
63 
64  virtual realx3 peek()const = 0;
65 
66 
68 
69  virtual bool read(const dictionary& dict) = 0;
70 
71  virtual bool write(dictionary& dict)const = 0;
72 
73  // - static create
75  create(const word& type, const dictionary& dict);
76 
77 };
78 
79 } // pFlow
80 
81 
82 #endif
pFlow::peakableRegion::clonePtr
virtual peakableRegion * clonePtr() const =0
types.hpp
pFlow::peakableRegion::peakableRegion
peakableRegion(const word &type, const dictionary &dict)
Definition: peakableRegion.cpp:26
pFlow::peakableRegion::write
virtual bool write(dictionary &dict) const =0
pFlow::word
std::string word
Definition: builtinTypes.hpp:63
pFlow::peakableRegion::read
virtual bool read(const dictionary &dict)=0
pFlow::peakableRegion::isInside
virtual bool isInside(const realx3 &point) const =0
pFlow::peakableRegion::~peakableRegion
virtual ~peakableRegion()=default
pFlow
Definition: demComponent.hpp:28
pFlow::peakableRegion::clone
virtual uniquePtr< peakableRegion > clone() const =0
virtualConstructor.hpp
pFlow::peakableRegion::create
static uniquePtr< peakableRegion > create(const word &type, const dictionary &dict)
Definition: peakableRegion.cpp:36
pFlow::peakableRegion::peek
virtual realx3 peek() const =0
pFlow::peakableRegion::create_vCtor
create_vCtor(peakableRegion, word,(const word &type, const dictionary &dict),(type, dict))
pFlow::uniquePtr
Definition: uniquePtr.hpp:44
pFlow::triple< real >
pFlow::peakableRegion
Definition: peakableRegion.hpp:35
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::peakableRegion::TypeInfo
TypeInfo("peakableRegion")