-
Notifications
You must be signed in to change notification settings - Fork 119
General Relativity
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 B i = (★F)i0, where F is the electromagnetic field tensor. Note that these are not the projected variables ℬi = -j iμnν(★F)μν = αB i.
The following quantities are useful to define:
- projected field components b μ = uν(★F)νμ, in particular
- b 0 = giμB iu μ,
- b i = (B i + b 0u i)/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ρu j) = 0,
- ∂0 ((-g)1/2T 0μ) + ∂j((-g)1/2T jμ) = (-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 B i. 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.
Getting Started
User Guide
- Configuring
- Compiling
- The Input File
- Problem Generators
- Boundary Conditions
- Coordinate Systems and Meshes
- Running the Code
- Outputs
- Using MPI and OpenMP
- Static Mesh Refinement
- Adaptive Mesh Refinement
- Load Balancing
- Special Relativity
- General Relativity
- Passive Scalars
- Shearing Box
- Diffusion Processes
- General Equation of State
- FFT
- High-Order Methods
- Super-Time-Stepping
- Orbital Advection
- Rotating System
- Reading Data from External Files
Programmer Guide