Lecture 2 â Threads - many-core.group
Lecture 2 â Threads - many-core.group
Lecture 2 â Threads - many-core.group
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
2D heat conduction<br />
• In 2D:<br />
∂T<br />
∂t = α ⎛ ∂ 2 T<br />
∂x + ∂ 2 T ⎞<br />
⎜ ⎟<br />
⎝<br />
2 ∂y 2<br />
⎠<br />
• For which a possible finite difference approximation is:<br />
ΔT<br />
€ Δt = α ⎡ T i+1, j<br />
− 2T i, j<br />
+ T i−1, j<br />
⎢<br />
⎣ Δx 2<br />
+ T i, j +1<br />
− 2T i, j<br />
+ T i, j−1<br />
Δy 2<br />
where ΔT is the temperature change over a time Δt and i,j are indices into<br />
a uniform structured grid (see next slide)<br />
⎤<br />
⎥<br />
⎦