Replies: 1 comment
-
I am so sorry if I have wasted anyones time, I found the solution myself. In case anyone needs it:
Thanks to everyone that tried to help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am trying to model a beam to beam contact using CONTA178 elements. Preferably, I would just manually check which nodes are sufficiently close to each other and then create a CONTA178 element between them that is instantly set to bonded and couples all DOFs of the corresponding nodes. However, do not seem to find a way to do that, as the displacement of the coupled nodes is varying extremly and never exactly the same. I have already tried most keyopts and now I am a bit clueless. This is how I am currently doing it:
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
mapdl.clear()
mapdl.prep7()
mapdl.et(1, "BEAM188", "", "", "", "", "", 2)
mapdl.mp("EX", 1, 30e6) # Elastic modulus
mapdl.mp("NUXY", 1, 0.25) # Poisson's ratio
#define crosssection
mapdl.sectype(1, "BEAM", "CSOLID", "", 0)
mapdl.secoffset("CENT")
mapdl.secdata(0.3, "", "", 0, 0, 0, 0, 0, 0, 0, 0, 0)
#Create Geometry
mapdl.n(1,0,0,0)
mapdl.n(2,1,0,0)
mapdl.n(3,2,0,0)
mapdl.e(1,2)
mapdl.e(2,3)
mapdl.n(4,0,0.5,0)
mapdl.n(5,2,0.5,0)
mapdl.e(4,5)
#CONTA178
mapdl.et(5,"CONTA178")
mapdl.keyopt(5,10,5)
mapdl.e(5,3)
mapdl.d(1,'all',0)
mapdl.d(4,'all',0)
mapdl.d(3,"UY", -1.5)
mapdl.allsel()
mapdl.finish()
mapdl.slashsolu()
mapdl.solve()
mapdl.finish()
mapdl.post1()
mapdl.set(1,1)
nodal_displacements = mapdl.post_processing.nodal_displacement("Y")
print(nodal_displacements)
mapdl.exit()
Which I cannot bring to the point where the displacement of nodes 5 and 3 are the same. Is there something I am doing wrong / I did not understand? Any help is much appreciated!
Thanks a lot in advance!
(Btw, I do know that such a simple set up can also be realized with the CE or CP command, but for more complex systems, I had great troubles making those work, so I thought this would be the more robust approach)
Beta Was this translation helpful? Give feedback.
All reactions