User:Kate Racaza/test page: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
==Tutorial: Accelerated Life Testing Data Analysis - Single Stress==
==Tutorial: Accelerated Life Testing Data Analysis - Single Stress==
The following example demonstrates how to define an ALTA data set and obtain analysis results from a single stress model. A discussion of the example follows.  
The following example demonstrates how to define an ALTA data set and obtain analysis results from a single stress model. A discussion of the example follows.  
The following table shows the data set for this example.
{|{{table}}
|Number in State||State||Time to F or S||Temperature
|-
|1||F||245||353
|-
|5||S||250||353
|-
|1||F||110||373
|-
|1||F||180||373
|-
|1||F||200||373
|-
|3||S||250||373
|-
|1||F||50||393
|-
|1||F||70||393
|-
|1||F||88||393
|-
|1||F||112||393
|-
|1||F||140||393
|-
|1||F||160||393
|}


  '''VB.NET'''
  '''VB.NET'''
Line 19: Line 49:
   
   
   {{APIComment|'Define a stress type with use stress level = 300.}}  
   {{APIComment|'Define a stress type with use stress level = 300.}}  
     ADS.AddStressDefinition("Stress1",,300)
     ADS.AddStressDefinition({{APIString|"Stress1"}},,300)
   
   
   {{APIComment|'Add failure times to the data set.}}
   {{APIComment|'Add failure times to the data set.}}
Line 35: Line 65:
   {{APIComment|'Add suspensions to the data set.}}
   {{APIComment|'Add suspensions to the data set.}}
     ADS.AddSuspension(250, 5, 353)   
     ADS.AddSuspension(250, 5, 353)   
     ADS.AddSuspension(250, 2, 353)  
     ADS.AddSuspension(250, 3, 373)  
    
    
   {{APIComment|'Use the 2-parameter Weibull distribution and the rank regression on X (RRX) analysis method.}}
   {{APIComment|'Use the Arrhenius-Weibull model to analyze the data set.}}
   {{APIComment|'Keep all other analysis settings at default.}}
   {{APIComment|'Keep all other analysis settings at default.}}
     ADS.AnalysisSettings.Distribution = WeibullSolverDistribution.Weibull
     ADS.AnalysisSettings.ModelType = ALTASolverModel.Arrhenius
     ADS.AnalysisSettings.Parameters = WeibullSolverNumParameters.MS_2Parameter
     ADS.AnalysisSettings.Distribution = ALTASolverDistribution.Weibull
    ADS.AnalysisSettings.Analysis = WeibullSolverMethod.RRX
    
    
   {{APIComment|'Analyze the data set.}}
   {{APIComment|'Analyze the data set.}}
     ADS.Calculate()
     ADS.Calculate()
   
   
   {{APIComment|'Calculate the probability of failure at 226 hrs and display the result.}}
   {{APIComment|'Calculate the B10 life and display the result.}}
     {{APIPrefix|Dim}} r {{APIPrefix|As}} Double
     {{APIPrefix|Dim}} r {{APIPrefix|As}} Double
     r = ADS.FittedModel.unreliability(226)
     r = ADS.FittedModel.Time(.90)
     MsgBox({{APIString|"Prob. Fail: "}} & r)
     MsgBox({{APIString|"B10 Life: "}} & r)
   
   
     {{APIPrefix|End Sub}}
     {{APIPrefix|End Sub}}
Line 57: Line 86:
==Discussion==
==Discussion==


The [[WeibullDataSet Class|WeibullDataSet]] class represents a Weibull++ standard folio data sheet. The class contains all the methods and properties that allow you to define a data set and fit a statistical distribution to the data.
The [[ALTADataSet Class|ALTADataSet]] class represents an ALTA standard folio data sheet. The class contains all the methods and properties that allow you to define a data set and fit a life-stress relationship and distribution to the data.


  {{APIComment|'Declare a new WeibullDataSet object.}}  
{{APIComment|'Declare a new ALTADataSet object.}}  
    {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet
  {{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet


The data set can contain failures, suspensions, interval data or free-form data. The following example shows how to use the [[WeibullDataSet.AddFailure|AddFailure]] method to define failures and the [[WeibullDataSet.AddSuspension|AddSuspension]] method to define suspensions.
The data set can contain failures, suspensions or interval data. The following example shows how to use the [[ALTADataSet.AddFailure|AddFailure]] method to define failures and the [[ALTADataSet.AddSuspension|AddSuspension]] method to define suspensions.  


  {{APIComment|'Add failure times to the data set.}}
  {{APIComment|'Add failure times to the data set.}}
   WDS.AddFailure(16, 1)
   ADS.AddFailure(245, 1, 353)
   WDS.AddFailure(34, 1)
   ADS.AddFailure(110, 1, 373)
   WDS.AddFailure(53, 1)   
   ADS.AddFailure(180, 1, 373)   
   WDS.AddFailure(75, 1)
   ADS.AddFailure(200, 1, 373)
   WDS.AddFailure(93, 1)
  ADS.AddFailure(50, 1, 393)
    
  ADS.AddFailure(70, 1, 393)
  {{APIComment|'Add five suspensions to the data set.}}
  ADS.AddFailure(88, 1, 393)
   WDS.AddSuspension(120, 5)  
   ADS.AddFailure(112, 1, 393)
   ADS.AddFailure(140, 1, 393)
  ADS.AddFailure(160, 1, 393)
   
  {{APIComment|'Add suspensions to the data set.}}
   ADS.AddSuspension(250, 5, 353) 
  ADS.AddSuspension(250, 3, 373)  


The AnalysisSetting property returns a [[WeibullAnalysisOptions Class|WeibullAnalysisOptions]] object, which represents the analysis settings of the WeibullDataSet object. In the following example, we use the <code>Distribution</code>, <code>Parameters</code> and <code>Analysis</code> properties of the WeibullAnalysisOptions class to specify the life distribution and analysis method.
The AnalysisSetting property returns an [[ALTAAnalysisOptions Class|ALTAAnalysisOptions]] object, which represents the analysis settings of the ALTADataSet object. In the following example, we use the <code>ModelType</code> and <code>Distribution</code> properties of the ALTAAnalysisOptions class to specify the life-stress relationship and distribution.


  {{APIComment|'Use the 2-parameter Weibull distribution and the rank regression on X (RRX) analysis method.}}
  {{APIComment|'Use the Arrhenius-Weibull model to analyze the data set.}}
  {{APIComment|'Keep all other analysis settings at default.}}
  {{APIComment|'Keep all other analysis settings at default.}}
   WDS.AnalysisSettings.Distribution = WeibullSolverDistribution.Weibull
   ADS.AnalysisSettings.ModelType = ALTASolverModel.Arrhenius
   WDS.AnalysisSettings.Parameters = WeibullSolverNumParameters.MS_2Parameter
   ADS.AnalysisSettings.Distribution = ALTASolverDistribution.Weibull
  WDS.AnalysisSettings.Analysis = WeibullSolverMethod.RRX


To analyze the data set, use the [[WeibullDataSet.Calculate|Calculate]] method. The method returns a message box that shows the estimated parameters of the life distribution, based on the settings specified in the AnalysisSettings property.  
To analyze the data set, use the [[ALTADataSet.Calculate|Calculate]] method. The method returns a message box that shows the estimated parameters of the model, based on the settings specified in the AnalysisSettings property.  


  {{APIComment|'Analyze the data set.}}
  {{APIComment|'Analyze the data set.}}
   WDS.Calculate()
   ADS.Calculate()


The FittedModel property gets a [[CModel Class|cModel]] object that represents the fitted model of the life data analysis. From the model, you can calculate useful metrics such as reliability, failure rate, mean time, etc. In this example, we calculate for the probability of failure (unreliability).
The FittedModel property gets a [[CModel Class|cModel]] object that represents the fitted model of the accelerated life testing data analysis. From the model, you can calculate useful metrics such as reliability, failure rate, mean time, etc. In this example, we calculate for the B10 life.


   {{APIComment|'Calculate the probability of failure at 226 hrs and display the result.}}
   {{APIComment|'Calculate the B10 life and display the result.}}
     {{APIPrefix|Dim}} r {{APIPrefix|As}} Double
     {{APIPrefix|Dim}} r {{APIPrefix|As}} Double
     r = WDS.FittedModel.unreliability(226)
     r = ADS.FittedModel.Time(.90)
     MsgBox({{APIString|"Prob. Fail: "}} & r)
     MsgBox({{APIString|"B10 Life: "}} & r)
 
==Notes==
For a two-stressTo analyze results for a




==References==
===References===
*[[WeibullDataSet Class]]
*[[ALTADataSet Class]]
*[[WeibullDataSet.AddFailure|WeibullDataSet.AddFailure Method]]
*[[ALTADataSet.AddFailure|ALTADataSet.AddFailure Method]]
*[[WeibullDataSet.AddSuspension| WeibullDataSet.AddSuspension Method]]
*[[ALTADataSet.AddSuspension| ALTADataSet.AddSuspension Method]]
*[[WeibullDataSet.Calculate|WeibullDataSet.Calculate Method]]
*[[ALTADataSet.Calculate|ALTADataSet.Calculate Method]]
*[[WeibullAnalysisOptions Class]]
*[[ALTAAnalysisOptions Class]]
*[[CModel Class|cModel Class]]
*[[CModel Class|cModel Class]]

Revision as of 21:58, 11 May 2016

DRAFT

APIWiki.png


<< Back to Tutorials Main Page

With the Synthesis API, you can leverage the ALTA analysis engine to perform accelerated life testing data analysis on an external data source. In this tutorial, you will learn how to use the API to create and analyze a data set, and then estimate the probability of failure.


Tutorial: Accelerated Life Testing Data Analysis - Single Stress

The following example demonstrates how to define an ALTA data set and obtain analysis results from a single stress model. A discussion of the example follows.

The following table shows the data set for this example.

Number in State State Time to F or S Temperature
1 F 245 353
5 S 250 353
1 F 110 373
1 F 180 373
1 F 200 373
3 S 250 373
1 F 50 393
1 F 70 393
1 F 88 393
1 F 112 393
1 F 140 393
1 F 160 393


VB.NET

Imports SynthesisAPI 

Module Module1
   Sub Main()

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

  'Define a stress type with use stress level = 300.  
   ADS.AddStressDefinition("Stress1",,300)

  'Add failure times to the data set. 
   ADS.AddFailure(245, 1, 353)
   ADS.AddFailure(110, 1, 373)
   ADS.AddFailure(180, 1, 373)  
   ADS.AddFailure(200, 1, 373)
   ADS.AddFailure(50, 1, 393)
   ADS.AddFailure(70, 1, 393)
   ADS.AddFailure(88, 1, 393)
   ADS.AddFailure(112, 1, 393)
   ADS.AddFailure(140, 1, 393)
   ADS.AddFailure(160, 1, 393)
   
  'Add suspensions to the data set. 
   ADS.AddSuspension(250, 5, 353)   
   ADS.AddSuspension(250, 3, 373) 
 
  'Use the Arrhenius-Weibull model to analyze the data set. 
  'Keep all other analysis settings at default. 
   ADS.AnalysisSettings.ModelType = ALTASolverModel.Arrhenius
   ADS.AnalysisSettings.Distribution = ALTASolverDistribution.Weibull
 
  'Analyze the data set. 
   ADS.Calculate()

  'Calculate the B10 life and display the result. 
   Dim r As Double
   r = ADS.FittedModel.Time(.90)
   MsgBox("B10 Life: " & r)

   End Sub
End Module


Discussion

The ALTADataSet class represents an ALTA standard folio data sheet. The class contains all the methods and properties that allow you to define a data set and fit a life-stress relationship and distribution to the data.

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

The data set can contain failures, suspensions or interval data. The following example shows how to use the AddFailure method to define failures and the AddSuspension method to define suspensions.

 'Add failure times to the data set. 
  ADS.AddFailure(245, 1, 353)
  ADS.AddFailure(110, 1, 373)
  ADS.AddFailure(180, 1, 373)  
  ADS.AddFailure(200, 1, 373)
  ADS.AddFailure(50, 1, 393)
  ADS.AddFailure(70, 1, 393)
  ADS.AddFailure(88, 1, 393)
  ADS.AddFailure(112, 1, 393)
  ADS.AddFailure(140, 1, 393)
  ADS.AddFailure(160, 1, 393)
   
 'Add suspensions to the data set. 
  ADS.AddSuspension(250, 5, 353)   
  ADS.AddSuspension(250, 3, 373) 

The AnalysisSetting property returns an ALTAAnalysisOptions object, which represents the analysis settings of the ALTADataSet object. In the following example, we use the ModelType and Distribution properties of the ALTAAnalysisOptions class to specify the life-stress relationship and distribution.

 'Use the Arrhenius-Weibull model to analyze the data set. 
 'Keep all other analysis settings at default. 
  ADS.AnalysisSettings.ModelType = ALTASolverModel.Arrhenius
  ADS.AnalysisSettings.Distribution = ALTASolverDistribution.Weibull

To analyze the data set, use the Calculate method. The method returns a message box that shows the estimated parameters of the model, based on the settings specified in the AnalysisSettings property.

 'Analyze the data set. 
  ADS.Calculate()

The FittedModel property gets a cModel object that represents the fitted model of the accelerated life testing data analysis. From the model, you can calculate useful metrics such as reliability, failure rate, mean time, etc. In this example, we calculate for the B10 life.

  'Calculate the B10 life and display the result. 
   Dim r As Double
   r = ADS.FittedModel.Time(.90)
   MsgBox("B10 Life: " & r)

Notes

For a two-stressTo analyze results for a


References