01.12.2012 Views

OrcaFlex Manual - Orcina

OrcaFlex Manual - Orcina

OrcaFlex Manual - Orcina

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Automation, Batch Processing<br />

PolarTheta[2] = 45.0<br />

Select Line2<br />

PolarR[1] = 20.0<br />

PolarTheta[1] = 90.0<br />

PolarR[2] = 340.0<br />

PolarTheta[2] = 90.0<br />

Select Winch1<br />

PolarR[3] = 0.0<br />

PolarTheta[3] = 90.0<br />

PolarR[4] = 10.0<br />

PolarTheta[4] = 90.0<br />

96<br />

w<br />

For lines and links an index of 1 means End A and an index of 2 means End B. For winches the index identifies the<br />

winch connection point.<br />

Colour data<br />

Drawing colour data items can be set through batch script in a variety of ways. The simplest is to use the pre-defined<br />

colours as follows:<br />

Select "Line Type1"<br />

PenColour = Red<br />

Select "Line Type2"<br />

PenColour = Green<br />

The full list of pre-defined colours is: Black, Maroon, Green, Olive, Navy, Purple, Teal, Gray, Silver, Red, Lime, Yellow,<br />

Blue, Fuchsia, Aqua, MoneyGreen, SkyBlue, Cream, MedGray and White.<br />

If you want more control over the colour then you can specify an RGB value as an integer. The following example has<br />

the same effect as the previous one:<br />

Select "Line Type1"<br />

PenColour = 255<br />

Select "Line Type2"<br />

PenColour = 65280<br />

Using decimal values for RGB value is impractical. Instead a neat trick is to specify the colour as a hexadecimal value<br />

by prefixing it with a $ sign as follows:<br />

Select "Line Type1"<br />

PenColour = $0000FF<br />

Select "Line Type2"<br />

PenColour = $00FF00<br />

Select "Line Type3"<br />

PenColour = $FF0000<br />

This sets the colours to red, green and blue respectively. Each pair of hex digits controls the amount of red, green<br />

and blue. So white is $FFFFFF and black is $000000. A value of $C0C0C0 gives a light grey and $808080 produces a<br />

darker grey.<br />

Fatigue Analysis data<br />

Fatigue analysis data is quite simple in the script. The only complication is that you must to select S-N and T-N<br />

curves before assigning their data.<br />

NewFatigue<br />

DamageCalculation = "Homogeneous pipe stress"<br />

AnalysisType = Rainflow<br />

ArclengthIntervalsCount = 1<br />

FromArclength[1] = 0.0<br />

ToArclength[1] = 30.0<br />

SCF[0] = 1.5<br />

SNcurveCount = 2<br />

SNcurveName[2] = ProjectSteel<br />

Select SNcurve ProjectSteel<br />

SNDataEnduranceLimit = 0.0<br />

4.2.6 Handling Script Errors<br />

As with other computer programs, <strong>OrcaFlex</strong> batch script files can easily contain errors. It is therefore wise to check<br />

your script file for errors before running it as a batch job. To check for errors in your scripts, use the "Check Files"

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!