Hi I am trying to self-learn xAct and have really no one to ask. So I have an effective metric G[a,b] that is dependent on a background metric g[-a,-b]. This is basically those acoustic metrics in curved spacetime discussed in papers such as this
https://journals.aps.org/prd/abstract/10.1103/PhysRevD.99.104047.
How do I define G[a,b] in xAct so that I may then get its inverse G[-a,-b]? All of the tutorials on xCoba that I see require to put explicit expressions when defining a chart. But I want the background g[-a,-b] to be diagonal but have arbitrary components. I've attached a screencap of the object that I want to construct