arXiv ScienceSearch

arXiv · astro-ph/0610872

An energy-conserving formalism for adaptive gravitational force softening in SPH and N-body codes

Abstract

In this paper we describe an adaptive softening length formalism for collisionless N-body and self-gravitating Smoothed Particle Hydrodynamics (SPH) calculations which conserves momentum and energy exactly. This means that spatially variable softening lengths can be used in N-body calculations without secular increases in energy. The formalism requires the calculation of a small additional term to the gravitational force related to the gradient of the softening length. The extra term is similar in form to the usual SPH pressure force (although opposite in direction) and is therefore straightforward to implement in any SPH code at almost no extra cost. For N-body codes some additional cost is involved as the formalism requires the computation of the density via a summation over neighbouring particles using the smoothing kernel. The results of numerical tests demonstrate that, for homogeneous mass distributions, the use of adaptive softening lengths gives a softening which is always close to the `optimal' choice of fixed softening parameter, removing the need for fine-tuning. For a heterogeneous mass distribution (as may be found in any large scale N-body simulation) we find that the errors on the least-dense component are lowered by an order of magnitude compared to the use of a fixed softening length tuned to the densest component. For SPH codes our method presents a natural and elegant choice of softening formalism which makes a small improvement to both the force resolution and the total energy conservation at almost zero additional cost.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

D. J. Price, J. J. Monaghan. 2006-10-30. An energy-conserving formalism for adaptive gravitational force softening in SPH and N-body codes. https://doi.org/10.1111/j.1365-2966.2006.11241.x

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