writeMesh (write mesh to inp, bdf, and msh files)
- inp file (Abaqus)
- bdf file (Nastran bulk data, compatible with COMSOL)
- msh file (Gmsh mesh file format)
- For other formats, you can import the generated msh file into software Gmsh and then export.
- demo01 - Triangular mesh with single phase
- demo02 - Triangular mesh with multiple phases
- demo03 - Quadrilateral mesh
- demo04 - 2D Mesh with quadratic elements
- demo05 - Node sets at the boundary and interface when writing inp files
- demo06 - Select formats when writing inp files
- demo07 - Tetrahedral mesh
- demo08 - Hexahedral mesh
- demo09 - Set tolerance when searching boundary node set
- inp_example1 - Format #1 of inp file
- inp_example2 - Format #2 of inp file
- inp_example3 - Format #3 of inp file
Cite As
The development of writeMesh is nontrivial. If you use writeMesh for your project, please cite Im2mesh package as follows.
Ma, Jiexian, and Yuanyuan Li. Im2mesh: A MATLAB/Octave Package for Generating Finite Element Mesh Based on 2D Multi-Phase Image. Zenodo, 2025, https://doi.org/10.5281/ZENODO.14847059.
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.
Version | Published | Release Notes | |
---|---|---|---|
1.11 | See release notes for this release on GitHub: https://github.com/mjx888/writeMesh/releases/tag/v1.11 |
||
1.02 | See release notes for this release on GitHub: https://github.com/mjx888/writeMesh/releases/tag/v1.02 |
||
1.00 | See release notes for this release on GitHub: https://github.com/mjx888/writeMesh/releases/tag/v1.00 |
||
0.9.1 | See release notes for this release on GitHub: https://github.com/mjx888/writeMesh/releases/tag/v0.9.1 |
||
0.9.0 | See release notes for this release on GitHub: https://github.com/mjx888/writeMesh/releases/tag/v0.9.0 |
||
0.8.2 | See release notes for this release on GitHub: https://github.com/mjx888/writeMesh/releases/tag/v0.8.2 |
||
0.8 |