Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

General Relativity

Chris White edited this page Nov 14, 2016 · 9 revisions

Governing equations

Let gμν be the components of a stationary metric with time coordinate x 0, so ∂0gμν = 0. We can define the lapse α = (-g 00)-1/2. Then the unit future-pointing timelike normal to surfaces of constant x 0 has components nμ = -αδ0μ. Projection onto the spatial part of the tangent space can be accomplished with the components jμν = gμν + nμnν.

When working with general relativity, the primitive variables in Athena++ are taken to be

  • comoving rest mass density ρ,
  • gas pressure pgas, and
  • spatial components of the projected 4-velocity i = jiμuμ.

In MHD there will also be the magnetic field components Bi = (★F)i0, where F is the electromagnetic field tensor. Note that these are not the projected variables ℬi = -jiμnν(★F)μν = αBi.

The following quantities are useful to define:

  • projected field components bμ = uν(★F)νμ, in particular
    • b 0 = giμBiuμ,
    • bi = (Bi + b 0ui)/u 0;
  • magnetic pressure pmag = bμbμ/2;
  • total pressure ptot = pgas + pmag;
  • adiabatic index Γ;
  • gas enthalpy wgas = ρ + Γ/(Γ−1) × pgas;
  • magnetic enthalpy wmag = 2pmag;
  • total enthalpy wtot = wgas + wmag;
  • stress-energy components Tμν = wtotuμuν + ptotgμν − bμbν;
  • metric determinant g;
  • connection coefficients Γσμν = 1/2 × gσλ(∂μgνλ + ∂νgμλ − ∂λgμν).

The evolution equations are

  • 0 ((-g)1/2ρu 0) + ∂j ((-g)1/2ρuj) = 0,
  • 0 ((-g)1/2T 0μ) + ∂j((-g)1/2Tjμ) = (-g)1/2TνσΓσμν,
  • 0 ((-g)1/2(★F)i0) + ∂j ((-g)1/2(★F)ij) = 0.

Athena++ considers the conserved variables to be

  • conserved density D = ρu 0,
  • energy density E = T 00, and
  • momentum density Mi = T 0i,

as well as the magnetic fields Bi. In particular, the factors of (-g)1/2 are not included in the output data, nor should they be included when setting conserved variables in problem generators.

Clone this wiki locally