20#define __Kerr_HPP "Created 27.02.2001 21:42:27 by werner"
22#include <vecal/Christoffel.hpp>
23#include <vecal/Geodesic.hpp>
36 Kerr(
const Scalar_t&mass)
40 void getMetric(Metric<Scalar_t,4>&g,
const Point_t&P)
const
42 Scalar_t sinTheta =
sin(P[h]);
49 S sig = r2 + a2*tmp*tmp;
50 S del = r2 + a2 + e2 - 2*m*
point[P4_R];
55 g[M4_TT] = (a2*tmp2 - del)/sig;
56 g[M4_TP] = g[M4_PT] = -a*tmp2*(r2 + a2 - del)/sig;
59 g[M4_PP] = ((r2 + a2)*(r2 + a2) - del*a2*tmp2)/sig*tmp2;
62 void getChristoffel(Christoffel<Scalar_t,4>&G,
const Point_t&P)
const
64 Scalar_t sinTheta =
sin(P[h]);
73 S sig = r2 + a2*tmpx*tmpx;
74 S del = r2 + a2 + e2 - 2*m*
point[P4_R];
80 S t_c = t_b*t_b - del*a2*tmp2;
81 S t_d = del - a2*tmp2;
83 S t_f =
point[P4_R] - m;
85 S t_n = t_d*t_c + a2*tmp2*t_e*t_e;
90 chr[C4_TRT] = (t_c*(t_f -
point[P4_R]*t_d/sig)
91 + a2*tmp2*t_e*(m -
point[P4_R]*t_e/sig))/t_n;
93 chr[C4_THT] = a2*tmp*tmpx/t_n*(-t_c + t_d*t_c/sig
94 + t_e*t_e*(1 + a2*tmp2/sig));
96 chr[C4_TPR] = a*tmp2/t_n*(m*t_c - t_e*(2*
point[P4_R]*t_b
99 chr[C4_THP] = a2*a*del*tmp2*tmp*tmpx*t_e/t_n;
101 chr[C4_RTT] = (sig*t_f -
point[P4_R]*t_d)/sig/sig/sig*del;
103 chr[C4_RPT] = ((sig*m -
point[P4_R]*t_e)/sig/sig/sig
105 chr[C4_RRR] = (del*
point[P4_R] - sig*t_f)/del/sig;
107 chr[C4_RHR] = -a2*tmp*tmpx/sig;
108 chr[C4_RPP] = (-t_b*2*
point[P4_R] + t_f*a2*tmp2
109 + t_c*
point[P4_R]/sig)*del*tmp2/sig/sig;
110 chr[C4_RHH] = -del*
point[P4_R]/sig;
114 chr[C4_PRT] = -a/t_n*(m*t_d - t_f*t_e);
116 chr[C4_PHT] = -a*tmpx*t_e/t_n*(t_d/tmp + a2*tmp);
118 chr[C4_PPR] = (t_d*(2*
point[P4_R]*t_b - a2*tmp2*t_f
119 -
point[P4_R]*t_c/sig)
120 +a2*tmp2*t_e*(m -
point[P4_R]*t_e/sig))/t_n;
122 chr[C4_PHP] = (t_d*tmpx*(t_c*(1/tmp + a2*tmp/sig)
124 + a2*tmp*tmpx*t_e*t_e*(1 + a2*tmp2/sig))/t_n;
126 chr[C4_HTT] = -(sig - del + a2*tmp2)/sig/sig/sig*a2*tmp*tmpx;
128 chr[C4_HPT] = tmp*tmpx*t_e/sig/sig*(1 + a2*a*tmp2/sig);
129 chr[C4_HRR] = a2*tmp*tmpx/del/sig;
131 chr[C4_HHR] =
point[P4_r]/sig;
132 chr[C4_HPP] = -tmp*tmpx/sig/sig*(t_b*t_b - 2*del*a2*tmp2
134 chr[C4_HHH] = -a2*tmp*tmpx/sig;
complex< _Tp > sin(const complex< _Tp > &)
complex< _Tp > cos(const complex< _Tp > &)
void set(const T &Value)
Set all elements to the same value.
Definition vector/Iterator.hpp:724