Partial Differential Equations Toolbox | ![]() ![]() |
Fast solution of Poisson's equation on a rectangular grid.
u=poisolv(b,p,e,t,f)
Description
u=poisolv(b,p,e,t,f)
solves Poisson's equation with Dirichlet boundary conditions on a regular rectangular grid. A combination of sine transforms and tridiagonal solutions is used for increased performance.
b
must specify Dirichlet conditions for all boundary points.
The mesh p
, e
, and t
must be a regular rectangular grid. Details on the mesh data representation can be found in the entry on initmesh
.
f
gives the right-hand side of Poisson's equation.
Apart from roundoff errors, the result should be the same as u=assempde(b,p,e,t,1,0,f)
.
Reference
Strang, Gilbert, Introduction to Applied Mathematics, Wellesley-Cambridge Press, Cambridge, MA, 1986, pp. 453-458.
![]() | poimesh | refinemesh | ![]() |