Hi!
For coordinate calculations in xCoba, you do need a number for
your dimension. Hence, it is not possible to directly compute
curvature etc for a metric with symbolic dimension. At least not
at the moment.
However, xTensor itself can handle symbolic dimensions.
For instance
DefConstantSymbol[dim, PrintAs -> "d"]
DefManifold[Man, dim, {\[Mu], \[Nu], \[Rho], \[Sigma], \[Delta],
\[Lambda]}];
is OK.
For the particular case in question, the metric seems to have a
nice 1+(n-1) split.
One can handle such things abstractly with for instance
DefTensor[normal[\[Mu]], Man, PrintAs -> "N"]
DefMetric[-1, metrich[-\[Mu], -\[Nu]], cd, {"|", "D"}, InducedFrom
-> {g, normal}, PrintAs -> "h"]
This defines a normal to the spatial surfaces and an induced
metric.
Section 7.8 in xTensorDoc describes some of the tools available.
There are some useful functions like MetricToProjector,
ChangeCovD, GaussCodazzi, ExtrinsicKToGradNormal etc.
Using these tools one can express spacetime quantities in terms of
intrinsic quantities.
For this to simplify, one would also have to set up some
properties of the normal.
For the particular case in question, the spatial metric seems to
be conformally flat. One can use this to for instance express the
curvature for the spatial metric in terms of derivatives of the
conformal factor. This can either be done manually from text book
expressions, or one can derive such formulas in xAct.
Unfortunately, I have not found much documentation about the
handling of conformal metrics in xAct.
However, one could start by defining a conformal factor and the
flat conformal metric.
DefTensor[confactor[], Man, PrintAs -> "\[CapitalOmega]"]
DefMetric[-1, metrichconf[-\[Mu], -\[Nu]], cdconf, {":",
"\!\(\*OverscriptBox[\(D\), \(~\)]\)"}, ConformalTo ->
{metrich[-\[Mu], -\[Nu]], confactor[]}, PrintAs ->
"\!\(\*OverscriptBox[\(h\), \(~\)]\)", FlatMetric -> True]
Then one would have to play around with ChangeCurvature,
ChristoffelToGradConformal, ChangeCovD etc to derive the equations
one would like.
Unfortunately, I don't have time to figure out a full procedure on
how to do the full calculation at the moment because it is a bit
complicated. However, I hope this might give you and/or someone
else some ideas on how to deal with metrics with a symbolic
dimension.
Regards
Thomas