summaryrefslogtreecommitdiff
path: root/setup.mac
diff options
context:
space:
mode:
authorThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-08-03 21:30:38 +0200
committerThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-08-03 21:30:38 +0200
commit14863952f0209423a2fa2d5938179c5f3d0a0a28 (patch)
tree7c28ddba1c0500be46806ceb1393ffd3eb53e2f0 /setup.mac
parent48ddc9c304eabd9b57e3fe07ff72de511a060dc4 (diff)
Compute q_mcs
Diffstat (limited to 'setup.mac')
-rw-r--r--setup.mac34
1 files changed, 22 insertions, 12 deletions
diff --git a/setup.mac b/setup.mac
index 96d0b31..1c4483a 100644
--- a/setup.mac
+++ b/setup.mac
@@ -78,18 +78,6 @@ uh_AB[4,4] : exp(2*γ)*sin(θ)^-2$
uh_AB[3,4] : 0$
uh_AB[4,3] : 0$
-/* 2-sphere metric */
-q_AB[3,3] : 1$
-q_AB[4,4] : sin(θ)^2$
-q_AB[3,4] : 0$
-q_AB[4,3] : 0$
-
-/* 2-sphere inverse metric */
-uq_AB[3,3] : 1$
-uq_AB[4,4] : sin(θ)^-2$
-uq_AB[3,4] : 0$
-uq_AB[4,3] : 0$
-
/* Christoffel symbols of 2-sphere */
for i : 3 thru 4 do for j : 3 thru 4 do for k : 3 thru 4 do (
h_mcs[i, j, k] : sum(uh_AB[k,C]*(
@@ -111,4 +99,26 @@ for i : 3 thru 4 do for j : 3 thru 4 do (
/* Ricci scalar of 2-sphere */
h_ric_s : expand(sum(sum(uh_AB[i,j]*h_ric[i,j], i, 3, 4), j, 3, 4));
+
+/* 2-sphere */
+
+/* 2-sphere metric */
+q_AB[3,3] : 1$
+q_AB[4,4] : sin(θ)^2$
+q_AB[3,4] : 0$
+q_AB[4,3] : 0$
+
+/* 2-sphere inverse metric */
+uq_AB[3,3] : 1$
+uq_AB[4,4] : sin(θ)^-2$
+uq_AB[3,4] : 0$
+uq_AB[4,3] : 0$
+
+/* Christoffel symbols of 2-sphere */
+for i : 3 thru 4 do for j : 3 thru 4 do for k : 3 thru 4 do (
+ q_mcs[i, j, k] : sum(uq_AB[k,C]*(
+ cdiff(q_AB[j, C], i)
+ + cdiff(q_AB[i, C], j)
+ + cdiff(q_AB[i, j], C))/2, C, 3, 4));
+
print("Setup done!");