www.cemf.ir
boxRegion.cpp
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 #include "boxRegion.hpp"
22 
23 
25 (
26  const dictionary& dict
27 )
28 :
29  box_(dict),
30  random_()
31 {
32 
33 }
34 
36 (
37  const realx3& p
38 ) const
39 {
40  return box_.isInside(p);
41 }
42 
44 {
46 }
47 
48 
50 (
51  const dictionary& dict
52 )
53 {
54  return box_.read(dict);
55 }
56 
58 (
59  dictionary& dict
60 )const
61 {
62  return box_.write(dict);
63 }
pFlow::boxRegion::boxRegion
boxRegion(const dictionary &dict)
Definition: boxRegion.cpp:25
pFlow::boxRegion::write
bool write(dictionary &dict) const
Definition: boxRegion.cpp:58
pFlow::box::maxPoint
const INLINE_FUNCTION_HD realx3 & maxPoint() const
Definition: box.hpp:97
boxRegion.hpp
pFlow::box::minPoint
const INLINE_FUNCTION_HD realx3 & minPoint() const
Definition: box.hpp:91
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
pFlow::uniformRandomReal::randomNumber
real randomNumber(real a, real b)
Definition: uniformRandomReal.hpp:53