ALTADataSet.AddStressDefinition: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 31: | Line 31: | ||
{{APIComment|'Add failure times for Stress1 = 190 and Stress2 = 235.}} | {{APIComment|'Add failure times for Stress1 = 190 and Stress2 = 235.}} | ||
{{APIPrefix|Call}} ADS.AddFailure_3(100, 1, 190, 235) | |||
{{APIPrefix|Call}} ADS.AddFailure_3(120, 1, 190, 235) | |||
{{APIPrefix|Call}} ADS.AddFailure_3(130, 1, 190, 235) | |||
{{APIPrefix|Call}} ADS. | |||
{{APIPrefix|Call}} ADS. | |||
{{APIPrefix|Call}} ADS. | |||
'''VB.NET''' | '''VB.NET''' |
Revision as of 23:23, 5 May 2016
Member of: SynthesisAPI.ALTADataSet
Adds a stress type to the data set.
Syntax
.AddStressDefinition(Name, StressRelation, UseStress)
Parameters
Name
- Required. String. The name of the stress.
StressRelation
- Optional. The stress transformation that will be applied to the stress. Applies to the general log-linear (GLL) or cumulative damage (CD) models only. Can be any ALTASolverLSR constant. Default value = 0.
UseStress
- Optional. Double. The use stress level. Default value = 1.
Example
The following example demonstrates how to add stress definitions to an ALTADataSet object.
VBA 'Declare a new ALTADataSet object. Dim ADS As New ALTADataSet 'Define 2 stress types with use stress levels = 10 and 25. Call ADS.AddStressDefinition("Stress1",,10) Call ADS.AddStressDefinition("Stress2",,25) 'Add failure times for Stress1 = 190 and Stress2 = 235. Call ADS.AddFailure_3(100, 1, 190, 235) Call ADS.AddFailure_3(120, 1, 190, 235) Call ADS.AddFailure_3(130, 1, 190, 235)
VB.NET 'Declare a new ALTADataSet object. Dim ADS As New ALTADataSet 'Define 2 stress types with use stress levels = 10 and 25. ADS.AddStressDefinition("Stress1",,10) ADS.AddStressDefinition("Stress2",,25) 'Add failure times for Stress1 = 190 and Stress2 = 235. ADS.AddFailure(100, 1, 190, 235) ADS.AddFailure(120, 1, 190, 235) ADS.AddFailure(130, 1, 190, 235)