FEM solver for 2D Helmholtz equation

P1 fully vectorized FEM solver for the homogeneous 2D Helmholtz equation on arbitrary geometries.
299 Downloads
Aktualisiert 10. Mai 2021

Lizenz anzeigen

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.

Zitieren als

david gasperini (2024). FEM solver for 2D Helmholtz equation (https://www.mathworks.com/matlabcentral/fileexchange/91695-fem-solver-for-2d-helmholtz-equation), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2019b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.2

Corrected a function name

1.0.1

- Minor typo
- Product rule improved

1.0.0