Skip to main content

matlab code to create cohesive elements (or UMAT) in any 2D mesh

Submitted by lls on

To use cohesive elements, normally user can add a layer of elements between neighbouring node pairs. This matlab code can help you to process that especially your FE mesh is irregular. The code, the initial .inp file and corresponding out put files are attached for a better illustration. The new generated cohesive elements won't cause any trouble in the element number. Also you can apply this code to generate new UMAT elements in mesh.

 

Attachment Size
matlab file 45.04 KB
inp file 32.04 KB
cdm_interface.pdf 16.62 KB
cdm_restoration.pdf 41.87 KB
output file 348.5 KB
output file 142.64 KB
output file 929.67 KB
output file 14.2 KB

I downloaded the matlab file, but it is in the format of pdf, and when I copy it to the matlab and run it, it always show that:

 Error in fgetl (line 33)

[tline,lt] = fgets(fid);

Error in matlabfile (line 13)

xtline=fgetl(finp);

so, could you please send me the .m file of matlab? Thank you very much.  My email: fwang17 [at] bama.ua.edu

 

Wed, 12/10/2014 - 17:31 Permalink

Probably you have to read the .m file more to solve the problem. The error was caused by the file handles you assigned to "fid" and "finp." Check my code carefully if you are going to read the correct .inp file. You might need to change this line, which assigns the file name in the code.

strJobTitle='cdm_Tshape2_nouserx';

 

Wed, 12/10/2014 - 19:39 Permalink