Wave Equation Solver: Practical Notes
Inputs and unit discipline
This calculator is most reliable when every value uses SI units: meters (m), seconds (s), newtons (N), and kilograms per meter (kg/m). Typical lab amplitudes for a string are 0.001 to 0.02 m. Keep phase in radians to compare runs without hidden unit conversions.
Common material wave speeds
Direct-speed entry should match a realistic medium. Sound in dry air at 20 C is about 343 m/s. In water, the speed is roughly 1480 m/s near room temperature. For many steels, longitudinal wave speed is often around 5000 m/s. These references help you catch order-of-magnitude mistakes fast.
Speed from tension and linear density
For a stretched string, the solver uses v = sqrt(T/mu), where T is tension and mu is linear mass density. Example: T = 120 N and mu = 0.012 kg/m gives v about 100 m/s. Doubling T increases v by sqrt(2), while doubling mu decreases v by the same factor.
Traveling-wave relationships
In Traveling mode, wavelength follows lambda = v/f and the phase is kx - omega t + phi. The solver reports k = 2*pi/lambda and omega = 2*pi*f. With v = 343 m/s and f = 440 Hz, lambda is about 0.780 m and omega is about 2764.6 rad/s, matching standard acoustics.
Standing-wave harmonics with fixed ends
In Standing mode, allowed wavelengths are lambda = 2L/n, so the wave fits an integer number of half-wavelengths in the length L. If L = 1.2 m, then n = 2 gives lambda = 1.2 m. Frequencies scale approximately linearly with n when speed is constant, producing harmonic series behavior.
Profile resolution and sampling
The output table samples u(x,t) on a grid. For smooth curves, use at least 100 points across the plotted distance. For higher modes or short wavelengths, 200 to 500 points is safer. A practical guideline is to keep the spatial sampling smaller than about lambda/20 to avoid aliasing peaks and nodes.
Numerical stability and the CFL condition
The finite-difference solver uses an explicit update that depends on the Courant number r = v*dt/dx. Stable runs typically require r less than or equal to 1. If v = 50 m/s and dx = 0.01 m, then dt should be about 0.0002 s or smaller. When r exceeds 1, results may grow without bound.
Interpreting outputs for reports
Use the derived panel for headline quantities (v, f, lambda, k, omega) and record the snapshot time in numerical mode. The table is ready for plotting displacement versus position in spreadsheets or scripts. Export PDF for quick lab submission, and attach CSV when you need reproducible analysis later.