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 K1
Density rho1
Courant number (dt = courant*dx/(c*sqrt2))0.5
Points per wavelength (sets source f0)24
Boundaryrigid
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.

StabilityCFL-stable - energy bounded
Wave speed c = sqrt(K/rho)1.000000 (EXACT)
CFL ratio c*dt/dx0.353553 / bound 0.707107 (<= bound: stable)
dt = courant*dx/(c*sqrt2)3.5355e-1
Source f0 / delay t04.167e-2 / 24.000
Source -> receiver distance70.000 (cells (31,70) -> (101,70))
Predicted arrival (t0 + d/c)94.000
Measured peak arrival t_peak92.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)
Boundaryrigid (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

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).

Related tools

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.

GDBS by VaultSync Solutions Inc. - Verifiable Computation. gdbs.getvaultsync.com