GetChinese2010 {Auto Seismic}

GetChinese2010

Syntax

SapObject.SapModel.LoadPatterns.AutoSeismic.GetChinese2010

VB6 Procedure

Function GetChinese2010(ByVal Name As String, ByRef DirFlag As Long, ByRef Eccen As Double, ByRef PeriodFlag As Long, ByRef UserT As Double, ByRef UserZ As Boolean, ByRef TopZ As Double, ByRef BottomZ As Double, ByRef JGJ32010AlphaMax As Double, ByRef JGJ32010SI As Long, ByRef JGJ32010DampRatio As Double, ByRef JGJ32010Tg As Double, ByRef JGJ32010PTDF As Double, ByRef EnhancementFactor As Double) As Long

Parameters

Name

The name of an existing Quake-type load pattern with a Chinese 2010 auto seismic load assignment.

DirFlag

This is 1, 2 or 3, indicating the seismic load direction.

1 = Global X

2 = Global Y

3 = Global Z

Eccen

The eccentricity ratio that applies to all diaphragms.

PeriodFlag

This is either 2 or 3, indicating the time period option.

2 = Program calculated

3 = User defined

UserT

The user specified time period. This item applies when the PeriodFlag item is 3. [s]

UserZ

This item is True if the top and bottom elevations of the seismic load are user specified. It is False if the elevations are determined by the program.

TopZ

This item applies only when the UserZ item is True. It is the global Z-coordinate at the highest level where auto seismic loads are applied. [L]

BottomZ

This item applies only when the UserZ item is True. It is the global Z-coordinate at the lowest level where auto seismic loads are applied. [L]

JGJ32010AlphaMax

The maximum influence factor.

JGJ32010SI

This is 1, 2, 3, 4, 5 or 6, indicating the seismic intensity.

1 = 6(0.05g)

2 = 7(0.10g)

3 = 7(0.15g)

4 = 8(0.20g)

5 = 8(0.30g)

6 = 9(0.40g)

JGJ32010DampRatio

The damping ratio.

JGJ32010Tg

The characteristic ground period. [s]

JGJ32010PTDF

The period time discount factor.

EnhancementFactor

The enhancement factor.

Remarks

This function retrieves auto seismic loading parameters for the Chinese 2010 code.

The function returns zero if the parameters are successfully retrieved; otherwise it returns a nonzero value.

VBA Example

Sub GetSeismicParametersChinese2010()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

Dim DirFlag As Long

Dim Eccen As Double

Dim PeriodFlag As Long

Dim UserT As Double

Dim UserZ As Boolean

Dim TopZ As Double

Dim BottomZ As Double

Dim JGJ32010AlphaMax As Double

Dim JGJ32010SI As Long

Dim JGJ32010DampRatio As Double

Dim JGJ32010Tg As Double

Dim JGJ32010PTDF As Double

Dim EnhancementFactor As Double

'create Sap2000 object

Set SapObject = New Sap2000v16.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.New3DFrame(BeamSlab, 2, 144, 3, 336, 2, 432)

'add new load pattern

ret = SapModel.LoadPatterns.Add("EQX", LTYPE_QUAKE)

'assign Chinese 2010 parameters

ret = SapModel.LoadPatterns.AutoSeismic.SetChinese2010("EQX", 1, 0.05, 2, 0, False, 0, 0, 0.16, 4, 0.06, 0.4, 1, 1)

'get Chinese 2010 parameters

ret = SapModel.LoadPatterns.AutoSeismic.GetChinese2010("EQX", DirFlag, Eccen, PeriodFlag, UserT, UserZ, TopZ, BottomZ, JGJ32010AlphaMax, JGJ32010SI, JGJ32010DampRatio, JGJ32010Tg, JGJ32010PTDF, EnhancementFactor)

'close Sap2000

SapObject.ApplicationExit False

Set SapModel = Nothing

Set SapObject = Nothing

End Sub

Release Notes

Initial release in version 15.0.2.

See Also

SetChinese2010