AutomaticRules for traceless tensor

116 views
Skip to first unread message

Albin Nilsson

unread,
Nov 6, 2017, 11:13:32 AM11/6/17
to xAct Tensor Computer Algebra
I am trying to define a new tensor with the same symmetries as the Weyl tensor, i.e. RiemannSymmetric + tracelessness. 

Looking at the documentation for AutomaticRules, it seems like I have to make a rule for each index, for example:

AutomaticRule[T, MakeRule[{T[a,-a,-c,-d],0}]]

and so on. 

Is there a way of doing this in a more compact way?

Thanks in advance

Leo Stein

unread,
Nov 6, 2017, 11:24:51 AM11/6/17
to Albin Nilsson, xAct Tensor Computer Algebra
Hi Albin,

I took a stab at this idea back in 2013 with an xTension called TraceFree, which is available in this repo: https://github.com/xAct-contrib/TraceFree .

If you install this xTension and then load it, then at the time when you define a tensor, you can write something along the lines of:
> DefTensor[S[a, b, c], M4, Symmetric[{a, b, c}], TraceFree -> {a, b, c}]
or, for your scenario,
> DefTensor[T[a, b, c, d], M4, RiemannSymmetric[{a, b, c, d}], TraceFree -> {a, b, c, d}]

However, I haven't been using this xTension, so the code may be out of date. But give it a try and see if it still does what it's supposed to do.

Best
Leo

--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Albin Nilsson

unread,
Nov 9, 2017, 8:44:38 AM11/9/17
to xAct Tensor Computer Algebra
Hi Leo, 

it works great, thanks for the help!
Reply all
Reply to author
Forward
0 new messages