MATLAB Homework 5

MATLAB Homework 5 - MIT OpenCourseWare http:/ocw.mit.edu...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
MIT OpenCourseWare http://ocw.mit.edu 18.085 Computational Science and Engineering I Fall 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms .
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
18.085: Matlab Homework #5 Laplace's equation. The problem is Laplace's eqixa,tio~i on the unit sqiiare with boiinda,ry condi- tions u = y on the side :r = 1? u = n: on the side y = 1, 117 . n, = -y on t,he side n: = 0, 111 : n, = -n: on the side y = 0. Replace the 2nd derivatives in Laplace's equation by centered second differ- ences. This gives the "5-point discrete L.aplacianV on a sqixsre grid (An: = Ay) : [u (:I: + AT, g) + IL(Z - Ax, y) + U(X, ?/ + Ax) + u (x: - Ax) - 44r, ?I)]/ (4~)~ Set Aa = 1/11 giving 10 x 10 = 100 int,erior grid points with 100 unknowns ~(r, The 100 grid points fall in a sqiia,re array hiit yon have t,o make 11). them into a VECTOR with 100 components. I usually number them by romTs; 11.1 = AX, Ax) and uz = 11,(Ax, 2Az) and next row 11,11 =
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/12/2011 for the course MATH 18.085 taught by Professor Staff during the Fall '10 term at MIT.

Page1 / 2

MATLAB Homework 5 - MIT OpenCourseWare http:/ocw.mit.edu...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online