Skip to main content

Python code for cohesive pressure

Submitted by mgchavez77 on
Hi everyone,



I'm working with cohesive pressure elements and I'm wondering if anyone know the code to run the element type COH2DP using Python.



I used the code:



elemType_hf=mesh.ElemType(elemCode=COH2D4P, elemLibrary=STANDARD)

Part.setElementType(regions=region, elemTypes=(elemType_hf, ))



but the code doesn't work.

I guess the problem is that I need to include the offset nodes but I don't know the code to incluide it. I'll appreciate your help.



Thanks in advance