Hi all,
I have a question that maybe is too basic, but here it goes:
I was using xCoba to compute some on shell actions, and I tried to compute a term like this
G_{\alpha \beta} n^{\alpha} n^{\beta}
where G is the Einstein tensor, and n is a normal vector. I had no problem working out the Einstein tensor part, I define a CTensor that after set as a metric
g=CTensor[{{-F[r[]], 0, 0, 0, 0}, {0, 1/F[r[]], 0, 0, 0}, {0, 0, r[]^2, 0, 0}, {0, 0, 0, r[]^2 Sin[\[Psi][]]^2, 0}, {0, 0, 0, 0, r[]^2 Sin[\[Theta][]]^2 Sin[\[Psi][]]^2}}, {-S, -S}, 0]
SetCMetric[g, S]
and with that, I told Mathematica to compute all the geometric tensors related to g
MetricCompute[g, S, All].
The problems arose when I tried to define a vector n[-a] with a definite value in the chart where g is the metric. I tried again CTensor, but with that construction doesn't allow me to use "n" as a tensor in a contraction, for example g[a,b]n[-a]n[-b].
I don't know if I'm being clear enough, I will attach a notebook to this thread asap.
thanks in advance,
Mario