Astron. Astrophys. 325, 857-865 (1997)
2. The SPH methodology
In SPH one models a number of particles that carry the physical
quantities, where the particles' distribution in space describes the
density distribution. To simulate a fluid each particle's mass is
smoothed over a radius r. Following for example Hernquist &
Katz (1989), such a smoothed quantity at be
written for N particles as
![[EQUATION]](img7.gif)
where , ,
and . The smoothing kernel,
w, has the property
![[EQUATION]](img12.gif)
The kernel used here is the spline kernel from Monaghan and
Lattanzio (1985):
![[EQUATION]](img13.gif)
This is a smooth kernel with compact support over the radius
around the particle. The smoothing length
h is varying in time and updated every iteration to keep the
interactions with other particles to a specific number. They are
called the particle's neighbours, and the number of neighbours for
each particle in the tests in this paper is 64.
In the SPH formulation there are different forms of the
discretization of the Navier Stokes equations. Here the expressions of
Hernquist & Katz (1989) are used, i.e.
![[EQUATION]](img15.gif)
where and . The
continuity equation is automatically satisfied due to the Lagrangian
formulation, and the density calculated from Eq. (1) becomes
![[EQUATION]](img18.gif)
The standard artificial viscosity term, , is
defined
![[EQUATION]](img20.gif)
where . The first and second term in the
expression of in Eq. (6) represents the bulk
and the von Neumann Richtmeyer artificial viscosity respectively. The
constant is a fudge parameter to prevent the
artificial viscosity to become too large. The artificial viscosity is
used only when , that is when two particles are
approaching each other. To close the system, the pressure is defined
as , where u is the thermal energy
density and the adiabatic index. The particles'
quantities are updated using a standard leapfrog integrator with the
time step
![[EQUATION]](img26.gif)
where is the Courant factor to stabilize the
integration, and the maximum µ
from the interactions with the other particles. Since all particles
are integrated with the same time step, the smallest time step from
all particles is used in the integration. In the leapfrog integrator
the velocity and internal energy density are integrated at half time
steps, , while the position is integrated at
whole time steps, , as
![[EQUATION]](img31.gif)
The viscous acceleration terms in Eq. (4) scales with
as
![[EQUATION]](img33.gif)
The artificial viscosity can therefore lead to undesirable effects,
because the velocity differences are smoothed on a time scale of
roughly . The velocities in the model will
therefore be smoothed out unless it expands or if there is some
driving mechanism such as gravitation. To conserve the energy the
particles are heated, which may be unphysical. The heated gas may
reach an equilibrium state earlier than expected. A way of preventing
interparticle penetration without unnecessary heating of the gas could
therefore be useful, and this implies that there is a need to restrict
the artificial viscosity to the shocks as much as possible.
© European Southern Observatory (ESO) 1997
Online publication: April 28, 1998
helpdesk.link@springer.de  |