Monday, 07/24: Writing a pm-code - AIP
Monday, 07/24: Writing a pm-code - AIP
Monday, 07/24: Writing a pm-code - AIP
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
PM: main <strong>code</strong> blocks 21<br />
• Triangular Shaped Cloud (TSC):<br />
S(x) = 1<br />
∆x<br />
{<br />
1 − |x|/∆x, |x| < ∆x<br />
0, otherwise<br />
The fraction of particle’s mass assigned to a cell ijk is the shape function<br />
averaged over this cell:<br />
W (x p − x ijk ) =<br />
x ijk +∆x/2<br />
∫<br />
dx ′ S(x p − x ′ );<br />
x ijk −∆x/2<br />
W (r p − r ijk ) = W (x p − x ijk )W (y p − y ijk )W (z p − z ijk );<br />
The density in a cell ijk is then<br />
ρ ijk =<br />
N p<br />
∑<br />
p=1<br />
m p W (r p − r ijk )