SetTimeIntegration {Direct TH Linear}

SetTimeIntegration

Syntax

SapObject.SapModel.LoadCases.DirHistLinear.SetTimeIntegration

VB6 Procedure

Function SetTimeIntegration(ByVal Name As String, ByVal IntegrationType As Long, ByVal Alpha As Double, ByVal Beta As Double, ByVal Gamma As Double, ByVal Theta As Double, Optional ByVal m As Double = 0) As Long

Parameters

Name

The name of an existing linear direct integration time history load case.

IntegrationType

This is 1, 2, 3, 4 or 5, indicating the time integration type.

1 = Newmark

2 = Wilson

3 = Collocation

4 = Hilber-Hughes-Taylor

5 = Chung and Hulbert

Alpha

The alpha factor (-1/3 <= Alpha <= 0).

This item applies only when IntegrationType = 4 or 5.

Beta

The beta factor (Beta >= 0).

This item applies only when IntegrationType = 1, 3 or 5.

Gamma

The gamma factor (Gamma >= 0.5).

This item applies only when IntegrationType = 1, 3 or 5.

Theta

The theta factor (Theta > 0).

This item applies only when IntegrationType = 2 or 3.

m

The alpha-m factor.

This item applies only when IntegrationType = 5.

Remarks

This function sets time integration data for the specified load case.

The function returns zero if the data is successfully set; otherwise it returns a nonzero value.

VBA Example

Sub SetCaseDirHistLinearTimeIntegration()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

'create Sap2000 object

Set SapObject = CreateObject("CSI.SAP2000.API.SapObject")

'start Sap2000 application

SapObject.ApplicationStart

'create SapModel object

Set SapModel = SapObject.SapModel

'initialize model

ret = SapModel.InitializeNewModel

'create model from template

ret = SapModel.File.New2DFrame(PortalFrame, 2, 144, 2, 288)

'add linear direct history load case

ret = SapModel.LoadCases.DirHistLinear.SetCase("LCASE1")

'set time integration parameters

ret = SapModel.LoadCases.DirHistLinear.SetTimeIntegration("LCASE1", 3, 0, 0.17, 0.52, 0.9)

'close Sap2000

SapObject.ApplicationExit False

Set SapModel = Nothing

Set SapObject = Nothing

End Sub

Release Notes

Initial release in version 11.02.

Changed nomenclature from Load Cases, Analysis Cases and Response Combinations to Load Patterns, Load Cases and Load Combinations, respectively, in version 12.00.

See Also

GetTimeIntegration