I am using xAct package and I would like to get geodesic equations in components for Schwarzshild metric (for instance).
DefManifold[M4, 4, {\[Alpha], \[Beta], \[Rho], \[Sigma], \[Mu], \[Nu], \[Lambda]}]
DefScalarFunction /@ {f, A};
DefConstantSymbol[M]
DefChart[B, M4, {0, 1, 2, 3}, {t[], r[], \[Theta][], \[Phi][]}, ChartColor -> Red]
f[expr_] := (1 - 2 M/expr)
g = CTensor[DiagonalMatrix[{-f[r[]], 1/f[r[]], r[]^2,r[]^2 Sin[\[Theta][]]^2}], {-B, -B}];
g[-\[Mu], -\[Nu]]
SetCMetric[g, B, SignatureOfMetric -> {3, 1, 0}]
MetricCompute[g, B, All]
This part is pretty straightforward. Than I want to use CTensors to construct the geodesic equation, put I really don't know what to do.
A need to write something like x[a]''-Christoffel[a,-b,-c]x[b]'x[c]' ==0
- How do I define the velocity vector to work with the components?
- I tried a projector u = diag[{-1,0,0,0}] acting on X={X0,X1,X2,X3}, u[a]CD[-a] should give me the projected time derivative.
- u[a]CD[-a]X[b] should be the velocity V and V[a]CD[-a]@V[a] whould, in principle give me the geodesics.
It does not work. The output is

I appreciate any help. Thanks in advance.