RESUMEN
The Mancha3D code is a versatile tool for numerical simulations of magnetohydrodynamic (MHD) processes in solar/stellar atmospheres. The code includes nonideal physics derived from plasma partial ionization, a realistic equation of state and radiative transfer, which allows performing high-quality realistic simulations of magnetoconvection, as well as idealized simulations of particular processes, such as wave propagation, instabilities or energetic events. The paper summarizes the equations and methods used in the Mancha3D (Multifluid (-purpose -physics -dimensional) Advanced Non-ideal MHD Code for High resolution simulations in Astrophysics 3D) code. It also describes its numerical stability and parallel performance and efficiency. The code is based on a finite difference discretization and a memory-saving Runge-Kutta (RK) scheme. It handles nonideal effects through super-time-stepping and Hall diffusion schemes, and takes into account thermal conduction by solving an additional hyperbolic equation for the heat flux. The code is easily configurable to perform different kinds of simulations. Several examples of the code usage are given. It is demonstrated that splitting variables into equilibrium and perturbation parts is essential for simulations of wave propagation in a static background. A perfectly matched layer (PML) boundary condition built into the code greatly facilitates a nonreflective open boundary implementation. Spatial filtering is an important numerical remedy to eliminate grid-size perturbations enhancing the code stability. Parallel performance analysis reveals that the code is strongly memory bound, which is a natural consequence of the numerical techniques used, such as split variables and PML boundary conditions. Both strong and weak scalings show adequate performance up to several thousands of processors (CPUs).
RESUMEN
Solar partially ionized plasma is frequently modelled using single-fluid (1F) or two-fluid (2F) approaches. In the 1F case, charge-neutral interactions are often described through ambipolar diffusion, while the 2F model fully considers charge-neutral drifts. Here, we expand the definition of the ambipolar diffusion coefficient to include inelastic collisions (ion/rec) in two cases: a VAL3C one-dimensional model and a 2F simulation of the Rayleigh-Taylor instability (RTI) in a solar prominence thread based on [Lukin et al. 2024 Phil. Trans. R. Soc. A 382, 20230417. (doi:10.1098/rsta.2023.0417)]. On one side, we evaluate the relative importance of the inelastic contribution, compared to elastic and charge-exchange collisions. On the other side, we compare the contributions of ion/rec, thermal pressure, viscosity and magnetic forces to the charge-neutral drift velocity of the turbulent flow of the RTI. Our analysis reveals that the contribution of inelastic collisions to the ambipolar diffusion coefficient is negligible across the chromosphere, allowing the classical definition of this coefficient to be safely used in 1F modelling. However, in the transition region, the contribution of inelastic collisions can become as significant as that of elastic collisions. Furthermore, we ascertain that the thermal pressure force predominantly influences the charge-neutral drifts in the RTI model, surpassing the impact of the magnetic force. This article is part of the theme issue 'Partially ionized plasma of the solar atmosphere: recent advances and future pathways'.