[CSC 435] Questions on Jacobi

Andrew J. Pounds pounds_aj at mercer.edu
Sun Apr 22 19:45:10 EDT 2018


On 04/22/2018 06:20 PM, Andrew Devin Mcbryde wrote:
>
> My group and I are having some difficulty in understanding your
> expectation using the Jacobi algorithm to calculate the iterations
> that the simulation code uses. We do not understand what the Jacobi
> algorithm actually is and how it can be applied to the problem we are
> currently facing. Most of the information we find regarding the
> function references how the memory is referenced and not the actual
> math that calculates the final values.
>

Let's see if we can break this down a little... equation (2) on the
group project sheet (which shows how the concentrations of each cell
change with time)  should be replaced with something like equation 3.7
in the text.   In equation 3.7 the $\Phi$ values refer to the quantity
changing (in your case it is concentrations). 


You will, however, need to convert equation 3.7 to work in 3D.  To do
this you will need to add a $z$ component to each  concentration cell,
i.e. - $\Phi(x,y,z)$.  You will also need to add an additional term to
account for the change in the $z$ dimension. 


Since the diffusion is taking place through the faces only (areas), the
denominators in your 3D equation will remain squared terms, and note
cubed terms.


Now think about this -- your modified equation 3.7 will let you
determine how much any cell in your cube should change with a VERY
significant new feature -- you have BROKEN all data dependencies that
would inhibit parallelism (and in many cases those that would inhibit
vectorization).  Let's call $\Phi_c$ the copy of our diffusion cube.  I
can calculate the entities of $\Phi_c$ as...


$\Phi_c(x,y,z) = \Phi(x,y,z) + \frac{\delta\Phi(x,y,z)}{\delta t}$


With this technique you  can calculate ALL of the elements of $\Phi_c$
independently and then, when done, copy all of the elements of $\Phi_c
\rightarrow \Phi$, and then repeat the process until you reach equilibrium.


Once you develop a new algorithm,  test the serial version and try to
obtain the same results you got on your CSC 330 projects.


I STRONGLY encourage you to get the serial version working on hammer
first. 




-- 
Andrew J. Pounds, Ph.D.  (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
http://faculty.mercer.edu/pounds_aj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ikmlbdakpdghjaoe.png
Type: image/png
Size: 618 bytes
Desc: not available
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mgaeceeeaajldcdi.png
Type: image/png
Size: 587 bytes
Desc: not available
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hlincjpbfoheglfh.png
Type: image/png
Size: 957 bytes
Desc: not available
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hlobkfhomjbdinhh.png
Type: image/png
Size: 663 bytes
Desc: not available
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inppohcpgkjgpkcb.png
Type: image/png
Size: 1580 bytes
Desc: not available
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iaonlfjfdfggaeha.png
Type: image/png
Size: 751 bytes
Desc: not available
URL: <http://theochem.mercer.edu/pipermail/csc435/attachments/20180422/0d768911/attachment-0005.png>


More information about the csc435 mailing list