Skip to content
Snippets Groups Projects

Refactor GRHD project

Merged Florian Atteneder requested to merge fa/grhd into main
3 files
+ 24
6
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 20
2
@@ -7,7 +7,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.12.0
# jupytext_version: 1.16.0
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
@@ -95,6 +95,10 @@ display(γ4ud)
Γs = christoffels(γ_coords, γ, γinv)
display(Γs)
# $$
# \gamma_{ij} = \eta_{ij}
# $$
η_coords = coords[1:]
display(η_coords)
η = sp.diag(1, r**2, r**2 * sp.sin(θ)**2)
@@ -147,6 +151,20 @@ display(γhat.det())
γhat_Γs = christoffels(γhat_coords, γhat, γhatinv)
display(γhat_Γs)
# $$
# \gamma_{ij} = r^{-8/3} \eta_{ij}
# $$
γhat_coords = coords[1:]
display(γhat_coords)
γhat = r**(sp.Rational(-8,3)) * η
γhatinv = γhat.inv()
display(γhat)
display(γhatinv)
display(γhat.det())
γhat_Γs = christoffels(γhat_coords, γhat, γhatinv)
display(γhat_Γs)
# ## Extrinsic curvature
#
@@ -195,7 +213,7 @@ for (c, Γ) in zip(sphere_coords, sphere_Γs):
if Γij:
ci = sphere_coords[i];
cj = sphere_coords[j];
display(Math(f"\Gamma^{{ {c} }}_{{ {ci} {cj} }} = " + sp.latex(Γij)))
display(Math(fr"\Gamma^{{ {c} }}_{{ {ci} {cj} }} = " + sp.latex(Γij)))
# print(sp.latex(Γij))
Loading