I am trying to solve these two equations for various values of B(magnetic field): $$\text{xb}'(l)=\frac{\sqrt{\text{g11}\left(r_0\right) \left(-\text{gtt}\left(r_0\right)\right)}}{\text{g11}(\text{rb}(l)) \sqrt{-\text{gtt}(\text{rb}(l))}};$$ $$\text{rb}'(l)=\frac{\sqrt{\text{g11}\left(r_0\right) \text{gtt}\left(r_0\right)-\text{g11}(\text{rb}(l)) \text{gtt}(\text{rb}(l))}}{\sqrt{\text{g11}(\text{rb}(l)) \text{grr}(\text{rb}(l)) (-\text{gtt}(\text{rb}(l)))}};$$ where:
f[r_] = 1 - rh^4/r^4 - (2 B^2)/(3 r^4) Log[r/rh];
q[r_] = 1 - (2 B^2)/(3 r^4) Log[r];
h[r_] = 1 + B^2/(3 r^4) Log[r];
gtt[r_] = -r^2 f[r];
g11[r_] = r^2 h[r];
grr[r_] = 1/(r^2 f[r]);
For B=1, when I used NDSolve for the second equation, I only get half of the answer:
xb1[l_] = Sqrt[-gtt[r0] g11[r0]]/(Sqrt[-gtt[rb[l]]] g11[rb[l]]);
rb1[l_] =
Sqrt[-gtt[rb[l]] g11[rb[l]] + gtt[r0] g11[r0]]/
Sqrt[-gtt[rb[l]] g11[rb[l]] grr[rb[l]]];
B = 1;
rh = 1;
r0 = 1.1;
rs = NDSolve[{y'[l] == rb1[l] /. rb -> y, y[0] == 1.11}, y, {l, -2, 2}]
NDSolve::mxst: Maximum number of 99124 steps reached at the point l == -0.101218.
{{y -> InterpolatingFunction[{{-0.101218, 2.}}, <>]}}
Is there any algorithm to get the full solution? (If possible, an analytical one?)
y<1
rb1
is complex! $\endgroup$y = 1.1
, which is the value ofr0
that's been programmed in. The square root in the denominator ofrb1
certainly vanishes whenrb[l] == r0
, and I expect that it switches from positive to negative there. $\endgroup$y<1.1
are created. $\endgroup$