Fast FEM assembly: nodal elements

Vectorized assembly of FEM matrices.
4,9K download
Aggiornato 4 ago 2018

Visualizza la licenza

This code demonstrates vectorization concepts from the paper:

Talal Rahman and Jan Valdman: Fast MATLAB assembly of FEM matrices in 2D and 3D: nodal elements, Applied Mathematics and Computation 219, 7151–7158 (2013).

A link to the paper can be found at the author web page located at

Please cite the paper if you find the code useful.

Available scripts from the paper:






Additional script (provided by Tien Dat Ngo from EFPL Lausanne):


Cita come

Jan Valdman (2024). Fast FEM assembly: nodal elements (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2014b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Scopri di più su Chemistry in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release

Description simplified, 'stifness' changed to 'stiffness'.

Title and summary update.

P1 coefficients for mass matrices (both 2D and 3D) added

P0 coefficients added to assemblies of mass matrices in both 2D and 3D
new functionality added: elementwise constant coefficients

paper info completed

improved description

Q1 assembly in 3D for linear elasticity added thanks to Tien Dat Ngo.

Paper information added

report link add, extended to work for linear elasticity

tested for both linux and windows

added start_calculate_areas

2D functionality added