www.cemf.ir
randomReal.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 __randomReal_hpp__
22 #define __randomReal_hpp__
23 
24 #include "types.hpp"
25 #include "virtualConstructor.hpp"
26 
27 namespace pFlow
28 {
29 
30 
32 {
33 
34 protected:
35 
36 public:
37 
38  TypeInfo("randomReal");
39 
40  randomReal(word UNUSED(distribution)){}
41 
43  (
44  randomReal,
45  word,
46  (word distribution),
47  (distribution)
48  );
49 
50  virtual ~randomReal()= default;
51 
52  virtual real randomNumber(real a, real b) = 0;
53 
54  virtual realx3 randomNumber(realx3 a, realx3 b) = 0;
55 
56 
57 
58 
59  static
60  uniquePtr<randomReal> create(word distribution);
61 };
62 
63 
64 
65 }
66 
67 #endif
pFlow::randomReal::randomReal
randomReal(word UNUSED(distribution))
Definition: randomReal.hpp:40
pFlow::randomReal::randomNumber
virtual real randomNumber(real a, real b)=0
pFlow::real
float real
Definition: builtinTypes.hpp:45
UNUSED
#define UNUSED(x)
Definition: pFlowMacros.hpp:35
types.hpp
pFlow::randomReal::TypeInfo
TypeInfo("randomReal")
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::randomReal::create
static uniquePtr< randomReal > create(word distribution)
Definition: randomReal.cpp:26
pFlow
Definition: demGeometry.hpp:27
virtualConstructor.hpp
pFlow::randomReal::~randomReal
virtual ~randomReal()=default
pFlow::randomReal::create_vCtor
create_vCtor(randomReal, word,(word distribution),(distribution))
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::randomReal
Definition: randomReal.hpp:31
pFlow::triple< real >