image thumbnail

Analytic solution of the 1d Wave Equation

version 1.0.4 (3.68 KB) by Manuel A. Diaz
Computing the exact solution for a Gaussian profile governed by 1-d wave equation with free flow BCs or with perfectly reflecting BCs.


Updated 20 May 2021

View License

I constructed this solution to verify the accuracy and stabitlity of some FD-compact schemes.
This solution, was obtained throught greens function approach using the method of images. (These details are not given here. I only write/compute the final expression from the analysis).
I believe, it will be very usefull for those looking to verify the accurary of numerical boundary conditions of linearized froms of Euler and/or Navier-Stokes equations.
Happy coding! : )

Cite As

Manuel A. Diaz (2021). Analytic solution of the 1d Wave Equation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!