11.07.2015 Views

Introduction to Sparse Matrices In Scilab - Projects

Introduction to Sparse Matrices In Scilab - Projects

Introduction to Sparse Matrices In Scilab - Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.11 Solving Poisson PDE with <strong>Sparse</strong> <strong>Matrices</strong><strong>In</strong> this section, we present the resolution of the Poisson Partial DifferentialEquation in <strong>Scilab</strong> with sparse matrices. We show that <strong>Scilab</strong> 5 can solvein a few seconds sparse linear systems of equations with as many as 250000 unknowns because <strong>Scilab</strong> only s<strong>to</strong>re nonzero entries. The computationsare based on the Scibench module, a <strong>to</strong>olbox which provides a collection ofbenchmarks for <strong>Scilab</strong>. This section was first published at [6].11.1 <strong><strong>In</strong>troduction</strong>Sharma and Gobbert analyzed the performance of <strong>Scilab</strong> for the resolutionof sparse linear systems of equations associated with the Poisson equation [9].<strong>In</strong> this document, we try <strong>to</strong> reproduce their experiments.We consider the Poisson problem with homogeneous Dirichlet boundaryconditions and are interested in the numerical solution based on finite differences.We consider the 2 dimensional problem Partial Differential Equation :−∆u = f in the domain,u = 0 on the frontier.where the two dimensionnal Laplace opera<strong>to</strong>r is∆u = ∂2 udx + ∂2 u2 dy 2We consider the domain 0 ≤ x ≤ 1, 0 ≤ y ≤ 1.The function f is defined byf(x, y) = −2π 2 cos(2πx)sin 2 (πy) − 2π 2 sin 2 (πx)cos(2πy)The solution isu(x, y) = sin 2 (πx)sin 2 (πy)We use a second order finite difference approximation of the Laplace opera<strong>to</strong>rbased on a grid of N-by-N points.27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!