Hi,
I am working (with a student) on writing a code to implement Bondi formalism, more specifically using the steps here:
https://arxiv.org/abs/1001.1541. This starts with a full metric in Bondi gauge but then uses an 1/r expansion. (Not perturbative in fields). At some point from the full metric on the sphere you need to go to a background metric plus corrections expanded in 1/r. After this point you need to express everything in terms of the covariant derivatives of the background metric and you need to raise and lower with respect to this metric.
For this we would like to define the full metric h and the background metric q on the sphere and after some point undefine the h metric or set q metric to be the first metric. However it looks like even after either of these steps q does not behave as a "default metric".
To understand the issue I have written a sample code which I am attaching. The root of the issue seems to be following. Consider the following code:
................
<< xAct`xTensor`;
$DefInfoQ = False;
$PrePrint = ScreenDollarIndices;
DefManifold[M, 3, {a, b, c, d, e, f, g, h, j, k, l, m, n}];
DefMetric[1, Q[-a, -b], cdQ];
DefMetric[1, W[-a, -b], cdW, SymbolOfCovD -> {"|", "D"}];
UndefMetric[Q]
cdW[-a][W[a, b]]
............
The final line does not produce zero. Can anyone explain why and if there is a way to work around this. I do not need to change back to the original metric, after some point I replace my original metric with new expressions (see the attached code) and I do not need it anymore.
Best Regards,
Şeyma
(My apologies if this has been addressed elsewhere, I could not find anything that this was discussed directly.)