MATLAB_Wave_Equation_2D
Description and Help
MATLAB_Wave_Equation_2D is a graphical user interface (GUI) that plots solutions to the following two-dimensional wave equations:
![]() | (1) |
![]() | (2) |
![]() | (3) |
In addition, the GUI investigates continuous dependence.
To use the GUI, specify a propagation constant, a final time to plot solutions, a boundary condition, and the initial conditions, before clicking the Solve Wave Equation button.
The initial positions in the dropbox menu of the GUI are labeled as 0, sine, cosine, exponential and step function. These correspond to
| u0(x,y) | = 0, | ||
| u0(x,y) | sin (πx) sin (2πy), | ||
| u0(x,y) | = cos (2πx) + cos (3πy) + 1, | ||
| u0(x,y) | = e-40(x2+y2), | ||
| u0(x,y) | = , |
| u1(x,y) | = 0, | ||
| u1(x,y) | = 1, | ||
| u1(x,y) | sin (πx) sin (2πy), | ||
| u1(x,y) | = cos (2πx) + cos (3πy) + 1, | ||
| u1(x,y) | = e-40(x2+y2). | ||
The movie will play twice before outputting a plot of the solution at the
final time.
To explore continuous dependence using the GUI one must first solve the wave equation with a particular propagation constant and initial conditions. Once a solution has been constructed, click the Perturb Parameters and Solve button. Pop-up boxes will appear to specify the perturbed model parameters and/or initial conditions. The GUI assumes the perturbed initial condition is of the form

Once completed, the GUI will display the norm difference between the original solution and the perturbed solution. Depending on your choice of norm(s), potentially several plots will appear on the same axis.