Wave equation
Let’s next look at the wave equation,
on a rectangular 2D domain with homogeneous Neumann (aka no-flux) boundary conditions,
-
Load the interactive simulation, which has been set up for this tutorial.
-
Click on the screen to visualise a disturbance in the medium which will then propagate in all directions.
-
Now press , paint some initial data, and then press to set it in motion.
-
Press to clear the screen.
Playing with the diffusion coefficient,
What does changing the diffusion coefficient,
-
Change its value by clicking and editing the value of → Parameters
: try increasing it by a factor of 10 or even 100. -
Now click again on the screen and see how fast the disturbance spreads out throughout the domain.
Explore how the speed depends on the diffusion coefficient.
Numerical notes
The VisualPDE solver only works for systems of first-order (in time) equations. So in fact what is being simulated is the system
which becomes the wave equation when
The parameter
Standing wave solutions
If we take initial conditions of
with Neumann boundary conditions, we can find a standing wave solution of the form
which oscillates in time and space.
You can play with such an initial condition in this initialised simulation, changing
The damping factor
If you change the boundary conditions to Dirichlet (and set
1D and 2D waves
In a 1D domain, d’Alembert’s solution to the wave equation can be used to show that an initial disturbance in
- See this in a 1D simulation.
In principle the same concept works for higher dimensions, though reflections from boundary conditions can lead to more complicated behaviour, as seen in this 2D simulation plotted as a surface.