sphereRegion.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 __sphereRegion_hpp__
22 #define __sphereRegion_hpp__
23 
24 #include "types.hpp"
25 #include "sphere.hpp"
26 #include "uniformRandomReal.hpp"
27 
28 namespace pFlow
29 {
30 
31 class dictionary;
32 
34 {
35 protected:
36 
38 
40 public:
41 
42  // - type info
43  TypeInfoNV("sphereRegion");
44 
45  sphereRegion(const dictionary& dict);
46 
47  ~sphereRegion() = default;
48 
50  bool isInside(const realx3& p) const;
51 
52  realx3 peek()const;
53 
54 
56  bool read(const dictionary& dict);
57 
58  bool write(dictionary& dict)const;
59 
60 
61 };
62 
63 }
64 
65 #endif
pFlow::sphereRegion::TypeInfoNV
TypeInfoNV("sphereRegion")
types.hpp
pFlow::sphereRegion::sphere_
sphere sphere_
Definition: sphereRegion.hpp:37
pFlow::sphereRegion::isInside
bool isInside(const realx3 &p) const
Definition: sphereRegion.cpp:36
pFlow
Definition: demComponent.hpp:28
pFlow::uniformRandomReal
Definition: uniformRandomReal.hpp:32
pFlow::sphereRegion::write
bool write(dictionary &dict) const
Definition: sphereRegion.cpp:72
uniformRandomReal.hpp
pFlow::sphereRegion::random_
uniformRandomReal random_
Definition: sphereRegion.hpp:39
sphere.hpp
pFlow::sphereRegion::~sphereRegion
~sphereRegion()=default
pFlow::sphereRegion::peek
realx3 peek() const
Definition: sphereRegion.cpp:43
pFlow::sphere
Definition: sphere.hpp:32
pFlow::triple< real >
pFlow::sphereRegion
Definition: sphereRegion.hpp:33
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::sphereRegion::read
bool read(const dictionary &dict)
Definition: sphereRegion.cpp:62
pFlow::sphereRegion::sphereRegion
sphereRegion(const dictionary &dict)
Definition: sphereRegion.cpp:25