KristofferC / Phon

Insert cohesive elements between grains in microstructures
MIT License
29 stars 19 forks source link

Create element sides in grain boundries #20

Open XiXun2017 opened 7 years ago

XiXun2017 commented 7 years ago

Hi, Kristoffer

Thanks for your program. I use it to insert cohesive elements in the interface of two grains. The mesh is built by ABAQUS/CAE. The topology of interface is complex. I noticed that" each grain boundary should have its own elements in the boundary." It is difficult to build the elements in ABAQUS/CAE for a very complex topology. I wonder whether the boundary elements could be created automatically. And I found the code named "create_element_sides" in the mesh_tools. Is it used to created the boundary elements? I run the "create _element_sides(mesh, mesh_dimension=2)". But it outputs that "List assignment index out of range" on line 31 "element_to_grain[el_num - 1] = grain". My model is one 2D issue. So Could you please why this error occurs? I found the error would be not occurs when run "create _element_sides(mesh, mesh_dimension=3)".

Thanks again.