A closer look at Jeans Instability plots

First is a plot of the total density at a peak (i.e., a peak is a region that is growing in density over simulation). The analytical function for the density is:

where is the background density, is the density perturbation, and is the growth rate, calculated to be ~628.8 (in computational units).

At the peak, the Cos(x) function is just 1, and so in scaled units, the function becomes:

Since this is not an exact exponential, it does not appear as a straight line on a log-linear plot (see for reference). Here is the data output from astrobear compared to the analytical function, on a linear-linear plot:

Now, since the perturbation is just an exponential (given by above), it looks like this on a semi-log plot:

The slope of this line, on a semi-log plot, gives the power 'e' is raised to. That is, since , . Here the log is base 10, NOT e, so log(e) DNE 1. This is an equation of a line with slope = log(e)*628.8, or ~273. Thus, if one plots the perturbation on a semi-log plot, and calculates the slope — it should give back this number - m=273.

When calculating the average slope using log(y2)-log(y1)/x2-x1, I get a number very close to 273. This is good. But perhaps more descriptive is a plot of the instantaneous slope of this line - to see any deviations of astrobear's output from the analytical curve. To make this plot, I calculated the derivative of the log of the analytical function:

(as expected), and plotted this against the instantaneous derivative of the data (calculated using log(i+1)-log(i) / log(j+1) - log(j) in my spreadsheet). This is what I get:

As we see, initially the data from astrobear lines up very well with the analytical result, but over a couple of e-folding times, the rate of change increases compared to the analytical curve. By 5 e-folding times, the difference is ~10% (easily seen in the first plot). If we consider the error from the non-linear term to grow roughly as , and take t = 5/628.8 (5 e-folding times), then the error is ~2%. This seems to match the data. This means that by a few e-folding times, the non-linear term becomes significant, and so we can no longer assume a linear perturbation to govern evolution.

Attachments (3)

Download all attachments as: .zip

Comments

1. Jonathan -- 11 years ago

I would rescale x-axis to be in e-folding times… Also (and this is not necessary - but more for curiosity) if you include the first non-linear term and take where you get something that goes like

Just curious if you plot this function for the instantaneous growth rate - how well it compares with AstroBEAR. A rough estimate puts it fairly close…

2. Jonathan -- 11 years ago

Should have said that where I used the taylor expansion for

and the gets dropped when you take the derivative