Hostname: page-component-6766d58669-88psn Total loading time: 0 Render date: 2026-05-23T16:11:00.384Z Has data issue: false hasContentIssue false

Generating Optimal Initial Conditions for Smoothed Particle Hydrodynamics Simulations

Published online by Cambridge University Press:  18 December 2015

S. Diehl
Affiliation:
Nuclear & Particle Physics, Astrophysics & Cosmology Group (T-2), Los Alamos National Laboratory, P.O. Box 1663, Los Alamos, NM 87545, USA Computational Physics & Methods (CCS-2), Los Alamos National Laboratory, P.O. Box 1663, Los Alamos, NM 87545, USA
G. Rockefeller*
Affiliation:
Computational Physics & Methods (CCS-2), Los Alamos National Laboratory, P.O. Box 1663, Los Alamos, NM 87545, USA
C. L. Fryer
Affiliation:
Computational Physics & Methods (CCS-2), Los Alamos National Laboratory, P.O. Box 1663, Los Alamos, NM 87545, USA
D. Riethmiller
Affiliation:
Astrophysical Institute, Ohio University, Athens, OH 45701, USA
T. S. Statler
Affiliation:
Astrophysical Institute, Ohio University, Athens, OH 45701, USA National Science Foundation, Arlington, VA, USA
*
Rights & Permissions [Opens in a new window]

Abstract

We review existing smoothed particle hydrodynamics setup methods and outline their advantages, limitations, and drawbacks. We present a new method for constructing initial conditions for smoothed particle hydrodynamics simulations, which may also be of interest for N-body simulations, and demonstrate this method on a number of applications. This new method is inspired by adaptive binning techniques using weighted Voronoi tessellations. Particles are placed and iteratively moved based on their proximity to neighbouring particles and the desired spatial resolution. This new method can satisfy arbitrarily complex spatial resolution requirements.

Information

Type
Research Article
Copyright
Copyright © Astronomical Society of Australia 2015 
Figure 0

Figure 1. Popular configurations for setting up spatially uniform SPH initial conditions. From the top-left corner to the bottom right: cubic lattice, cubic close packing, hexagonal close packing, quaquaversal tiling, random configuration, concentrical shells, gravitational glass, and the new WVT approach. All examples contain approximately the same number of particles in the sphere (22 000). One quadrant of the sphere is cut out to allow a view into the inner configuration. Colours change along the z-axis simply to show depth.

Figure 1

Figure 2. Popular configurations for setting up spatially adaptive SPH initial conditions. From the top-left corner to the bottom right: stretched cubic lattice, stretched cubic close packing, stretched hexagonal close packing, stretched quaquaversal tiling, random configuration, concentrical shell setup, stretched gravitational glass, and the new WVT approach. All examples contain approximately the same number of particles in the sphere (22 000), and the particles’ sizes reflect the desired particle spacing. One quadrant of the sphere is cut out to allow a view into the inner configuration. Colours change along the z-axis simply to show depth.

Figure 2

Figure 3. Two-dimensional example for producing a uniform particle density in a circle with radius 1 with the new WVT setup for 1 000 particles. The frames show snapshots of the WVT iterations, starting with random positions sampled from a uniform distribution (top left), and then showing every 10th iteration, until the final product in the lower right panel (here, iteration 70). The hollow particles are ‘ghost particles’ that establish proper boundaries.

Figure 3

Figure 4. Same as Figure 3, but for a non-uniform particle distribution. The target particle density is four times higher at the edge of the circle than in the centre.

Figure 4

Figure 5. Top panels: particle configurations in two-dimensional examples. We consider three different configurations: uniform particle density (left), more resolution in outer layers (centre), more resolution at centre (right). The bottom panels shows the actual particle separations as a function of radius. The points measure the average distance to the closest 8 (red), 16 (green), 32 (blue) and 64 (orange) neighbours. The solid black line shows the input resolution scaled for the closest 16 neighbours, indeed closely following the green data points.

Figure 5

Figure 6. This three-dimensional example shows an asymmetric WVT setup for a double degenerate merger simulation. In this example, the accretor (left) is modelled with a constant particle density, whereas the donor (right) has significant more resolution in the outer layers than in the centre, making SPH simulation of Roche lobe overflow feasible.

Figure 6

Figure 7. WVT results for a gas cloud with polytropic index of n = 3/8, embedded within a triaxial (axis ratio 17:15:14) dark matter potential, a slice through the simulation at z = 0. Top left: Dark matter particles in cyan, with surfaces of constant potential overplotted. Top right: SPH gas particles in red, with surfaces of constant mass density overplotted. Bottom left: SPH gas particles in red and dark matter particles in cyan. Bottom right: The surfaces of constant dark matter potential (blue) coincide with the surfaces of constant gas mass density (red).

Figure 7

Figure 8. Examples for an arbitrary spatial configuration. The top panel shows a 3D configuration, the lower panel shows a two-dimensional configuration. Particles with large smoothing lengths (shown in white in bottom panel) are omitted in the three-dimensional view for clarity. This particular configuration shows a dynamic range of ~ 10. Smoothing lengths are indicated by colour and proportional to their symbols’ sizes.

Figure 8

Figure 9. Density versus radius of a Sedov blast wave problem comparing the results from a WVT setup with a hexagonal close-packed lattice (left) and a concentric shell configuration (right), each using 1.5 million particles. The black line indicates the analytic solution. In the hexagonal close-packed lattice, different shock velocities at different angles through the lattice lead to variation in the shock position around the sphere—and to lower-density regions behind the fastest parts of the shock, which show up in the plot as extra scatter in density, especially for radii between ~ 0.32 and ~ 0.36, at this time in the simulation. The initial density perturbations in the concentric shell setup—visible as scatter in density at constant radius outside the shock—grow in the shock to produce a broad range of particle densities. The low resolution at the energy source leads to velocity perturbations that then create density perturbations.

Figure 9

Figure 10. Comparison of the interpolation accuracy for 128 neighbours in the cubic lattice, cubic close packing, hexagonal close packing, quaquaversal tiling, random configuration, shell setup, gravitational glass, and the new WVT approach (top left to bottom right). Colours indicate deviations from the target density, with blue colours showing negative and red colours denoting positive deviations. Each panel is divided into two halves with different dynamic ranges: ± 5% on the left and ± 1% on the right side. Note that the shell setup is shown at an off-centre location, to avoid the discussed special treatment of the centre in this comparison. Quaquaversal tiling and the random setup perform noticeably worse than any other method, while the uniform grid setups perform best as expected. The non-gridded setup methods perform equally well, with very high interpolation accuracies that never exceed 1%.

Figure 10

Figure 11. The equivalent of Figure 10, but for spatially adaptive setups: stretched cubic lattice, stretched cubic close packing, stretched hexagonal close packing, stretched quaquaversal tiling, random configuration, shell setup, stretched gravitational glass, and the new WVT approach (top left to bottom right). All uniform-grid-based setups, quaquaversal tiling and the random configuration perform very badly. Of the non-gridded setup methods, the WVT setup performs best with density inaccuracies below 1%. The stretched gravitational glass introduces artefacts that are located inside shells, whereas the shell setup demonstrates deviations in the radial direction.

Figure 11

Figure 12. Unstretched (left) and stretched glass (right). Note the wavy shell-like structure in the stretched glass. To bring out this structure, particles are periodically coloured by their radius in the unstretched glass, which is then also applied to the stretched glass.

Figure 12

Table 1. Comparison of particle setup methods.