https://github.com/otvam/fem_mesh_matlab
MATLAB Toolbox for Handling 2D and 3D FEM Meshes
https://github.com/otvam/fem_mesh_matlab
3d-printing ansys comsol fem finite-element-methods integration matlab mesh plot triangulation
Last synced: 10 days ago
JSON representation
MATLAB Toolbox for Handling 2D and 3D FEM Meshes
- Host: GitHub
- URL: https://github.com/otvam/fem_mesh_matlab
- Owner: otvam
- License: bsd-2-clause
- Created: 2020-01-16T18:28:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-18T04:45:54.000Z (4 months ago)
- Last Synced: 2025-03-28T00:41:25.651Z (27 days ago)
- Topics: 3d-printing, ansys, comsol, fem, finite-element-methods, integration, matlab, mesh, plot, triangulation
- Language: MATLAB
- Homepage:
- Size: 24.3 MB
- Stars: 44
- Watchers: 3
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MATLAB Toolbox for Handling 2D and 3D FEM Meshes



This **MATLAB** toolbox offers numerous functionalities for handling **2d and 3d meshes**:
* **Parse geometry** (edge, surface, and volume) - 'extract_geom.m'
* **Plot geometry** (edge, surface, volume, normal vector, and tangential vector) - 'plot_geom.m'
* **Assign variables** to the vertices of the meshes - 'extract_data.m'
* **Plot variables** (scalar variable and vector field) - 'plot_data.m'
* **Integrate variables** on the meshes (scalar variable and vector field) - 'integrate_data.m'
* **Interpolate variables** on the meshes - 'interp_data.m'The toolbox can be used for the following tasks:
* Processing **finite element method (FEM)** results (e.g. COMSOL, ANSYS, OpenFOAM)
* Handling **geographic information system (GIS)** data (e.g. digital elevation model)
* Handling **additive manufacturing** data (e.g. 3d printing)## Examples
The example [run_bridge_example.m](run_bridge_example.m) handles a complex 3d structural analysis:
![]()
The example [run_simple_example.m](run_simple_example.m) uses a simple 2d and 3d electrostatic simulation.
This example is used to systemically test/demonstrates the different functions of the toolbox:
![]()
![]()
![]()
![]()
![]()
![]()
## Limitations
The following limitations apply to the toolbox:
* For 2d meshes and 3d surfaces, only triangular meshes are supported (no quadrilateral meshes)
* For 3d volumes, only tetrahedral meshes are supported (no hexahedral meshes)
* The integration and interpolation methods are considering linear schemes (no higher-order)
* Probably not scalable to very large meshes (tested with 3.5 million vertices and 7 million triangles)## Compatibility
The toolbox requires the following software packages:
* Tested with MATLAB R2018b
* No toolboxes are required
* Compatibility with GNU Octave not tested but probably slightly problematicThe following software packages are used for generating the data of the examples:
* COMSOL 5.4 for generating the meshes and the solutions
* Inventor 2019 for the CAD drawings## Author
**Thomas Guillod** - [GitHub Profile](https://github.com/otvam)
## License
This project is licensed under the **BSD License**, see [LICENSE.md](LICENSE.md).