Search arXivSearch

arXiv · 0802.4245

VINE -- A numerical code for simulating astrophysical systems using particles I: Description of the physics and the numerical methods

Abstract

We present a Fortran 95 code for simulating the evolution of astrophysical systems using particles to represent the underlying fluid flow. The code is designed to be versatile, flexible and extensible, with modular options that can be selected either at compile time or at run time. We include a number of general purpose modules describing a variety of physical processes commonly required in the astrophysical community. The code can be used as an N-body code to evolve a set of particles in two or three dimensions using either a Leapfrog or Runge-Kutta-Fehlberg integrator, with or without individual timesteps for each particle. Particles may interact gravitationally as $N$-body particles, and all or any subset may also interact hydrodynamically, using the Smoothed Particle Hydrodynamic (SPH) method. Massive point particles (`stars') which may accrete nearby SPH or $N$-body particles may also be included. The default free boundary conditions can be replaced by a module to include periodic boundaries. Cosmological expansion may also be included. An interface with special purpose `GRAPE' hardware may also be selected. If available, forces obtained from the GRAPE coprocessors may be transparently substituted for those obtained from the default tree based calculation. The code may be run without modification on single processors or in parallel using OpenMP compiler directives on large scale, shared memory parallel machines. In comparison to the Gadget-2 code of Springel 2005, the gravitational force calculation is $\approx 3.5 - 4.8$ times faster with VINE when run on 8 Itanium~2 processors in an SGI Altix, while producing nearly identical outcomes in our test problems. We present simulations of several test problems, including a merger simulation of two elliptical galaxies with 800000 particles.

Explore related subjects

Keep this discovery

BibTeXRIS

M. Wetzstein, Andrew F. Nelson, T. Naab, A. Burkert. 2009-07-10. VINE -- A numerical code for simulating astrophysical systems using particles I: Description of the physics and the numerical methods. https://doi.org/10.1088/0067-0049/184/2/298

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

KEEP EXPLORING

Related papers

Memory effects in turbulent transport

In the mean-field theory of magnetic fields, turbulent transport, i.e. the turbulent electromotive force, is described by a combination of the alpha effect and turbulent magnetic diffusion, which are usually assumed to be proportional respectively to the mean field and its spatial derivatives. For a passive scalar there is just turbulent diffusion, where the mean flux of concentration depends on the gradient of the mean concentration. However, these proportionalities are approximations that are valid only if the mean field or the mean concentration vary slowly in time. Examples are presented where turbulent transport possesses memory, i.e. where it depends crucially on the past history of the mean field. Such effects are captured by replacing turbulent transport coefficients with time integral kernels, resulting in transport coefficients that depend effectively on the frequency or the growth rate of the mean field itself. In this paper we perform numerical experiments to find the characteristic timescale (or memory length) of this effect as well as simple analytical models of the integral kernels in the case of passive scalar concentrations and kinematic dynamos. The integral kernels can then be used to find self-consistent growth or decay rates of the mean fields. In mean-field dynamos the growth rates and cycle periods based on steady state values of alpha effect and turbulent diffusivity can be quite different from the actual values.

astro-ph

Magnetic Reconnection During the Two-Phase Evolution of a Solar Eruptive Flare

We present a detailed multi-wavelength analysis and interpretation of the evolution of an M7.6 flare on October 24, 2003. The X-ray observations of the flare taken from the RHESSI spacecraft reveal two phases of the flare evolution. The first phase is characterized by the altitude decrease of the X-ray looptop (LT) source for $\sim$11 minutes. Such a long duration of the descending LT source motion is reported for the first time. The EUV loops, located below the X-ray LT source, also undergo contraction with similar speed ($\sim$15 km s$^{-1}$) in this interval. During the second phase the two distinct hard X-ray footpoints (FP) sources are observed which correlate well with UV and H$α$ flare ribbons. The X-ray LT source now exhibits upward motion. The RHESSI spectra during the first phase are soft and indicative of hot thermal emission from flaring loops with temperatures $T>25$ MK at the early stage. On the other hand, the spectra at high energies ($\varepsilon \gtrsim$25 keV) follow hard power laws during the second phase ($γ= 2.6-2.8$). We show that the observed motion of the LT and FP sources can be understood as a consequence of three-dimensional magnetic reconnection at a separator in the corona. During the first phase of the flare, the reconnection releases an excess of magnetic energy related to the magnetic tensions generated before a flare by the shear flows in the photosphere. The relaxation of the associated magnetic shear in the corona by the reconnection process explains the descending motion of the LT source. During the second phase, the ordinary reconnection process dominates describing the energy release in terms of the standard model of large eruptive flares.

astro-ph

Proper motion L and T dwarf candidate members of the Pleiades

We present the results of a deep optical-near-infrared multi-epoch survey covering 2.5 square degrees of the Pleiades open star cluster to search for new very-low-mass brown dwarf members. A significant (~ 5 year) epoch difference exists between the optical (CFH12k I-, Z-band) and near infrared (UKIRT WFCAM J-band) observations. We construct I,I-Z and Z,Z-J colour magnitude diagrams to select candidate cluster members. Proper motions are computed for all candidate members and compared to the background field objects to further refine the sample. We recover all known cluster members within the area of our survey. In addition, we have discovered 9 new candidate brown dwarf cluster members. The 7 faintest candidates have red Z-J colours and show blue near-infrared colours. These are consistent with being L and T-type Pleiads. Theoretical models predict their masses to be around 11 Jupiter masses. There is 1 errata for this paper

astro-ph