ALTADataSet.AddStressDefinition

From ReliaWiki
Revision as of 22:08, 2 December 2013 by John Leavitt (talk | contribs) (Protected "ALTADataSet.AddStressDefinition" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
Jump to navigation Jump to search



Sets a new stress definition(column) to be used.

Method Syntax

AddStressDefinition( ByVal Name As String, Optional ByVal StressRelation As ALTASolverLSR = ALTASolverLSR.Exponential, Optional ByVal UseStress As Double = 1)
Adds a stress definition (column). The number of stresses in subsequent calls to AddFailure, AddSuspension etc. must be equal to the number of stress definitions in the data set.

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.

       ALTADS.AddStressDefinition("NewStress1")

Declare an ALTAStressProfile. See ALTAStressProfile for additional details.

       Dim sp = New ALTAStressProfile("Profile1")
       sp.RepeatCycle = True
       sp.AddSegment(1, 250)
       sp.AddSegment(2, 300)
       sp.AddSegment(3, 400)

Add the stress profile

       ALTADS.AddStressProfile(sp)

Add values to the raw data. See AddFailure for additional details. Because one definition was added, only one stress is needed.

       ALTADS.AddFailure(1, 1, sp)
       ALTADS.AddFailure(2, 1, sp)
       ALTADS.AddFailure(3, 1, sp)