KristofferC / Phon

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

Cohesive elements at grain boundreies #24

Open ravikiranbollineni opened 2 years ago

ravikiranbollineni commented 2 years ago

Hi Kristoffer, I trying to create cohesive elements at the grain boundaries. As a start point I am currently using the polycrystal generated using the Neper. Till now I don't have any success. Here I am attaching the code I am using for generating the cohesive elements (files in text file format n10-id1.txt n10-id1_coh.txt ). Could you please let me know where I am doing mistake.

Thanks in advance.

`from phon.io_tools.read.read_from_abaqus_inp import read_from_abaqus_inp from phon.io_tools.write.export_to_abaqus import export_to_abaqus from phon.mesh_tools.create_cohesive_elements import create_cohesive_elements

inputfile = "n10-id1.inp" mesh = read_from_abaqus_inp(inputfile, verbose=0) create_cohesive_elements(mesh, 3) export_to_abaqus("n10-id1_coh.inp", mesh, write_2d_elements=False)`

shuaizhou001 commented 2 years ago

It is your Neper inp file problem. Your inp file did not include FACEx. image