# Computational magnetohydrodynamics

(Redirected from Computational Magnetohydrodynamics)

Jump to navigation
Jump to search
**Computational magnetohydrodynamics (CMHD)** is a rapidly developing branch of magnetohydrodynamics that uses numerical methods and algorithms to solve and analyze problems that involve electrically conducting fluids. Most of the methods used in CMHD are borrowed from the well established techniques employed in Computational fluid dynamics. The complexity mainly arises due to the presence of a magnetic field and its coupling with the fluid. One of the important issues is to numerically maintain the (conservation of magnetic flux) condition, from Maxwell's equations, to avoid the presence of unrealistic effects, namely magnetic monopoles, in the solutions.

## Contents

## Open-source MHD codes[edit]

- Pencil Code

Compressible resistive MHD, intrinsically divergence free, embedded particles module, finite-difference explicit scheme, high-order derivatives, Fortran95 and C, parallelized up to hundreds of thousands cores. Source code is available. - RAMSES

RAMSES is an open source code to model astrophysical systems, featuring self-gravitating, magnetised, compressible, radiative fluid flows. It is based on the Adaptive Mesh Refinement (AMR) technique on a fully threaded graded octree. RAMSES is written in Fortran 90 and is making intensive use of the Message Passing Interface (MPI) library.^{[1]}^{[2]}Source code is available. - RamsesGPU

RamsesGPU is a MHD Code written in C++, based on the original RAMSES but only for regular grid (no AMR). The code has been designed to run on large clusters of GPU (NVIDIA graphics processors), so parallelization relies on MPI for distributed memory processing, as well as the programing language CUDA for efficient usage of GPU resources. Static Gravity Fields are supported. Different finite volume methods are implemented. Source code is available. - Athena

Athena is a grid-based code for astrophysical magnetohydrodynamics (MHD). It was developed primarily for studies of the interstellar medium, star formation, and accretion flows.^{[3]}Source code is available. - EOF-Library

EOF-Library is a software that couples Elmer FEM and OpenFOAM simulation packages. It enables efficient internal field interpolation and communication between the finite element and the finite volume frameworks. Potential applications are MHD, convective cooling of electrical devices, industrial plasma physics and microwave heating of liquids.^{[4]}

## Commercial MHD codes[edit]

## See also[edit]

## References[edit]

**^**Teyssier, R (2002). "Cosmological hydrodynamics with adaptive mesh refinement. A new high resolution code called RAMSES".*Astronomy and Astrophysics*.**385**: 337–364. arXiv:astro-ph/0111367. Bibcode:2002A&A...385..337T. doi:10.1051/0004-6361:20011817. Retrieved 13 July 2016.**^**Gheller, C; Wang, P; Vazza, F; Teyssier, R (28 September 2015). "Numerical cosmology on the GPU with Enzo and Ramses".*Journal of Physics: Conference Series*.**640**: 012058. arXiv:1412.0934. doi:10.1088/1742-6596/640/1/012058. Retrieved 1 July 2016.**^**Stone, James M.; Gardiner, Thomas A.; Teuben, Peter; Hawley, John F.; Simon, Jacob B. (September 2008). "Athena: A New Code for Astrophysical MHD".*The Astrophysical Journal Supplement Series*.**178**(1): 137–177. arXiv:0804.0402. Bibcode:2008ApJS..178..137S. doi:10.1086/588755.**^**Vencels, Juris; Råback, Peter; Geža, Vadims (2019-01-01). "EOF-Library: Open-source Elmer FEM and OpenFOAM coupler for electromagnetics and fluid dynamics".*SoftwareX*.**9**: 68–72. doi:10.1016/j.softx.2019.01.007. ISSN 2352-7110.

- Brio, M., Wu, C. C.(1988), "An upwind differencing scheme for the equations of ideal magnetohydrodynamics",
*Journal of Computational Physics*,**75**, 400–422. - Henri-Marie Damevin and Klaus A. Hoffmann(2002), "Development of a Runge-Kutta Scheme with TVD for Magnetogasdynamics",
*Journal of Spacecraft and Rockets*,**34**,No.4, 624–632. - Robert W. MacCormack(1999), "An upwind conservation form method for ideal magnetohydrodynamics equations",
*AIAA-99-3609*. - Robert W. MacCormack(2001), "A conservation form method for magneto-fluid dynamics",
*AIAA-2001-0195*.

## Further reading[edit]

- Toro, E. F. (1999),
*Riemann Solvers and Numerical Methods for Fluid Dynamics*, Springer-Verlag. - Ledvina, S. A.; Y.-J. Ma; E. Kallio (2008). "Modeling and Simulating Flowing Plasmas and Related Phenomena".
*Space Science Reviews*.**139**(1–4): 143–189. Bibcode:2008SSRv..139..143L. doi:10.1007/s11214-008-9384-6.