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.
PM: main <strong>code</strong> blocks 20<br />
Density Assignment<br />
The Particle Mesh algorithms assume that particles have certain size, mass,<br />
shape, and internal density. This determines the interpolation scheme used to<br />
assign densities to grid cells. Let’s define the 1D particle shape, S(x), to be<br />
mass density at the distance x from the particle for cell size ∆x (Hockney &<br />
Eastwood 1981). The common choices are<br />
• Nearest Grid Point (NGP): particles are point-like and all of particle’s mass<br />
is assigned to the single grid cell that contains it:<br />
S(x) = 1 ( x<br />
)<br />
∆x δ ∆x<br />
• Cloud In Cell (CIC): particles are cubes (in 3D) of uniform density and of one<br />
grid cell size.<br />
S(x) = 1 {<br />
1, |x| <<br />
1<br />
2 ∆x<br />
∆x 0, otherwise