General joint stiffness worksheet through Mechanical scripting

Options
Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 813
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Structures

How can I create a general joint and define its stiffness coefficients in the worksheet through ACT scripting?

Tagged:

Best Answer

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 813
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options

    To define the general joint, use:

        connections = ExtAPI.DataModel.Project.Model.Connections
        newJoint = connections.AddJoint()
        newJoint.Type =JointType.General
        newJoint.Rotations=JointRotationDOFType.FreeAll
    

    To define the stiffness coefficients, use the following syntax (for example for thetaX) :

        ws= newJoint.BushingWorksheet
        ws.SetBushingStiffnessPerThetaUnitX(3,10)
    

Answers