ALTADataSet.StressRelation: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{Template:ALTADataSet.StressRelation.Cmt}}
{{Template:ALTADataSet.StressRelation.Cmt}}


== Property Syntax ==
== Syntax ==


{{Template:ALTADataSet.StressRelation}}
StressRelation(
Index
{{APIPrefix|As Integer}}
)
{{APIPrefix|As}}
[[ALTASolverLSR]]
 
Parameters
:''Index'': The index of the stress in ALTADataSet (0 = the first stress).


== Usage Example ==
== Usage Example ==

Revision as of 20:34, 26 February 2014


Sets or gets the stress transformation of a particular stress, using the specified stress index.

Syntax

StressRelation( Index As Integer ) As ALTASolverLSR

Parameters

Index: The index of the stress in ALTADataSet (0 = the first stress).

Usage Example

Declare the ALTADataSet. See New ALTADataSet for additional details.

       Dim ALTADS as New ALTADataSet

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. See ALTADataSet.AddStressProfile for additional details

       ALTADS.AddStressProfile(sp)

Set the relation for the stress.

       ALTADS.StressRelation(0) = ALTASolverLSR.Arrhenius