HJfem_lite
These files offer three efficient assembly techniques for the finite element method. The test cases are linear, continuous triangles and tetrahedra for the Poisson problem in the unit square or unit cube.
The first method is a straightforward assembly in which the loop over the elements is vectorized.
The second method decouples the local integration from the affine mapping (in addition to vectorizing the loop over the elements). This method is very efficient if large number of integration points is required (e.g. for high order elements).
The third method is a variant of the first method. In this method the assembly is done in few sets rather than all the elements at once to save memory.
The focus in this work is the efficiency of the assembly. In our tests, these methods can assemble 2654208 triangles (1329409 dofs) or 274625 tetrahedra (1572864 dofs) using a regular desktop computer in less than 10 seconds (wall clock time).
In addition, the there is a very simple visualization tool for the 3D results.
Cite As
Mika (2024). HJfem_lite (https://www.mathworks.com/matlabcentral/fileexchange/36108-hjfem_lite), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
HJfem_lite/2D/
HJfem_lite/3D/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |