Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAP2000 OAPI Pushover Curve

Status
Not open for further replies.

Salman5050

Civil/Environmental
Mar 5, 2024
3
How can I display a pushover curve using sap2000 OAPI. How to find the yield displacement and the yield force, similarly for ultimate load and ultimate displacement. How can I write the code using sap2000 OAPI.
 
Replies continue below

Recommended for you

# get hinge data for the Beams
NumberHinges = 1
HingeNum = [1, 2]
Prop = ["2B1", "2B2"]
MyType = [6, 6]
Behavior = [2, 2]
Source = ["Auto", "Auto"]
# LocType = [1,1]
RD = [0, 1]
# AD = [0,0]
# ret = SapModel.FrameObj.GetHingeAssigns_1("2", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, LocType, RD, AD)
ret = SapModel.FrameObj.GetHingeAssigns("2", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, RD)

NumberHinges = 1
HingeNum = [3, 4]
Prop = ["4B1", "4B1"]
MyType = [6, 6]
Behavior = [2, 2]
Source = ["Auto", "Auto"]
# LocType = [1,1]
RD = [1, 1]
# AD = [0,0]
# ret = SapModel.FrameObj.GetHingeAssigns_1("4", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, LocType, RD, AD)
ret = SapModel.FrameObj.GetHingeAssigns("2", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, RD)

NumberHinges = 2
HingeNum = [5, 6]
Prop = ["5B1", "5B2"]
MyType = [6, 6]
Behavior = [2, 2]
Source = ["Auto", "Auto"]
# LocType = [1,1]
RD = [0, 1]
# AD = [0,0]
# ret = SapModel.FrameObj.GetHingeAssigns_1("5", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, LocType, RD, AD)
ret = SapModel.FrameObj.GetHingeAssigns("2", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, RD)
# clear selection
ret = SapModel.SelectObj.ClearSelection

# # get hinge data for the Columns
# # select by frame property
ret = SapModel.SelectObj.PropertyFrame("C1")
NumberHinges = 2
HingeNum = [7, 8]
Prop = ["1C1", "1C2"]
MyType = [10, 10]
Behavior = [2, 2]
Source = ["Auto", "Auto"]
# LocType = [1,1]
RD = [0, 1]
# AD = [0,0]
# ret = SapModel.FrameObj.GetHingeAssigns_1("1", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, LocType, RD, AD)
ret = SapModel.FrameObj.GetHingeAssigns("2", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, RD)

NumberHinges = 2
HingeNum = [9, 10]
Prop = ["2C1", "2C2"]
MyType = [10, 10]
Behavior = [2, 2]
Source = ["Auto", "Auto"]
# LocType = [1,1]
RD = [0, 1]
# AD = [0,0]
# ret = SapModel.FrameObj.GetHingeAssigns_1("3", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, LocType, RD, AD)
ret = SapModel.FrameObj.GetHingeAssigns("2", NumberHinges, HingeNum, Prop, MyType, Behavior, Source, RD)
 
The above-posted code I am using to define the plastic hinges in Sap2000 oapi but this code is not working, what should be the right code to define plastic hinges in sap2000 oapi, Also how to get base shear vs displacement results in sap2000 oapi. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor