Documente Academic
Documente Profesional
Documente Cultură
David Hobbs
Lund Observatory
ASTM17
Numerical Implementation
Introduction
The SPH formulation in the form of the Navier-Stokes equations was covered in previous
lectures.
We have ordinary differential equations (ODE's) with respect to time which can be numerically
integrated.
A number of implementation issues are important for realistic simulations
Variable smoothing length
Symmetrization of particle interactions
Zero-energy mode
Solid boundary treatment
Pairwise particle interactions
Variable smoothing length
The smoothing length h has a direct impact on the accuracy of the solution and the size of
the support domain h.
We should have about 5, 21 or 57 particles in the support domain in 1-, 2- and 3-D
respectively.
The smoothing length may need to be adapted in both space and time so h can evolve
dynamically.
A simple approach is to update the smoothing length, in d-dimensions, according to the
average density as
Symmetrization of particle interactions
If each particle has its own smoothing length, hi is not equal to hj.
Therefore particle i could exert a force on particle j but not vise versa, which would violate
Newton's third law.
To overcome this one can use averages or geometric means of smoothing lengths for pairs
of interacting particles.
Two examples are:
Zero-energy mode
When evaluating derivatives for regular particle distributions the derivative at the particle
can be zero and the derivative between neighboring particles can be anti-symmetric.
This can result in no strain and is generally undesirable.
This can be solved by staggering the particles, solving for velocity at one point and stress
at another.
Direct Find Density Internal Force Art Viscosity Ext Force, etc.
where d is 1/h, 15/(7h2), and 3/(2h3) and =2 in 1-, 2-, and 3-D respectively.
If we take the derivative of this we have
3 dx
d 2 + R 2 0 R <1
2 h
1 2 dx
W (R,h) = d ( 2 R) 1 R < 2
2 hr
0 R2
and
Nearest neighboring search algorithms
Use a search algorithm like the following:
Conclusions
Hopefully, this has given you a well rounded introduction into the main components of N-body and
SPH techniques.