Acoustic wave equation calculation