### Abstract

Conservative numerical schemes for general relativistic magnetohydrodynamics (GRMHD) require a method for transforming between "conserved" variables such as momentum and energy density and "primitive" variables such as rest-mass density, internal energy, and components of the four-velocity. The forward transformation (primitive to conserved) has a closed-form solution, but the inverse transformation (conserved to primitive) requires the solution of a set of five nonlinear equations. Here we discuss the mathematical properties of the inverse transformation and present six numerical methods for performing the inversion. The first method solves the full set of five nonlinear equations directly using a Newton-Raphson scheme and a guess from the previous time step. The other methods reduce the five nonlinear equations to either one or two nonlinear equations that are solved numerically. Comparisons between the methods are made using a survey over phase space, a two-dimensional explosion problem, and a general relativistic MHD accretion disk simulation. The run time of the methods is also examined. Code implementing the schemes is available with the electronic edition of the article.

Original language | English (US) |
---|---|

Pages (from-to) | 626-637 |

Number of pages | 12 |

Journal | Astrophysical Journal |

Volume | 641 |

Issue number | 1 I |

DOIs | |

State | Published - Apr 10 2006 |

### Keywords

- Hydrodynamics
- MHD
- Methods: numerical

### ASJC Scopus subject areas

- Astronomy and Astrophysics
- Space and Planetary Science

## Fingerprint Dive into the research topics of 'Primitive variable solvers for conservative general relativistic magnetohydrodynamics'. Together they form a unique fingerprint.

## Cite this

*Astrophysical Journal*,

*641*(1 I), 626-637. https://doi.org/10.1086/500349