Implementation and package functions
Above, it was shown that we need to solve the equation:
where A is the coefficient matrix, given in Equations (6.14) and (6.17), φ is the vector that we are trying to find and represents, for example, the temperature at the grid points. The vector b has elements given by the source term and grid distance for interior grid point, as well as the boundary conditions for boundary points. We may write this as:
To solve the Poisson equation, we basically need to:
- Specify the source term and the boundary values. ...
Get GNU Octave 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.