Extract bolt pretension results

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

How to extract bolt pretension force reaction, adjustment probe results for all the bolt pretensions results in a excel file?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 827
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    edited December 2023
    Options

    Below code can be adapted:

    load=ExtAPI.DataModel.GetObjectsByType(DataModelObjectCategory.BoltPretensionProbe)
    count=load.Count
    Name =[]
    force=[]
    Adjust=[]
    filepath=r"D:\boltpretensionforceinfo.csv"
    for i in range(0,count):
        press=load[i].WorkingLoad
        force.append(str(press).split()[0])
        Name.append(load[i].Name)
        Adjust.append(str(load[i].Adjustment)[0])
    print("Bolt pretension reaction probe report Generated")
    f=open(filepath,"w")
    f.write("Bolt Pretension Probe Name"+ ","+"BlotPretension Load"+ ","+"Bolt Pretension Adjustment"+"\n")
    for i in range(0,count):
        f.write(str(Name[i])+","+str(force[i])+","+str(Adjust[i])+"\n")
    f.close()
    
  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 312
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

    If you need time history values for pretension or adjustment you can use DPF. The pilot node of the bolt pretension load can be found from the load object.
    On this node, the reaction force in X will be the working load and the UX displacement will be the adjustment.
    Like with all things DPF, set the time scoping of the operators to get multiple time point results.