Changing the coefficient of friction of each element

Hi, I am currently trying to change the coefficient of friction of each element in a contact area. I tried running apdl commands through pymapdl but seems like its not even reading the command file. Can anyone help me with this? I need to extracts element nos. in a contact area and assign unique coefficient of friction value to each element.

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 240
    First Anniversary First Comment 5 Likes Ansys Employee

    Are you asking about how to run your APDL commands via PyAPDL? Or are you asking for help in how to implement the change in friction in APDL?
    Either way, please provide more information about current scripts and what exactly is happening.

  • Shailesh Kumar
    Shailesh Kumar Member Posts: 10
    First Comment

    Hello, I was trying to create a script to do the above mentioned thing using pymapdl but as I was not able to find the relevant commands in pymapdl, I tried directly running the apdl scrips using "mapdl.run("/INPUT get_contact_elements.txt")" but either of it is not working. Currently I am reading the inp file and trying to run the code to get element nos. in contact area. After I get this I will change the coeff of friction for each element. As of now I am struck on first step of getting the element nos.

  • Shailesh Kumar
    Shailesh Kumar Member Posts: 10
    First Comment

    Can anyone provide some insight on this topic?