ALTADataSet.AddStressDefinition: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
<ul> | <ul> | ||
AddStressDefinition( | |||
{{APIName|Name}} | {{APIName|Name}} | ||
{{APIPrefix|As String, Optional | {{APIPrefix|As String, Optional}} | ||
{{APIName|StressRelation}} | {{APIName|StressRelation}} | ||
{{APIPrefix|As [[ALTASolverLSR]]}} | {{APIPrefix|As [[ALTASolverLSR]]}} | ||
= | = | ||
{{APIName| | {{APIName|ALTASolverLSR.Exponential,}} | ||
{{APIPrefix|Optional | {{APIPrefix|Optional}} | ||
{{APIName|UseStress}} | {{APIName|UseStress}} | ||
{{APIPrefix|As Double}} | {{APIPrefix|As Double}} | ||
= | = 1 ) | ||
</li> | </li> | ||
</ul> | </ul> |
Revision as of 20:24, 25 February 2014
Adds a stress to the data set, using the specified name of the stress, the stress transformation (if any) and the use stress level. The number of stress values used in subsequent calls to AddFailure, AddSuspension, etc. must be equal to the number of stress definitions in the data set (e.g., before you can add a failure time obtained with two stresses, you must add two stress definitions).
Syntax
-
AddStressDefinition(
Name
As String, Optional
StressRelation
As ALTASolverLSR
=
ALTASolverLSR.Exponential,
Optional
UseStress
As Double
= 1 )
Parameters
- Name: The name of the new stress definition.
- StressRelation: The relation to set the new stress definition.
- UseStress: The use stress level.
Usage Example
Declare the ALTADataSet. See New ALTADataSet for additional details.
Dim ALTADS as New ALTADataSet
Add a new stress definition.
ADS.AddStressDefinition("NewStress1")
Add an ALTAStressProfile with stress segments. See ALTAStressProfile for additional details.
Dim NewStressProfile1 As New ALTAStressProfile("NewStressProfile1") NewStressProfile1.RepeatCycle = True NewStressProfile1.AddSegment(1, 250) NewStressProfile1.AddSegment(2, 300) NewStressProfile1.AddSegment(3, 400)
Add the stress profile
ALTADS.AddStressProfile(NewStressProfile1)