In[]:=
Get[FileNameJoin[{NotebookDirectory[],"SpTm","SpTm.wl"}]]
In[]:=
Protect[M];(*Misthemassofthestar*)SetMetricDiagonalMatrix-1-,,,,{t,r,θ,ϕ};
2M
r
-1
1-
2M
r
2
r
2
r
2
Sin[θ]
1. Set the componenets of original Riemann tensor :
d
R
abc
In[]:=
SetTensor[STensor[R,{a,b,c},{d}],STCalcTensor["RiemannTensor"][[1,3,1]]]
2. Set the compoenents of as:
R
abcd
In[]:=
SetTensor[STensor[R,{a,b,c,d},{}],STCalcComponents[][[1,3,1]]]
g
ce
e
R
abd
3. Set the components of as:
abcd
R
In[]:=
SetTensorSTensor[R,{},{a,b,c,d}],STCalcComponents[[1,3,1]]
a
R
efg
be
g
cf
g
dg
g
4. Calculate the Kretschmann scalar by definition:
In[]:=
STCalcComponents
abcd
R
R
abcd
Out[]=
=-
24
2
M
6
r