Varying element types / cross-sections of elements #2983
-
Hi again, I have a script that creates elements from nodes directly. The elements are created in three different "bulks" and I want to assign each "bulk" with a different element type. I have defined three types like the code attached below. I have managed to assign each bulk of elements with the correct element type, by using mapdl.type(), before creating each bulk of elements. However, my problem is that all the elements seem to follow the cross-section defined for element type 1. No matter what. The results show that the elements are divided correctly into the element types as I want, but the plot of the deformation only changes when I change the cross section for type 1. Can you help me? What am I doing wrong? Thanks in advance! - Nanna ### TYPE 1
mapdl.et(1, "BEAM188")
mapdl.sectype(1, "BEAM", "RECT")
mapdl.secoffset("ORIGIN")
elem_b = 0.1e-3
elem_h = 0.1e-3
mapdl.secdata(elem_b, elem_h)
### TYPE 2
mapdl.et(2, "BEAM188")
mapdl.sectype(2, "BEAM", "RECT")
mapdl.secoffset("ORIGIN")
elem_b_mid = 0.4e-3
elem_h_mid = 0.4e-3
mapdl.secdata(elem_b_mid, elem_h_mid)
### TYPE 3
mapdl.et(3, "BEAM188")
mapdl.sectype(3, "BEAM", "RECT")
mapdl.secoffset("ORIGIN")
elem_b_big = 0.8e-3
elem_h_big = 0.8e-3
mapdl.secdata(elem_b_big, elem_h_big) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I found the answer myself. I added the mapdl.secnum() to each bulk and that worked! |
Beta Was this translation helpful? Give feedback.
Hi, I found the answer myself. I added the mapdl.secnum() to each bulk and that worked!