Next: Evolving Quantities in Time
Up: SPH: Smoothed Particle Hydrodynamics
Previous: Parallelization of the Hydro
  Contents
Derivatives in SPH
For other hydrodynamic quantities
, defined
for every particle
, can be calculated at arbitrary points in
space by a corresponding equation
 |
(5) |
using the gather-scatter method as described above. We find that
essentially any extensive quantity can be calculated as a density
wieghted sum. For intensive quantities, simply multiply by the
density in the SPH sum, and then divide by the density. For instance,
the SPH averaged velocity at a particle position can be given as
 |
(6) |
Perhaps more importantly, the SPH method allows us to calculate not
just hydro quantities, but their spatial derivatives as well, such as
in the Newtonian force law
. We define the
derivative of a hydro quantity ``
'' by using the chain rule, finding
that
 |
(7) |
where all terms in the expression, most importantly the derivative,
are well-defined. As an example of this approach in action, the
standard Newtonian fluid acceleration is calculated by the SPH code as
The code currently assumes a polytropic form for the equation of
state, i.e.
, where
is a constant, and
, our entropic variable, is constant unless an artificial
viscosity prescription is used. For more on this, see Sec. 3.5.
Next: Evolving Quantities in Time
Up: SPH: Smoothed Particle Hydrodynamics
Previous: Parallelization of the Hydro
  Contents
Joshua Faber
2003-06-28