xcoba: values to two connections

143 views
Skip to first unread message

Max Banados

unread,
Jun 14, 2022, 1:35:55 AM6/14/22
to xAct Tensor Computer Algebra
Hi, 
I need to work with two connections in xCoba. One is the standard Levi-Cevita associated to a given metric. I call it **cd[-m]**.

The second is the LeviCevita one plus a piece depending on a vector. (The vector, as the metric, have prescribed components on a chart already defined).  I call the second covariant derivative  **cd1[-m]**.  I have not managed to give values to **Christoffel[cd1,PDch]** which is necessary to compute covariant derivatives with **cd1[-m]**.      

I tried with *makeRule* and *IndexSetDelayed*, no luck...

See attached file for details. 

Any help?  Thanks!
Max
Two-connections.nb

Jose

unread,
Aug 9, 2022, 8:33:28 AM8/9/22
to xAct Tensor Computer Algebra
Hi,

This is a rather interesting question. I think the simplest thing to do is the following:

You have properly constructed the connection cd, as a CCovD object. This object has the structure CCovD[PDch, christoffel, metric], where christoffel is a rank 3 CTensor object and metric is a rank 2 CTensor object. We store the metric to indicate that this connection actually derives from a metric.

Now you want to have another connection that uses the same ordinary derivative PDch but a different Christoffel, and I assume it will not derive from a metric in general. Then what you need to do is to set

    cd1 = CCovD[PDch, newchristoffel, Null]

where the newchristoffel is again a rank 3 CTensor object, and Null means that this connection does not derive from a metric. You can use standard methods of computation with CTensor objects to construct the new Christoffel tensor.

Note that we don't need to go through a DefCovD[cd1[-a]] command. This command is needed when we will be using an abstract connection cd1. In your problem what you need is a concrete (given by components) connection, i.e. a CCovD object. It's exactly the same reason why you have a metric g but didn't need to evaluate a DefMetric command.

Cheers,
Jose.

Max Bañados

unread,
Sep 2, 2022, 12:47:34 PM9/2/22
to Jose, xa...@googlegroups.com
Dear José, 

Thank you very much for your reply (and for creating this amazing platform). 
I am sorry it took me so long to react to you email.  

I read you suggestion but I did not manage to put it to work. I tried 
various combinations but the command suggested finally 
did not give a component result.  

Would it be possible for you to produce a concrete example? 

Thank you very much, 
Max 




--
You received this message because you are subscribed to a topic in the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xact/Ugvh9bQfHas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xact+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xact/08a8fa4d-38ab-4912-9d8f-170c39f94894n%40googlegroups.com.

Jose

unread,
Sep 2, 2022, 3:19:15 PM9/2/22
to xAct Tensor Computer Algebra
Hi again,

I attach a suggestion.

Cheers,
Jose.

Two-connections_Updated.nb

Max Bañados

unread,
Sep 2, 2022, 3:49:51 PM9/2/22
to Jose, xa...@googlegroups.com
Dear José, 
Fantastic.  I was missing the command HeadOfTensor. 
There is still a lot I need to learn about xTensor. 
Thanks a lot, this will make my calculation much easier.
Regards,
Max
Reply all
Reply to author
Forward
0 new messages