2
$\begingroup$

I attempted to do a N-body-simulation and compare it to the analytical Zeldovich map until shell-crossing appears. In order to do so, I placed them uniformly with the Zeldovich initial condition, e.g they have some offset and are not entirely uniformly distributed. $$ \Delta x = \frac{L}{n_\text{grid}} $$ where L is the size of the box in an $n_\text{grid} \times n_\text{grid}$ mesh with the initial conditions $q$ $$ q = (q_x, q_y) \in [0,L)^2 $$ and their initial positions $$ x(q,a) = (q - a A (2 \pi) \sin(2xq)) \operatorname{mod} L $$ where $a$ is the cosmological time and $A=\frac{1}{4\pi^2}$. The velocity is then of course given by the derivative.

Afterwards, I "split" their mass with a classic cloud-in-cell approach, and solved the Poisson-equation with an FFT . Note that my particle density is literally the density and not some fancy power spectrum. $$ \delta_{ij} = \frac{p_{ij}}{\bar{p}}-1 $$ Afterwards, I applied my solved potential with a leapfrog integrator (conserves the Hamiltonian) to the inverse cloud-in-cell masses.

Now, for 1D, the plot of q vs x at some certain point I receive a sinusoidal wave for particle mesh as well as for Zeldovich, which is correct I think enter image description here , but I would like to test this for 2D as well, e.g $x_1(q_1,a) = (q_1 - a A (2 \pi) \sin(2 \pi q_1),...$. Which curve should I expect from a plot of q vs x or y in 2D? Does it even make sense to compare these with each other? What should I expect from the plot of x vs y before shell crossing?

$\endgroup$
3
  • $\begingroup$ Do I understand correctly that (in your questions at the end) you are thinking about $x_1=q_1-aA(2\pi)\sin(2\pi q_1)$ and $x_2=q_2$? That is, are you essentially taking $n_\mathrm{grid}$ copies of your 1D initial conditions? (This would be consistent with your mention of plane waves in the title.) Or are you thinking about a nontrivially 2D system? $\endgroup$ Commented Aug 17 at 6:06
  • $\begingroup$ Oh no, sorry! $x_2 = q_2 - aA(2 \pi) sin(2\pi q_2)$ $\endgroup$ Commented Aug 17 at 11:55
  • $\begingroup$ Ok, so this is not a plane wave. I'm also confused: Is this 2D arrangement also what you simulated with N-body (to produce the picture)? And the picture is just one "slice"? Beyond this I'm not sure what you are asking for. Are you just asking what is an appropriate thing to plot to compare ZA and N-body in 2D? Or something more specific? $\endgroup$ Commented Aug 18 at 5:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.