ALTADataSet.AddStressProfile

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


Member of: SynthesisAPI.ALTADataSet


Returns an ALTAStressProfile object that represents a time-dependent stress profile and associates it with an ALTADataSet object. Applies to the cumulative damage (CD) model only.

Syntax

.AddStressProfile(Profile)

Parameters

Profile

Required. The ALTAStressProfile object.


Example

The following example demonstrates how to create a stress profile and associate it with an ALTADataSet object.

VB.NET

 'Declare a new ALTADataSet object.  
  Dim ADS As New ALTADataSet

 'Declare a new stress profile. 
  Dim sp As New ALTAStressProfile("Profile1")
  sp.RepeatCycle = True
  sp.AddSegment(1, 250)
  sp.AddSegment(2, 300)
  sp.AddSegment(3, 400)
 
 'Add the stress profile to the ALTADataSet object. 
  ALTADS.AddStressProfile(sp)
 
 'Add a failure time to the data set, using the stress profile. 
  ALTADS.AddFailure(100, 1, sp)