OpenMP and more C++
Monday, August 10th, 2009
potential, as well as a plot of 25,000 initial positions.



potential, as well as a plot of 25,000 initial positions.



and its purpose it to avoid singularities or near-singularities in the gravitational potential. Thus SPH-based galaxy simulations codes cannot resolve fine details such as individual stars in galaxies unless the smoothing and softening parameters are set to zero, in which case the technique is really no longer SPH. The method also has great difficulty handling shocks properly with a finite number of particles.
The hierarchical tree method is a way of improving the efficiency of N-body simulations by effectively smoothing the distant particle distribution. In the TreeSPH code, which was the precursor to GADGET, an oct-tree is created which allows the particles to be sorted spatially. Multipole moments of blocks of space are calculated in the process of contructing the oct-tree. for each particle, the gravitational force is calculated by descending down the oct-tree toward that particle and collecting data along the way. The nearest-neighbor particles are treated as pure particles and gravitational forces are computed directly as in an N-body code. The field of the next-nearest neighbors is calculated form the multipole moments of small "cells" of space. As the distance from the particle increases, the cells grow larger. This approximation greatly improves the efficiency of the force calculation.
Other than learning about SPH and TreeSPH, I've been tinkering with C++, just getting some practice and becoming more familiar with the compiler. I'll read a description of the GADGET-2 code. I found out that it is written in C and it uses MPI, rather than OpenMP.
I've installed IFrIT, which looks like a good tool for visualizing output from the simple programs that I plan to write this summer. sites.google.com/site/ifrithome/Home Swing amplification: A disturbance (density perturbation) which is arranged in a leading, rather than trailing, pattern unwinds, then propagates through the central part of the galaxy and emerges as an amplified disturbance with a trailing pattern. This was not explained very well in the text.
Some alternatives to Lin-Shu: Spiral arms could be transient and in a state of constant renewal. There is a "detonation wave" theory that states that star formation induces more star formation and thus the spiral arms are like the front line of a forest fire. Some spirals could be induced from the recent interaction between galaxies or from the perturbations due to a satellite galaxy. The spirals could also be caused by the rotating oval or bar-shaped potential at the center of the galaxy.
perpendicular to the disk, the matter in the outer regions is seen to be displaced in the
direction in some regions and in the
direction in other regions. The cause of this warping is not understood.