fangq / brain2mesh

Brain2Mesh - a one-liner for high-quality brain mesh generation
http://mcx.space/brain2mesh
Other
34 stars 14 forks source link

export Brain2mesh result in ABAQUS #17

Closed 1191620 closed 1 year ago

1191620 commented 1 year ago

Hello I have just run Brain2mesh and now I am going to send result to Abaqus , can you help me with it, please. any suggestion is appreciate highly.

fangq commented 1 year ago

you can use saveabaqus.m provided in iso2mesh

https://github.com/fangq/iso2mesh/blob/master/saveabaqus.m

1191620 commented 1 year ago

Thank you, I have used it, but it exports brain whole model and I am not able to test parts interaction it in ABAQUS. is there any way to export brain's different parts in order to assign various material properties and then assemble them.

fangq commented 1 year ago

yes, you can use the last column (labels) of the elem element to separate each region. for example

[no, el]=removeisolatednode(node, elem(elem(:,5)==1, 1:4));
saveabaqus(no,volface(el),el,'label1');

[no, el]=removeisolatednode(node, elem(elem(:,5)==2, 1:4));
saveabaqus(no,volface(el),el,'label2');

calling removeisolatednode only keeps the nodes in the specified region, resulting in smaller file sizes.

1191620 commented 1 year ago

That is really helpful. thanks.