arXiv Science⌕ Search

arXiv · astro-ph/0305088

A Free, Fast, Simple and Efficient TVD MHD Code

Abstract

We describe a numerical method to solve the magnetohydrodynamic (MHD) equations. The fluid variables are updated along each direction using the flux conservative, 2nd order, total variation diminishing (TVD), upwind scheme of Jin and Xin. The magnetic field is updated separately in two-dimensional advection-constraint steps. The electromotive force (EMF) is computed in the advection step using the TVD scheme, and this same EMF is used immediately in the constraint step in order to preserve \grad.B=0 without the need to store intermediate fluxes. Operator splitting is used to extend the code to three dimensions, and Runge-Kutta is used to get second order accuracy in time. The advantages of this code are high resolution per grid cell, second order accuracy in space and time, enforcement of the \grad.B=0 constraint to machine precision, no memory overhead, speed, and simplicity. A 3-D Fortran implementation less than 400 lines long is made freely available. We also implemented a fully scalable message-passing parallel MPI version. We present tests of the code on MHD waves and shocks.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ue-Li Pen, Phil Arras, ShingKwong Wong. 2003-05-06. A Free, Fast, Simple and Efficient TVD MHD Code. https://doi.org/10.1086/378771. https://arxiv.science/abs/astro-ph/0305088

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Modification from Noncommutative Inflation

We explore the noncommutative effect on single field inflation and compare with WMAP five-year data. First, we calculate the noncommutative effect from the potential and dynamical terms, and construct the general form of modified power spectrum. Second, we consider the leading order modification of slow-roll, DBI and K-inflation and unite the modification, which means the modification is nearly model independent at this level. Finally, comparing with the WMAP5 data, we find that the modified can be well realized as the origin of the relative large spectral index and the quite small running.

astro-ph↗

Frame covariance of CMBR lensing in the exact 1+3 covariant radiation hierarchy

The exact $1+3$ covariant Boltzmann hierarchy for the cosmic microwave background contains acceleration, shear and vorticity couplings whose coefficients grow linearly in $\ell$. We show that all are the multipole form of the aberration operator in the photon Liouville equation. Under a change of threading, this operator shifts by the along-ray generator of a Lorentz boost. The acceleration coupling of $\ell$ to $\ell\pm1$ and the shear coupling of $\ell$ to $\ell\pm2$ are therefore frame-covariant descriptions of the same operator, related by an algebraic, pointwise relabelling of direction. With emitter and observer frames fixed, the observed sky is independent of the intermediate threading at every $\ell$. We derive this in $1+3$ covariant and gauge-invariant variables without constructing second-order gauge-invariant variables. The $O(ε^2\ell)$ content is gravitational lensing, as known in metric variables. Linearisation about a Friedmann--Lemaître--Robertson--Walker background removes these couplings, requiring lensing to be reinstated from the geodesic equation. Keeping the threading arbitrary makes frame covariance explicit and places observer aberration in the same operator. In the Newtonian threading we compute both halves of the deflection: the equivalence-principle contribution enters through aberration, while the spatial-curvature contribution arises from free streaming on perturbed spatial sections and reduces to the same operator. The lensing efficiency follows from the direction derivative. The angular-power-spectrum contribution is quartic in the potential: for a deflection statistically independent of the source, the two fourth-order terms carrying $\ell^2$ cancel where the spectrum is smooth on the deflection scale, and lensing redistributes power without adding ensemble variance.

astro-ph↗

Cosmic Conundrums with Quantum Corrections

Darh energy was discovered over 25 years ago and we do not have an explanation of it. Dark matter comprises 95% of matter in the universe and we still don't know what it is. The Webb telescope has been finding fully formed galaxies with massive black holes millions of times the mass of the sun in the early universe and we don't have any explanation. A quantum density limitation will be used to solve these and other outstanding problems.

astro-ph↗