ALTADataSet.StressRelation: Difference between revisions

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


== Usage Example ==
== Usage Example ==
 
This example demonstrates how to add a stress and set its stress transformation.
{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
{{APIComment|'Declare the ALTADataSet. See [[ALTADataSet Constructors]].}}
        Dim ALTADS as New ALTADataSet
  Dim ALTADS as New ALTADataSet
 
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|'Add a new stress.}}
        Dim sp = New ALTAStressProfile("Profile1")
  ALTADS.AddStressDefinition("Stress1")
        sp.RepeatCycle = True
 
        sp.AddSegment(1, 250)
{{APIComment|'Set the stress transformation for the first stress. See [[ALTASolverLSR_Enumeration|ALTASolverLSR]].}}
        sp.AddSegment(2, 300)
  ALTADS.StressRelation(0) = ALTASolverLSR.Arrhenius
        sp.AddSegment(3, 400)
 
{{APIComment|Add the stress profile. See [[ALTADataSet.AddStressProfile]] for additional details}}
        ALTADS.AddStressProfile(sp)
 
{{APIComment|Set the relation for the stress.}}
        ALTADS.StressRelation(0) = ALTASolverLSR.Arrhenius

Revision as of 23:33, 19 March 2014


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

Syntax

  • StressRelation( Index As Integer )

Parameters

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

Value

Type: ALTASolverLSR

Usage Example

This example demonstrates how to add a stress and set its stress transformation.

 'Declare the ALTADataSet. See ALTADataSet Constructors. 
 Dim ALTADS as New ALTADataSet
 
 'Add a new stress. 
 ALTADS.AddStressDefinition("Stress1")
 
 'Set the stress transformation for the first stress. See ALTASolverLSR. 
 ALTADS.StressRelation(0) = ALTASolverLSR.Arrhenius