Fatigue analysis: Automation

The fatigue analysis capabilities can be automated in a number of different ways.

YAML text files

The YAML format fatigue files can be used for automation in exactly the same manner as OrcaFlex data files. In particular the OrcaFlex spreadsheet provides a simple, yet effective, facility for automating the production of text fatigue files.

A typical text fatigue file would load a base file, and then make a small number of modifications. For example:

# Type: Fatigue
BaseFile: base.ftg
RadialPosition[1]: Inner

Note: The comment line in the above example is needed if you are going to batch process YAML text files. Without the comment line, the batch processing code assumes that the YAML file specifies an OrcaFlex model rather than a fatigue analysis.

Batch script

The batch script facility includes a number of commands for fatigue analysis automation. The available commands are: Select, Load, Save, Run and NewFatigue. Assignment using the Name = Value syntax is also supported.

The following contrived example illustrates all these commands.

NewFatigue
  DamageCalculation = "Homogeneous pipe stress"
  AnalysisType = Rainflow
  ArclengthIntervalsCount = 1
  FromArclength[1] = 0.0
  ToArclength[1] = 30.0
  SCF[0] = 1.5
  SNcurveCount = 2
  SNcurveName[2] = ProjectSteel
  Select SNcurve ProjectSteel
    SNDataEnduranceLimit = 0.0
Save fatigue.ftg

Load base.ftg
  RadialPosition[1] = Outer
Run outer.ftg

Load base.ftg
  RadialPosition[1] = Inner
Run inner.ftg

The OrcaFlex spreadsheet facility for automating script file generation can be used to generate batch script files for fatigue.

OrcaFlex programming interface

The C/C++, Delphi, Python and MATLAB programming interfaces to OrcaFlex all support automation of fatigue analysis. As with all other functionality, the Python and MATLAB interfaces are the easiest to use.