-
Notifications
You must be signed in to change notification settings - Fork 0
/
GreensFunction2DAbsSym.hpp
93 lines (63 loc) · 1.74 KB
/
GreensFunction2DAbsSym.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef GREENS_FUNCTION_2D_ABS_SYM_HPP
#define GREENS_FUNCTION_2D_ABS_SYM_HPP
#include <vector>
#include <boost/multi_array.hpp>
#include "Defs.hpp"
//#include "Logger.hpp"
namespace greens_functions{
class GreensFunction2DAbsSym
{
public:
GreensFunction2DAbsSym( const Real D, const Real a )
: D( D ), a( a )
{}
virtual ~GreensFunction2DAbsSym() {}
const char* getName() const
{
return "GreensFunction2DAbsSym";
}
const Real getD() const
{
return this->D;
}
const Real geta() const
{
return this->a;
}
const Real p_survival( const Real t ) const;
const Real drawTime( const Real rnd ) const;
const Real drawR( const Real rnd, const Real t ) const;
const Real p_int_r( const Real r, const Real t ) const;
const Real p_int_r_free( const Real r, const Real t ) const;
const std::string dump() const;
// private methods
private:
struct p_survival_params
{
const GreensFunction2DAbsSym* const gf;
const Real rnd;
};
static const Real p_survival_F( const Real t,
const p_survival_params* params );
struct p_r_params
{
const GreensFunction2DAbsSym* const gf;
const Real t;
const Real target;
};
static const Real p_r_free_F( const Real r,
const p_r_params* params );
static const Real p_r_F( const Real r,
const p_r_params* params );
// private variables
private:
static const Real CUTOFF;
// H = 4.0: ~3e-5, 4.26: ~1e-6, 5.0: ~3e-7, 5.2: ~1e-7,
// 5.6: ~1e-8, 6.0: ~1e-9
static const Real CUTOFF_H;
Real D;
Real a;
// static Logger& log_;
};
}
#endif // __PAIRGREENSFUNCTION2D_HPP