ALTADataSet.AddStressProfile

From ReliaWiki
Revision as of 16:33, 19 April 2016 by Kate Racaza (talk | contribs)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.ALTADataSet


Adds an ALTAStressProfile object, which represents a time-dependent stress profile, to the data set. Applies to the cumulative damage (CD) model only.

Syntax

.AddStressProfile(Profile)

Parameters

Profile

Required. The ALTAStressProfile object.


Example

The following example demonstrates how to analyze an ALTA data set with a stress profile.

VB.NET

 'Declare an ALTADataSet object.  
  Dim ADS As New ALTADataSet

 'Define a stress type.  
  ADS.AddStressDefinition("Temperature",,)

 'Declare a new stress profile and define its segments. 
  Dim sp As New ALTAStressProfile("Temperature_Profile")
  sp.RepeatCycle = True
  sp.AddSegment(1, 100)
  sp.AddSegment(2, 120)
  sp.AddSegment(3, 150)
 
 'Add the stress profile to the ALTADataSet object. 
  ADS.AddStressProfile(sp)
  
 'Add failure times to the data set. 
  ADS.AddFailure(61, 1, sp)
  ADS.AddFailure(75, 1, sp)
  ADS.AddFailure(90, 1, sp)
  ADS.AddFailure(95, 1, sp)
  ADS.AddFailure(100, 1, sp)

 'Calculate results. 
  ADS.AnalysisSettings.ModelType = ALTASolverModel.CumDamage
  ADS.AnalysisSettings.Distribution = ALTASolverDistribution.Weibull
  ADS.Calculate()