Chapter 10. Real-World Physics Application

We will now investigate the concurrent (MPI) wave code for a vibrating string. It is a point-to-point communication example that should give your Pi a good workout.

In this chapter, you will learn:

  • How to write and run the MPI code for a vibrating string

MPI concurrent wave equation and code

The following code was borrowed from Blaise Barney of Lawrence Livermore National Laboratory. It is an MPI concurrent wave equation program that the author implemented on his 64-core Pi3 supercomputer.

The code essentially solves a one-dimensional wave equation and it has the following form:

A(i,t+1) = (2.0*A(i,t)) - A(i,t-1)+(c*(A(i-1,t)-(2.0*A(i,t))+A(i+1,t)))

Please see; http://www.robopgmr.com/?p=2780 for more in-depth ...

Get Build Supercomputers with Raspberry Pi 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.