窶コ 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

Results
0.00
Max Amplitude
0.00
Total Energy
Visualization

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窶罵ike water ripples or sound窶敗preads 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窶杷rom a single point to a line窶蚤nd 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窶擢riedrichs窶鏑ewy (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 \lt 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.

How to Use

  1. Set wave speed (m/s) using the speedSlider—typical range 0.5–2.0 m/s for shallow water tank simulations
  2. Adjust damping coefficient (0–0.1) to control energy dissipation; higher values reduce reflection artifacts
  3. Select frequency (Hz) via freqSlider to control source oscillation rate; 2–5 Hz simulates standard laboratory wave tanks
  4. Click on the tank canvas to place wave sources; multiple sources create interference patterns
  5. Observe real-time finite difference solver calculating wavefront propagation, diffraction around obstacles, and boundary reflections

Worked Example

Configure a 1 m × 1 m tank with wave speed = 1.2 m/s, damping = 0.05, frequency = 3 Hz. Place two coherent sources 0.4 m apart on opposite sides. At constructive interference zones, amplitude peaks reach 2× single-source amplitude; at destructive nodes, amplitude drops to near-zero. Adding a 0.1 m wide barrier in the center demonstrates diffraction, with wavelength λ = v/f = 1.2/3 = 0.4 m creating measurable diffraction spreading beyond the obstacle shadow zone.

Practical Notes

  1. Increase damping above 0.08 if outgoing waves reflect strongly from tank edges, causing false standing-wave patterns that obscure source behavior
  2. For narrow-band resonance studies, keep frequency constant and vary speed to sweep through wavelengths; useful for coastal engineering harbor resonance analysis
  3. Use two synchronized sources 90° out-of-phase to simulate directional wave propagation; observe how phase shift alters interference geometry
  4. Reduce speed below 0.7 m/s to magnify diffraction effects around small obstacles—critical for validating breakwater performance in CAE workflows