Hi Jose,
Thanks a lot for your reply. Embarrassingly, I don't appear to understand how to use either of these methods. I must be misunderstanding the syntax for ToTensorDerivative, and Implode and Explode. I have attached an extension of the notebook in my first message with my attempts to utilise these methods at the bottom (after where I define the ChangePartialDerivative rule).
I was hoping that by applying the ToTDer rule on cd[-a]@\[CurlyPhi] that I could then apply the ChangePartialDerivative rule and it would give Spat[-a] as a result (note that I used "c" as the index in ChangePartialDerivative). Unfortunately, that does not happen. I then tried a few other combinations of ToTensorDerivative, and also an attempt with Implode.
Could you please tell me how I am meant to use these methods? Or perhaps point to me to a tutorial where these methods are used, if that is more convenient?
Just as a recap: the idea is that I will either create a rule that only sets bare perturbations and their temporal derivatives to 0, while leaving spatial derivatives of these perturations alone.
OR
Create a rule that changes spatial derivative terms, i.e. cd[-a]@\[CurlyPhi] type terms, to some vector Spat[-a]. After which I can then utilise my QSAPlus rule to set perturbations and their temporal derivatives to 0, and reintroduce the spatial derivatives using Spat[-a] -> cd[-a]@\[CurlyPhi]. The catch being that I would like these rules to recognise the arbitrary nature of the index "a", so that it also works when encountering cd[-b]@\[CurlyPhi] or Spat[-b], etc.
I hope you don't mind these novice questions!
Thanks,
Ashim