bshoshany / OGRe

An object-oriented general relativity package for Mathematica.
MIT License
122 stars 20 forks source link

Weyl tensor #1

Closed draleth closed 2 years ago

draleth commented 2 years ago

Can you add the Weyl tensor to this package?

draleth commented 2 years ago

My code for Weyl tensor in FLRW metric

TList@TCalc["Weyl2FLRW", "FLRWRiemann"["[Rho][Sigma][Mu][Nu]"] + 1/2 (("FLRWRicciTensor"["[Rho][Nu]"] . "FLRW"["[Sigma][Mu]"]) - ("FLRWRicciTensor"["[Rho][Mu]"] . "FLRW"["[Sigma][Nu]"]) + ("FLRWRicciTensor"[ "[Sigma][Mu]"] . "FLRW"["[Rho][Nu]"]) - ("FLRWRicciTensor"["[Sigma][Nu]"] . "FLRW"["[Rho][Mu]"])) + 1/6 ("FLRWRicciScalar"[ ""] . ("FLRW"["[Rho][Mu]"] . "FLRW"["[Sigma][Nu]"] - "FLRW"["[Rho][Nu]"] . "FLRW"["[Sigma][Mu]"]))]

bshoshany commented 2 years ago

Thanks for the suggestion! This is already on my TODO list (and easy to implement), but will have to wait until the next release, which will take a few months since I'm currently on hiatus from software development due to heavy teaching load.