View source: R/tensor_fields.R
g_ss | R Documentation |
Provides the metric tensor of the Einstein equation's Schwarzschild solution
in Schwarzschild coordinates where the Schwarzschild radius r_s
is set to 1.
ds^2 = - \left(1-\frac{r_s}{r}\right) dt^2 + \left(1-\frac{r_s}{r}\right)^{-1} dr^r + r^2 d\Omega^2
g_ss(n, coords = c("t", "r", paste0("ph", 1:(n - 2))))
n |
The dimension of the metric tensor. |
coords |
A character vector of coordinate names. The length needs to match the tensor dimensions. |
Note that Schwarzschild coordinates become singular at the Schwarzschild
radius (event horizon) r=r_s=1
and at r=0
.
The covariant metric tensor as array imputed with coordinate names.
Wikipedia: Schwarzschild metric
Other metric tensors:
g_eucl_cart()
,
g_mink_cart()
,
g_sph()
,
metric_field()
g_ss(4)
g_ss(4) %_% .(+i, +j)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.