Page 452 - Applied Numerical Methods Using MATLAB
P. 452

GUI OF MATLAB FOR SOLVING PDES: PDETOOL  441















                   (a) PDE specification dialog window
                                                  (b) Solve parameters dialog window





















                   (c) The box window popped out by clicking Parameters in the Plot pull-down menu


                0.1                          0.1
                   u(x, y)                      u(x, y)
                 0                             0
               −0.1                          −0.1
                 2  y                          2 y
                                          x  2                         x  2
                       1             1              1              1
                            0 0                          0 0
                   (d1) The mesh plot of soution t = 0.1  (d2) The mesh plot of solution at t = 1.7
                   Figure 9.15  Procedure and results of using PDEtool for Example 9.5/9.9.

                 3. Open the PDE specification dialog box by clicking the PDE button,
                   check the box on the left of ‘Hyperbolic’ as the type of PDE, and set
                   its parameters in Eq. (E9.9.1) as depicted in Fig. 9.15a.
                 4. Do the same thing as step 4 for the case of elliptic PDE in Example 9.8.
                 5. Similarly to the case of a parabolic PDE, you must click ‘Parameters’
                   in the Solve pull-down menu (Fig. 9.12f) to set the time range, say, as
   447   448   449   450   451   452   453   454   455   456   457