01.12.2012 Views

OrcaFlex Manual - Orcina

OrcaFlex Manual - Orcina

OrcaFlex Manual - Orcina

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

w<br />

4 AUTOMATION<br />

4.1 INTRODUCTION<br />

<strong>OrcaFlex</strong> provides several important facilities for automating and post-processing work:<br />

85<br />

Automation, Introduction<br />

� <strong>OrcaFlex</strong> is supplied with a special Excel spreadsheet which enables you to automate the extraction of<br />

simulation results into your own spreadsheet. You can then use the normal Excel calculation facilities to do your<br />

own customised post-processing and graphing.<br />

� The Batch Processing facility enables you to run a set of simulations in unattended mode, for example as an<br />

overnight job. The simulations can either be of pre-prepared data files, or else can be specified by a batch script<br />

file that specifies the simulation as variations on a base data file. The <strong>OrcaFlex</strong> Spreadsheet mentioned above<br />

also has facilities for automating the production of batch script files and text data files.<br />

� <strong>OrcaFlex</strong> includes a well-documented programming interface called OrcFxAPI (short for <strong>OrcaFlex</strong> Application<br />

Program Interface). See the OrcFxAPI help file for details. OrcFxAPI is a Windows dynamic link library (DLL)<br />

that is installed when you install <strong>OrcaFlex</strong>, and which provides facilities for setting data, calculating static<br />

positions and extracting results from those calculations or from pre-run simulation files. For example you can<br />

write programs to automate post-processing or that use <strong>OrcaFlex</strong> as a 'statics calculation engine'. One important<br />

example application of this is for real-time monitoring of pipes, moorings etc. For further information or to<br />

discuss possible applications of OrcFxAPI, please contact <strong>Orcina</strong>.<br />

4.2 BATCH PROCESSING<br />

4.2.1 Introduction<br />

Simulations, script files, post processing spreadsheets and fatigue analyses can all be run in unattended mode, by<br />

using the Calculation | Batch Processing menu item. This command opens a form that allows you to set up a list of<br />

jobs that are to be run. The list can include any number and mixture of the following types of job:<br />

1. Static analysis of pre-prepared <strong>OrcaFlex</strong> data files (.dat or .yml). <strong>OrcaFlex</strong> opens the data file, performs the static<br />

analysis and then saves the results in a simulation file with the same name as the data file, but with a .sim<br />

extension.<br />

2. Dynamic analysis of pre-prepared <strong>OrcaFlex</strong> data files (.dat or .yml). <strong>OrcaFlex</strong> opens the data file, performs the<br />

static analysis, runs the dynamic simulation and then saves the results in a simulation file with the same name<br />

as the data file, but with a .sim extension.<br />

3. Partially-run <strong>OrcaFlex</strong> simulation files (.sim). <strong>OrcaFlex</strong> opens the simulation file, finishes the dynamic<br />

simulation and then saves the completed simulation, overwriting the original file.<br />

4. A batch script file (.txt). This is a text file which contains <strong>OrcaFlex</strong> script commands. <strong>OrcaFlex</strong> opens the script<br />

file and obeys the commands in turn. The most common use of script files is to perform a series of systematic<br />

variations on a base data file.<br />

5. A fatigue analysis file (.ftg or .yml). <strong>OrcaFlex</strong> performs the fatigue analysis and saves the results to a binary .ftg<br />

file. In addition the results tables are saved to an .xls spreadsheet.<br />

6. An <strong>OrcaFlex</strong> Spreadsheet (.xls or .xlsx). <strong>OrcaFlex</strong> will process all Instructions sheets in the Excel workbook. Note<br />

that if the spreadsheet's "Contains Dependencies" options is checked (or the spreadsheet is pre <strong>OrcaFlex</strong> v9.4)<br />

then the workbook will be processes as a single job using a single thread. If it isn’t checked, then each<br />

instructions sheet will be broken down into multiple load cases which are individually added to the batch and<br />

may be processed simultaneously.<br />

Note: If you wish to use Excel for any reason while <strong>OrcaFlex</strong> is processing spreadsheets within a batch it<br />

is important that you open Excel first, then open the file you wish to work on. The reason for this is<br />

that when you double click an Excel file, Windows will try to use the copy of Excel <strong>OrcaFlex</strong> has<br />

claimed, resulting in unpredictable failures.<br />

When adding data files (.dat or .yml) you need to specify whether static or dynamic analysis is to be performed.<br />

This choice is made from the Add Files file dialogue window, or from the popup menu.<br />

<strong>OrcaFlex</strong> can auto-save partial completed dynamic simulations to file at regular intervals during the batch job. This<br />

is useful if your computer is prone to failure (for example because of overnight power failures) since the part-run<br />

simulation file can be loaded and continued, rather than having to re-run the whole simulation from scratch.

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

Saved successfully!

Ooh no, something went wrong!