Hello, I am quite new to xTensor package and have a few questions.
I am trying to calculate Ricci and Riemann Tensors of tensor perturbations around FRW.
So, the metric that I am using is g_{00} = -1, g_{i0}=g_{0i}=0, g_{ij}=a(t)^2*exp(\gamma_{ij}) where \gamma_{ij} is traceless and transverse.
Since I want the expressions up to quadratic order in \gamma, let me write g_{ij}=a(t)^2*(\delta_{ij} + \gamma_{ij} + 1/2 \gamma_{il}\gamma_{lj} )
In my notebook, first section defines proper packages and second section defines manifolds, metrics and basis.
Please notice that I define two manifolds ; one is 3-dim spatial one and the other is 1-dim time one. And then, I merge these two into 3+1 dim manifold.
In third section, I used "xCoba" to assign specific FRW background metric to my "metricg". By doing this and using 'xCoba' further,
I could calculate RicciCd and RicciScalarCd of unperturbed FRW background metric.
Now, it is time to consider perturbation. First, I defined a tensor on spatial manifold and make it traceless and transverse using
AutomaticRules[\[Gamma], MakeRule[{\[Gamma][i, -i], 0}, PatternIndices -> All, MetricOn -> All]]
AutomaticRules[\[Gamma], MakeRule[{PD[-i]@\[Gamma][i, -j], 0}, PatternIndices -> All, MetricOn -> All]]
Here is my first question. are these two rules correct ones to make traceless and transverse?
Let me go on. After this, I defined the metric perturbation around 'metricg' which is set to FRW background metric using 'xCoba'.
By definition, perturbation is a tensor in 3+1 dim manifold. What I am doing is to consider only spatial tensor perturbation, so I make a few rules which are following
Flatten[{MakeRule[{pert[LI[1], -i, -j], s[t[]]^2* \[Gamma][-i, -j]}, MetricOn -> None],
MakeRule[{pert[LI[1], i, j], \[Gamma][i, j]/s[t[]]^2}, MetricOn -> None]}]
Tensor1 = pert[-a_?Tangenttime`Q, -b_?Tangenttime`Q] :> 0
Tensor2 = pert[-a_?Tangenttime`Q, -j_?TangentM3`Q] :> 0
Tensor3 = pert[-j_?TangentM3`Q, -a_?Tangenttime`Q] :> 0
Tensor4 = pert[a_?Tangenttime`Q, b_?Tangenttime`Q] :> 0
Tensor5 = pert[a_?Tangenttime`Q, j_?TangentM3`Q] :> 0
Tensor6 = pert[j_?TangentM3`Q, a_?Tangenttime`Q] :> 0
Here is my second question. are these rules okay?
Now, I calculated the perturbation of Ricci tensor using "Perturbed[RicciCd[-a, -b], 2] // ExpandPerturbation // CovDToChristoffel // ChristoffelToMetric".
But, it gives just abstract expression in terms of "metricg" and "pert". What I want is the expression in terms of a[t] which is a scale factor and \gamma_{ij} which is a tensor perturbation. How can I do this?
Thanks in advance.