arXiv ScienceSearch

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

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

On binary pulsars and the force of gravity

The energy-momentum budget of the astrophysical systems can be studied by the exact local conservation equation derived by Landau and Lifshitz. We show that a similar equation is valid for the Einstein-Cartan gravity. We reanalyze a binary pulsar system using the Landau-Lifshitz conservation equation and show that the orbital period change rate can be completely understood as a curvature backreaction process. Taking into account the detailed theoretical and observational research of relativistic binary pulsar systems, especially the system of Hulse and Taylor, we conclude that general relativity and astrophysical observations rule out the existence of gravitational radiation. We comment upon the LIGO GW events and their alternative explanation, as well as the recent pulsar timing arrays data.

astro-ph

Oscillation frequencies and mode lifetimes in alpha Centauri A

We analyse our recently-published velocity measurements of alpha Cen A (Butler et al. 2004). After adjusting the weights on a night-by-night basis in order to optimize the window function to minimize sidelobes, we extract 42 oscillation frequencies with l=0 to 3 and measure the large and small frequency separations. We give fitted relations to these frequencies that can be compared with theoretical models and conclude that the observed scatter about these fits is due to the finite lifetimes of the oscillation modes. We estimate the mode lifetimes to be 1-2 d, substantially shorter than in the Sun.

astro-ph

Hipparcos period-luminosity relations for Miras and semiregular variables

We present period-luminosity diagrams for nearby Miras and semiregulars, selecting stars with parallaxes better than 20 per cent and well-determined periods. Using K-band magnitudes, we find two well-defined P-L sequences, one corresponding to the standard Mira P-L relation and the second shifted to shorter periods by a factor of about 1.9. The second sequence only contains semiregular variables, while the Mira sequence contains both Miras and semiregulars. Several semiregular stars show double periods in agreement with both relations. The Whitelock evolutionary track is shown to fit the data, indicating that the semiregulars are Mira progenitors. The transition between the two sequences may correspond to a change in pulsation mode or to a change in the stellar structure. Large amplitude pulsations leading to classical Mira classification occur mainly near the tip of the local AGB luminosity function.

astro-ph