www.cemf.ir
boxRegion.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 __boxRegion_hpp__
23 #define __boxRegion_hpp__
24 
25 #include "box.hpp"
26 #include "uniformRandomReal.hpp"
27 
28 namespace pFlow
29 {
30 
31 class boxRegion
32 {
33 protected:
35 
37 public:
38 
39  // - type info
40  TypeInfoNV("boxRegion");
41 
42  boxRegion(const dictionary& dict);
43 
44  ~boxRegion() = default;
45 
47  bool isInside(const realx3& p) const;
48 
49  realx3 peek()const;
50 
51 
53  bool read(const dictionary& dict);
54 
55  bool write(dictionary& dict)const;
56 
57 
58 };
59 
60 }
61 
62 #endif
pFlow::boxRegion
Definition: boxRegion.hpp:31
pFlow::boxRegion::TypeInfoNV
TypeInfoNV("boxRegion")
pFlow::boxRegion::boxRegion
boxRegion(const dictionary &dict)
Definition: boxRegion.cpp:25
pFlow::boxRegion::write
bool write(dictionary &dict) const
Definition: boxRegion.cpp:58
box.hpp
pFlow
Definition: demGeometry.hpp:27
pFlow::uniformRandomReal
Definition: uniformRandomReal.hpp:32
uniformRandomReal.hpp
pFlow::boxRegion::~boxRegion
~boxRegion()=default
pFlow::box
Definition: box.hpp:32
pFlow::boxRegion::random_
uniformRandomReal random_
Definition: boxRegion.hpp:36
pFlow::boxRegion::peek
realx3 peek() const
Definition: boxRegion.cpp:43
pFlow::boxRegion::isInside
bool isInside(const realx3 &p) const
Definition: boxRegion.cpp:36
pFlow::triple< real >
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::boxRegion::box_
box box_
Definition: boxRegion.hpp:34
pFlow::boxRegion::read
bool read(const dictionary &dict)
Definition: boxRegion.cpp:50