ALTADataSet.AddStressProfile: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:


== Usage Example ==
== Usage Example ==
{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
{{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}}
        Dim ALTADS as New ALTADataSet
  Dim ALTADS as New ALTADataSet
 
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|Declare a new stress profile. See [[ALTAStressProfile Class|ALTAStressProfile]].}}
        Dim sp = New ALTAStressProfile("Profile1")
  Dim sp = New ALTAStressProfile("Profile1")
        sp.RepeatCycle = True
  sp.RepeatCycle = True
        sp.AddSegment(1, 250)
  sp.AddSegment(1, 250)
        sp.AddSegment(2, 300)
  sp.AddSegment(2, 300)
        sp.AddSegment(3, 400)
  sp.AddSegment(3, 400)
 
 
{{APIComment|Add the stress profile.}}
{{APIComment|Add the stress profile to the data set.}}
        '''ALTADS.AddStressProfile(sp)'''
  ALTADS.AddStressProfile(sp)
 
{{APIComment|Add a failure time to the data set. See [[ALTADataSet.AddFailure|AddFailure]].}}
  ALTADS.AddFailure(100, 1, sp)

Revision as of 20:45, 5 May 2014


Makes an existing time-varying stress profile available for use in the analysis. Stress profiles can be used only when the cumulative damage model is selected.

Syntax

Parameters

Profile: A defined stress profile, as an instance of the ALTAStressProfile class.

Usage Example

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