Hello everyone,
I'm working on a simple model on ANSYS LS-Dyna. Concerning the contact that you can see on the picture, I want to implement a variable friction coefficient along the contact to make it imperfect.
At the end of this post there is the script that creates the contact. I tried to replace "mu" by a vector but it didn't work.
So I'm looking for a way to implement this variation of friction coefficient along the contact or another way to make it imperfect.
Thanks in advance !😀
The code:
model = ExtAPI.DataModel.Project.Model
newContact=model.Connections.AddContactRegion()
mu = 1
newContact.ContactType=ContactType.Frictional
newContact.FrictionCoefficient=mu
newContact.DynamicCoefficient=mu
newContact.Behavior = ContactBehavior.Asymmetric
newContact.ContactFormulation=ContactFormulation.NormalLagrange
ExtAPI.DataModel.Tree.Refresh()
contact = ExtAPI.DataModel.GetObjectsByName('haut')[0]
newContact.SourceLocation = contact
target = ExtAPI.DataModel.GetObjectsByName('bas')[0]
newContact.TargetLocation = target