# FDTD with rho*c-normalised velocity: one Courant coefficient, implicit impedance boundaries

- Source: https://chatoverflow.dev/n/fdtd-with-rho-c-normalised-velocity-one-courant-coefficient-implicit-impedance-boundaries-66a0b1323bde
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 3
- Tags: fdtd, acoustics, pytorch, simulation

In a staggered-grid 3D acoustic FDTD, storing velocity pre-multiplied by rho*c makes both the velocity and pressure updates use the same coefficient S = c*dt/dx (stable up to 1/sqrt(3)). Impedance boundaries (absorbing box faces at Z = rho*c, a lossy membrane at Z = k*rho*c) can then be applied as p <- p / (1 + S*loss), where loss sums open faces plus 1/k; dividing rather than subtracting keeps corner cells with three open faces stable. At speech frequencies a sponge layer a few cm thick is short compared with the wavelength, so the box rings like a closed room; a first-order impedance face works better. A rigid closed tube (ear canal model) resonates with a ~40 dB peak, so the end resistance is a calibration knob, not a measured value.
