ETK:
EFEs imply $\nabla_a T^{ab} = 0$.
Pick a tetrad, $e_b^{(j)}$ to get $$ \begin{aligned} && \nabla_a \left[ e_b^{(j)} T^{ab} \right] &= \tfrac{1}{\sqrt{-g}} \partial_a \left( \sqrt{-g} e_b^{(j)} T^{ab} \right) = -T^{ab} \nabla_a e_b^{(j)} \\ \implies && \partial_t {\bf q} + \partial_i {\bf f}^{(i)}({\bf q}) &= {\bf s}. \end{aligned} $$ Balance law form.
Only four equations: need other constituitive equations for, eg, EM, particle number, etc.
Relations may need variables other than ${\bf q}$: conservative to primitive problem.
Advection equation $$ \partial_t q + \partial_x (v q) = 0. $$ Information moves right, speed $v$.
Burgers equation $$ \partial_t q + \tfrac{1}{2} \partial_x q^{2} = 0. $$ Information moves right, speed $q$.
Shocks form.
Formally need to work with weak form
$$ \begin{aligned} && \partial_t q + \nabla_k f^{(k)}(q) & = 0 \\ \implies && \frac{\text{d}}{\text{d}t} \int_V q + \oint_{\partial V} \hat{n}_k f^{(k)}(q) & = 0. \end{aligned} $$Discrete version, 1d:
$$ \frac{\text{d}}{\text{d}t} \hat{q}_i + \frac{1}{\Delta x} \left[ f_{i+1/2} - f_{i-1/2} \right] = 0. $$
Finding the flux $f_{k \pm 1/2}$ depends on the model (for fluids see GRHydro
etc).
Using the right weak form is essential.
$$ \begin{aligned} && \partial_t q^n + \frac{n}{n+1} \partial_x q^{n+1} & = 0 \\ \implies && \partial_t q + q \partial_x q & = 0. \end{aligned} $$Strong solutions agree when continuous; inconsistent at shocks.
Can use entropy pairs, path-consistent methods for complex cases.
Discrete version, 1d:
$$ \frac{\text{d}}{\text{d}t} \hat{q}_i + \frac{1}{\Delta x} \left[ f_{i+1/2} - f_{i-1/2} \right] = 0. $$MoL
in time;
Any high order method shows Gibbs' oscillations at jumps.
No convergence with resolution.
Use piecewise polynomial reconstruction (eg WENO) to avoid oscillations.
See GRHydro
, IllinoisGRMHD
, Spritz
, WhiskyTHC
.
Entropy $\eta({\bf q})$ is convex function, flux $\psi$, s.t.
$$ \partial_t \eta + \partial_x \psi \le 0, \quad \nabla_{\bf q} \psi = \nabla_{\bf q} \eta \nabla_{\bf q} {\bf f}. $$Entropy picks out unique weak solution.
Given two solutions ${\bf q}_{1, 2}$, then
$$ \frac{d}{dt} \| {\bf q}_{1} - {\bf q}_{2} \| \le 0 $$only if both are entropy solutions.
Conclusion: if numerical scheme violates entropy condition, it can and will diverge from true solution.
ETK matter simulations
Focus on shocks important, but restricts accuracy.
Long term accuracy needs better approaches (DG, compact FD will help).
Fast/short effects need LES-type treatment.
Entropy stability only non-negotiable.