Wave Tank Simulator Back
Wave Physics & Acoustics

Wave Tank Simulator

Solve the 2D wave equation with the finite difference method in real time. Click to add wave sources and watch interference, diffraction, and reflection patterns emerge.

Settings

Statistics

0.00
Max Amplitude
0.00
Total Energy

What is Wave Physics in 2D?

🧑‍🎓
What exactly is the "wave equation" this simulator is solving? It sounds complicated.
🎓
Basically, it's the mathematical rule that governs how any wave—like water ripples or sound—spreads out. In this 2D tank, the simulator solves a version that tracks the wave height at every point. Try clicking to add a source and watch the circular wavefronts form; that's the equation in action!
🧑‍🎓
Wait, really? So when I see waves crossing and making patterns, that's the simulator calculating this for every single point?
🎓
Exactly! It uses a method called Finite Difference. It takes the current wave height, looks at its neighbors, and calculates the height for the next instant. That's why you can change the source type in the controls—from a single point to a line—and instantly see how the fundamental physics creates different patterns.
🧑‍🎓
What about the "CFL condition" mentioned? What happens if the simulator breaks it?
🎓
Great question! That's a stability rule. In practice, it means the simulation can't calculate the wave's next step faster than the wave can physically travel across one grid cell. If it's broken, the numbers blow up and you get chaotic, unrealistic results. This simulator carefully adjusts the time step to keep it stable, so you always see smooth, accurate waves.

Physical Model & Key Equations

The core physics is described by the 2D wave equation, which relates how the wave displacement changes in time to how it curves in space.

$$ \frac{\partial^2 u}{\partial t^2}= c^2 \left( \frac{\partial^2 u}{\partial x^2}+ \frac{\partial^2 u}{\partial y^2}\right) $$

Here, \( u(x,y,t) \) is the wave height (displacement) at position (x,y) and time \(t\). \(c\) is the wave speed, a constant for the medium. The left side is the acceleration of the wave, and the right side sums its curvature in the x and y directions.

The simulator solves this equation numerically using the explicit Finite Difference Time Domain (FDTD) method. Stability requires satisfying the Courant–Friedrichs–Lewy (CFL) condition.

$$ \frac{c \Delta t}{\Delta x}< \frac{1}{\sqrt{2}}$$

Here, \( \Delta t \) is the time step and \( \Delta x \) is the grid spacing. This condition ensures the numerical calculation doesn't outrun the physical wave, preventing simulation blow-up. The factor \(1/\sqrt{2}\) is specific to 2D simulations.

Real-World Applications

Acoustic Room Design: Engineers use similar 2D wave simulations to model how sound waves reflect and interfere in concert halls or auditoriums. By testing different wall shapes and materials virtually, they can optimize the design for perfect acoustics before construction begins.

Ultrasound Imaging: Medical ultrasound machines rely on the physics of wave reflection and interference. Simulating how high-frequency sound waves propagate through different tissues helps in improving image resolution and developing new diagnostic techniques.

Antenna & RF Design: The propagation of radio waves from an antenna array follows the same wave principles. CAE simulations are crucial for designing antenna layouts that maximize signal strength and directionality for cell towers and satellite communications.

Seismic Analysis: Geophysicists use wave propagation models to understand how earthquake waves (seismic waves) travel through the Earth's layers. This analysis is vital for assessing earthquake risks and for oil and gas exploration.

Common Misconceptions and Points to Note

When you start using this simulator, there are several points that are easy to misunderstand, especially for CAE beginners. The first one is the assumption that "setting the wave speed (c) to closely match real water waves will result in a more accurate simulation." While wave speed is indeed a physical parameter, it is strongly tied to the CFL condition ($c \Delta t / \Delta x < 1$), which determines numerical stability. For instance, if you set the wave speed c too high, you will need to make the time step $\Delta t$ extremely small to satisfy this condition, leading to heavier computations or instability. In practical work, finding a balance between capturing the essence of the phenomenon and keeping computational costs manageable is key.

