ALTADataSet.AddStressProfile: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 15: | Line 15: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Declare | {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]].}} | ||
Dim ALTADS as New ALTADataSet | |||
{{APIComment|Declare | {{APIComment|Declare a new stress profile. See [[ALTAStressProfile Class|ALTAStressProfile]].}} | ||
Dim sp = New ALTAStressProfile("Profile1") | |||
sp.RepeatCycle = True | |||
sp.AddSegment(1, 250) | |||
sp.AddSegment(2, 300) | |||
sp.AddSegment(3, 400) | |||
{{APIComment|Add the stress profile.}} | {{APIComment|Add the stress profile to the data set.}} | ||
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
- AddStressProfile( Profile As ALTAStressProfile )
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)