{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/athena-a-new-code-for-astrophysical-mhd","title":"Athena: A New Code for Astrophysical MHD","arxiv_id":"0804.0402","date":"2008-04-02","proceeding":null,"authors":["James M. Stone","Thomas A. Gardiner","Peter Teuben","John F. Hawley","Jacob B. Simon"],"abstract":"A new code for astrophysical magnetohydrodynamics (MHD) is described. The\ncode has been designed to be easily extensible for use with static and adaptive\nmesh refinement. It combines higher-order Godunov methods with the constrained\ntransport (CT) technique to enforce the divergence-free constraint on the\nmagnetic field. Discretization is based on cell-centered volume-averages for\nmass, momentum, and energy, and face-centered area-averages for the magnetic\nfield. Novel features of the algorithm include (1) a consistent framework for\ncomputing the time- and edge-averaged electric fields used by CT to evolve the\nmagnetic field from the time- and area-averaged Godunov fluxes, (2) the\nextension to MHD of spatial reconstruction schemes that involve a\ndimensionally-split time advance, and (3) the extension to MHD of two different\ndimensionally-unsplit integration methods. Implementation of the algorithm in\nboth C and Fortran95 is detailed, including strategies for parallelization\nusing domain decomposition. Results from a test suite which includes problems\nin one-, two-, and three-dimensions for both hydrodynamics and MHD are given,\nnot only to demonstrate the fidelity of the algorithms, but also to enable\ncomparisons to other methods. The source code is freely available for download\non the web.","url_abs":"http://arxiv.org/abs/0804.0402v1","url_pdf":"http://arxiv.org/pdf/0804.0402v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"athena-a-new-code-for-astrophysical-mhd","repo_url":"https://github.com/mikeg64/hermes","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"unanswered"}},{"paper_slug":"athena-a-new-code-for-astrophysical-mhd","repo_url":"https://github.com/rumpie/warp-chris-moore","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"unanswered"}},{"paper_slug":"athena-a-new-code-for-astrophysical-mhd","repo_url":"https://github.com/thenumbernine/HydrodynamicsGPU","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"unanswered"}},{"paper_slug":"athena-a-new-code-for-astrophysical-mhd","repo_url":"https://github.com/thenumbernine/hydro-cl-lua","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"unanswered"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=0804.0402","mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}