The second point concerns the setting of the damping coefficient. While this tool mimics "water resistance," there are actually choices in how this damping is modeled. For example, in the analysis of vibrating structures, models like "viscous damping" (proportional to velocity) or "hysteretic damping" (proportional to displacement) are used depending on the phenomenon. If you set the simulator's damping too strong, interference fringes may become unclear, so the trick is to adjust it according to your observation goals.

Finally, there is the understanding that "boundary conditions are simply walls." This tool uses a "fixed end" (wave reflects at a wall), but in practice, diverse conditions like "free ends" (wall vibrates) or "absorbing ends" (wave dissipates at the boundary) exist. For example, in designing an anechoic chamber, "absorbing end" conditions are set on the walls to absorb sound as much as possible. When interpreting simulation results, always being aware of what boundary conditions were assumed is the first step to avoiding pitfalls in real-world applications.

Related Engineering Fields

This 2D wave equation simulation, in its basic or advanced forms, underpins the core of various cutting-edge engineering fields. One is the field of non-destructive testing. For example, by transmitting ultrasonic waves into aircraft composite materials or bridge steel frames and measuring/analyzing reflected waves from internal cracks, the location and size of defects can be identified. The physical principle is the same as observing reflections from walls in this simulator, and "pre-study" via simulation is indispensable for interpreting measurement data.

Another is medical imaging, particularly ultrasound diagnostic devices. The behavior of ultrasonic pulses sent from a probe into the body—reflecting at organ boundaries or propagating through tissues—is precisely described by the wave equation. By setting the differences in acoustic impedance (resistance to sound transmission) between different tissues as boundary conditions, more realistic simulations are possible. This contributes to the development of new image reconstruction algorithms and the improvement of diagnostic techniques.

Furthermore, it is also applied in geotechnical engineering and resource exploration. By sending artificial seismic waves into the ground and analyzing waves that reflect back from stratum boundaries (seismic surveying), underground structures can be revealed, or oil and natural gas reservoirs can be located. In this case, the medium is not uniform, and the wave speed c differs for each stratum, making the simulation more complex, but the underlying physics is precisely the wave propagation and reflection you are experiencing with this tool.

For Further Learning

Once you are comfortable with this tool, try delving into the core of the numerical method: "Why does this calculation make the wave advance?" The first concept to understand is the idea behind the finite difference method. You learn how the second-order derivatives in the wave equation, $\frac{\partial^2 u}{\partial t^2}$ and $\frac{\partial^2 u}{\partial x^2}$, are approximated using the differences (finite differences) between values at adjacent points. For example, the second-order time derivative is discretized as $$ \frac{\partial^2 u}{\partial t^2} \approx \frac{u^{n+1}_{i,j} - 2u^{n}_{i,j} + u^{n-1}_{i,j}}{(\Delta t)^2} $$. Substituting this into the wave equation and solving for the future value $u^{n+1}$ is the mechanism that calculates the wave shape for the next time step.

As a next step, we recommend considering extension to three dimensions. Real sound waves or electromagnetic waves propagate in three-dimensional space. Their governing equation becomes $$ \frac{\partial^2 u}{\partial t^2}= c^2 \left( \frac{\partial^2 u}{\partial x^2}+ \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2}\right) $$. The computational load increases significantly, but the essential solution method is the same as in 2D. This connects directly to simulations like automotive interior noise (sound pressure distribution in a 3D space).

Ultimately, you should look ahead to progressing to different numerical methods. The finite difference method is intuitive but not well-suited for handling complex shapes (e.g., curved soundproof walls or irregular terrain). This is where you would learn methods like the Finite Element Method (FEM) or the Boundary Element Method (BEM). While these methods share the common approach of approximating the computational domain by dividing it into small elements (mesh), they offer a more flexible and powerful approach for wave problems. The solid grasp of the physical image of wave phenomena you gain from this tool will be the best foundation for understanding these advanced numerical techniques.