File Exchange

image thumbnail

Convert MATLAB Mesh to Abaqus

version 1.0.2 (1.76 KB) by Ayad Al-Rumaithi
Generates Abaqus input file (.inp) using nodes coordinates and elements connectivity in MATLAB


Updated 25 Apr 2019

View Version History

View License

function Matlab2Abaqus(Nodes,Elements,Elements_Sets,Filename)

Nodes: Nodes coordinates matrix of size (N*2) for 2D or (N*3) for 3D problems.

Elements: A cell array containing the connectivity of elements in the form:
Elements{i}=[node_1 node_2 .......node_n] where i is the element index and node_1 to node_n are the nodes indices where element i is connected to.

Elements_Sets:Specify element set in the form of:
Elements_Sets{j}.Name: the name of the j-th element set
Elements_Sets{j}.Elements_Type: A keyword for elements type in j-th element set such as "CPS3" for constant strain triangle. More keywords are found in Abaqus Keywords Manual.
Elements_Sets{j}.Elements: a vector for all element indices in this j-th element set.

Filename: Full path of the input file containing the folder, name of the file and extension such as: 'D:\Example.inp'

Input file is generated with the specified location and name and ready to be imported by Abaqus

Example file is also provided with the function

Cite As

Ayad Al-Rumaithi (2021). Convert MATLAB Mesh to Abaqus (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Ayad Al-Rumaithi

How did you import the input file? I use these steps
1-File___2-Import___3-Model__4-(*.inp) File

Libing Du

Good work!!!! Thank you for your code. But I found a little bug that the mesh imported in ABAQUS cannot used in simulate, the mesh cannot be assigned any attribution. But seting a "*Part" before "*node" in inp could solve this problem.

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!