HPC Tier Module
Acoustic Wave Propagation (2D FDTD)
Propagate 2D acoustic waves on a staggered FDTD grid, wave speed and energy checked against theory.
Worked example: Free-space arrival (c=1, rigid)
Inputs
| Grid N (N x N cells) | 140 |
| Grid spacing dx (= dy) | 1 |
| Bulk modulus K | 1 |
| Density rho | 1 |
| Courant number (dt = courant*dx/(c*sqrt2)) | 0.5 |
| Points per wavelength (sets source f0) | 24 |
| Boundary | rigid |
Result
Stable 2D acoustic FDTD (c*dt/dx = 0.3536 <= 0.7071): wave speed c = sqrt(K/rho) = 1.0000 (exact); wavefront peak reached the receiver at t = 92.277 vs predicted t0 + d/c = 94.000, recovering c_measured = 1.0252 (102.5% of c, the deficit being the scheme's numerical dispersion). Energy stayed bounded. GeoNum conditioning verdict: UNRELIABLE (divergence differencing). It is an uncertainty signal, not extra precision.
| Stability | CFL-stable - energy bounded |
| Wave speed c = sqrt(K/rho) | 1.000000 (EXACT) |
| CFL ratio c*dt/dx | 0.353553 / bound 0.707107 (<= bound: stable) |
| dt = courant*dx/(c*sqrt2) | 3.5355e-1 |
| Source f0 / delay t0 | 4.167e-2 / 24.000 |
| Source -> receiver distance | 70.000 (cells (31,70) -> (101,70)) |
| Predicted arrival (t0 + d/c) | 94.000 |
| Measured peak arrival t_peak | 92.277 |
| c_measured = d/(t_peak - t0) | 1.025229 |
| c_measured / c (dispersion) | 102.52% (< 100% by numerical dispersion) |
| Energy envelope (min .. max) | 9.82e-8 .. 5.28e-1 (bounded) |
| Boundary | rigid (reflecting wall) |
Computed by Acoustic Wave Propagation (2D FDTD) v1.0.0, the same plugin code the GDBS app runs, when this page was built. To run it on your own figures, open it in GDBS HPC.
The problem
Acoustic prototyping needs fast wave-propagation experiments, but desktop codes are heavy to set up and offer no immediate, built-in check that the scheme is CFL-stable or that the measured wave speed matches theory.
The local-first solution
This plugin leapfrogs the first-order pressure-velocity acoustic system on a staggered Yee-style grid in your browser, enforces the 2D CFL bound, and leads with closed-form checks: continuum wave speed, arrival-time speed recovery, and a bounded energy envelope. Deterministic f64 math, nothing uploaded.
What it does
Staggered-grid leapfrog of dp/dt=-K div v and dv/dt=-(1/rho) grad p
Exact continuum wave speed c=sqrt(K/rho) used for every timing claim
Measured arrival-time speed recovery c_measured/c with numerical-dispersion diagnostic
2D CFL stability bound c*dt/dx <= 1/sqrt(2) checked and enforced
Discrete acoustic energy tracked with a max/min bounded envelope
Ricker-wavelet source plus selectable rigid or first-order absorbing boundary
Honest scope
EXACT: the wave speed, CFL bound, dt relation, and leapfrog update arithmetic. MEASURED and checked: the wave-speed recovery and energy envelope, where numerical dispersion makes c_measured a few percent low (expected and citable). The absorbing edge is a crude sponge, not a true PML, and leaves a small residual reflection. NOT modeled: heterogeneous/lossy/nonlinear media, true PML, 3D, or shear conversion. A teaching/validation solver, not a production acoustics code.
Authorities cited
- Yee, K. S. (1966). Numerical solution of initial boundary value problems involving Maxwell's equations in isotropic media. IEEE Trans. Antennas Propag. 14, 302-307. DOI 10.1109/TAP.1966.1138693. (The staggered-grid leapfrog scheme adapted here for the acoustic pressure-velocity system.)
- Virieux, J. (1986). P-SV wave propagation in heterogeneous media: velocity-stress finite-difference method. Geophysics 51(4), 889-901. DOI 10.1190/1.1442147. (The staggered velocity-stress / pressure-velocity acoustic FDTD scheme.)
- Taflove, A. & Hagness, S. C. (2005). Computational Electrodynamics: The Finite-Difference Time-Domain Method, 3rd ed. Artech House. (2D Yee Courant stability bound c*dt/dx <= 1/sqrt(2).)
- Kinsler, L. E., Frey, A. R., Coppens, A. B., Sanders, J. V. (2000). Fundamentals of Acoustics, 4th ed. Wiley. (Lossless wave equation and the phase speed c = sqrt(K/rho) / c = sqrt(B/rho).)
- Ricker, N. (1953). The form and laws of propagation of seismic wavelets. Geophysics 18(1), 10-40. DOI 10.1190/1.1437843. (The Ricker wavelet source, negative second derivative of a Gaussian.)
- Courant, R., Friedrichs, K., Lewy, H. (1928). Uber die partiellen Differenzengleichungen der mathematischen Physik. Math. Ann. 100, 32-74. DOI 10.1007/BF01448839. (The CFL stability condition.)
Get an email when tools like this one change
Leave your email and we will tell you when we add or update Numerics & Tools tools like this one, at most once a month.
We email you once to confirm. After that, unsubscribe from any issue in one click. Your address goes to VaultSync only (privacy).
Run a verified wave experiment
Propagate the field in your browser with nothing uploaded, then route the speed-recovery and energy diagnostics into a Sandbox workspace or attach them to a Worklog case.