KristofferC / Phon

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

file : import read_from_neper_inp #23

Open khriama opened 2 years ago

khriama commented 2 years ago

Hello Mr. Carlsson, Please, could you help me?. I used neper to creat 2D case as follows : 1- Creating Tessellations : neper -T -n 100 -id 1 -dim 2 -reg 1 2- Creating Mesh : neper -M n100-id1.tess -dim 1,2 -format 'inp' -faset 'faces' I followed these commonds for creating cohesive elements:

from phon.io_tools.read.read_from_neper_inp import read_from_neper_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 = "n100-id1.inp"
mesh = read_from_neper_inp(inputfile, verbose=0)
create_cohesive_elements(mesh, 2)
export_to_abaqus("n100-id1_coh.inp", mesh,write_2d_elements=True)

attached will you find the .inp file which I get from neper and error message? The error is : ModuleNotFoundError: No module named 'phon.io_tools.read.read_from_neper_inp'.

I checked phon.io_tools , do not find this code (read_from_neper_inp), Thank you in advance for your help and this wonderful tool Best regards Manhal
My files.zip

KristofferC commented 2 years ago

I think read_from_neper_inp got renamed to read_from_abaqus_inp.