File Exchange

image thumbnail

FEM solver for 2D Helmholtz equation

version 1.0.2 (9.57 KB) by david gasperini
P1 fully vectorized FEM solver for the homogeneous 2D Helmholtz equation on arbitrary geometries.


Updated 10 May 2021

View Version History

View License

This solver assembles and solves the FEM for the 2D scalar Helmholtz equation, using P1 triangular elements. The assembly is fully vectorized for efficiency.
For tutoring, the script of a "pedagogic" naive assembly is also provided in comments.
The resolution is performed using the Matlab \ operator (here leads to LU factorization).
Five different geometries are provided using built-in Matlab tools, but the solver is also compatible with arbitrary geometries. In particular, external mesh files (for instance from GMSH) can be used, while satisfying the PET format.

Cite As

david gasperini (2021). FEM solver for 2D Helmholtz equation (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

david gasperini

Extension to multiple sources and/or inhomogeneous Helmholtz equation is straight forward.

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!