Monday, 07/24: Writing a pm-code - AIP
Monday, 07/24: Writing a pm-code - AIP
Monday, 07/24: Writing a pm-code - AIP
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Model equations 15<br />
However, it is convenient to re-write the equations in comoving variables and<br />
make them dimensionless by choosing suitable units (I will denote variables in<br />
<strong>code</strong> units with a tilde˜). In the following, I will adopt the variables and units<br />
used in Anatoly Klypin’s PM <strong>code</strong>. This is just an example. Feel free to choose<br />
your own - just make sure you are consistent!<br />
˜x ≡ a −1 r r 0<br />
, ˜p ≡ a v v 0<br />
, ˜φ ≡<br />
φ<br />
φ 0<br />
, ˜ρ = a 3 ρ ρ 0<br />
,<br />
where x is the comoving coordinates, v = u − Hr = aẋ is the peculiar<br />
velocity 5 and φ is the peculiar potential defined as (Peebles 1980, p. 42)<br />
φ = Φ + 1/2 aä (r/a) 2 = Φ + H2 0<br />
2<br />
(Ω Λ,0 − 1 )<br />
2 a−3 Ω m,0 r 2 ,<br />
where<br />
Ω m,0 = 8πGρ 0<br />
3H0<br />
2 ; Ω Λ,0 = Λ<br />
3H0<br />
2 .<br />
5 p ∝ av is called momentum, this choice of variable allows us to get rid of the annoying (ȧ/a) terms in<br />
equations.