-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGreensFunction3DAbsSym.hpp
75 lines (54 loc) · 1.45 KB
/
GreensFunction3DAbsSym.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
#ifndef GREENS_FUNCTIONS_3D_ABS_SYM_HPP
#define GREENS_FUNCTIONS_3D_ABS_SYM_HPP
#include "Defs.hpp"
//#include "Logger.hpp"
#include "GreensFunction.hpp"
#include <ostream>
namespace greens_functions{
class GreensFunction3DAbsSym: public GreensFunction
{
public:
GreensFunction3DAbsSym(Real D, Real a)
: GreensFunction(D), a(a) {}
~GreensFunction3DAbsSym() {}
Real getD() const
{
return this->D;
}
Real geta() const
{
return this->a;
}
Real p_survival(Real t) const;
Real drawTime(Real rnd) const;
Real drawR(Real rnd, Real t) const;
Real p_int_r(Real r, Real t) const;
Real p_int_r_free(Real r, Real t) const;
Real p_r_fourier(Real r, Real t) const;
std::string dump() const;
const char* getName() const
{
return "GreensFunction3DAbsSym";
}
private:
static Real ellipticTheta4Zero(Real q);
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 a;
// static Logger& log_;
};
template<typename Tstrm, typename Ttraits>
inline std::basic_ostream<Tstrm, Ttraits>&
operator <<(std::basic_ostream<Tstrm, Ttraits>& strm,
GreensFunction3DAbsSym const& gf)
{
strm << "GreensFunction3DAbsSym("
<< "D=" << gf.getD() << ", "
<< "a=" << gf.geta() << ")";
return strm;
}
}
#endif // __PAIRGREENSFUNCTION_HPP