Closed dutblue closed 7 years ago
here is my generated file sets.
What version of Neper are you using? Can you give a small example of your input file so I can run it myself to try it out?
This is what I just did and it works:
Neper:
neper -T -n 2
neper -M n2-id1.tess -dim all -format inp
Python file:
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 = "n2-id1.inp"
mesh = read_from_abaqus_inp(inputfile, verbose=0)
create_cohesive_elements(mesh, 3)
export_to_abaqus("n2-id1_coh.inp", mesh, write_2d_elements=False)
Generated input file: https://gist.github.com/KristofferC/d3470978f01958aea7143f5eb8f9cbed
As you can see, it includes cohesive elements (of type COH3D6) and also the element set *Elset, elset=cohes1_2
Try to add the -dim all
flag to neper -M
like I did.
hi Kristoffer Thank you for your reply, The Phon worked pretty well after I add -dim all to the neper -M , But if I build the model with too much crystals with -dim all the neper would crash. Seems that is not your problem:)
Dear Kristoffer I met a trouble on generating cohesive elements. I have input those oders just as the introduction recommend
but when I opened the generated file, I havn't seen any cohesive elements from cohesive file sets just as the example shows below.