cPropMaterialGetDamping Method |
Retrieves the additional material damping data for the material.
Namespace:
ETABS2016
Assembly:
ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntaxint GetDamping(
string Name,
ref double ModalRatio,
ref double ViscousMassCoeff,
ref double ViscousStiffCoeff,
ref double HystereticMassCoeff,
ref double HystereticStiffCoeff,
double Temp = 0
)
Function GetDamping (
Name As String,
ByRef ModalRatio As Double,
ByRef ViscousMassCoeff As Double,
ByRef ViscousStiffCoeff As Double,
ByRef HystereticMassCoeff As Double,
ByRef HystereticStiffCoeff As Double,
Optional Temp As Double = 0
) As Integer
int GetDamping(
String^ Name,
double% ModalRatio,
double% ViscousMassCoeff,
double% ViscousStiffCoeff,
double% HystereticMassCoeff,
double% HystereticStiffCoeff,
double Temp = 0
)
abstract GetDamping :
Name : string *
ModalRatio : float byref *
ViscousMassCoeff : float byref *
ViscousStiffCoeff : float byref *
HystereticMassCoeff : float byref *
HystereticStiffCoeff : float byref *
?Temp : float
(* Defaults:
let _Temp = defaultArg Temp 0
*)
-> int
Parameters
- Name
- Type: SystemString
The name of an existing material property. - ModalRatio
- Type: SystemDouble
The modal damping ratio. - ViscousMassCoeff
- Type: SystemDouble
The mass coefficient for viscous proportional damping. - ViscousStiffCoeff
- Type: SystemDouble
The stiffness coefficient for viscous proportional damping. - HystereticMassCoeff
- Type: SystemDouble
The mass coefficient for hysteretic proportional damping. - HystereticStiffCoeff
- Type: SystemDouble
The stiffness coefficient for hysteretic proportional damping. - Temp (Optional)
- Type: SystemDouble
The temperature at which the specified data is to be retrieved.
The temperature must have been previously defined for the material
This item applies only if the specified material has properties that are temperature dependent.
That is, it applies only if properties are specified for the material at more than one temperature
Return Value
Type:
Int32Returns zero if the data is successfully retrieved; otherwise it returns a nonzero value.
Remarks
ExamplesPublic Sub Example()
Dim SapModel As cSapModel
Dim EtabsObject As cOAPI
Dim ret As Integer = -1
Dim ModalRatio As Double
Dim ViscousMassCoeff As Double
Dim ViscousStiffCoeff As Double
Dim HystereticMassCoeff As Double
Dim HystereticStiffCoeff As Double
EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject")
ret = EtabsObject.ApplicationStart()
SapModel = EtabsObject.SapModel
ret = SapModel.InitializeNewModel()
ret = SapModel.File.NewSteelDeck(4,12,12,4,4,24,24)
ret = SapModel.PropMaterial.SetDamping("4000Psi", 0.04, 0, 0, 0, 0)
ret = SapModel.PropMaterial.GetDamping("4000Psi", ModalRatio, ViscousMassCoeff, ViscousStiffCoeff, HystereticMassCoeff, HystereticStiffCoeff)
EtabsObject.ApplicationExit(False)
SapModel = Nothing
EtabsObject = Nothing
End Sub
See Also