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 />

99<br />

Automation, Text Data Files<br />

The script file has not been saved yet. You should check that the automatically generated script is as intended.<br />

Should you wish to, you can modify the script file name at this point.<br />

If there is a problem with the script you can click the Close button and correct the script table.<br />

Save button<br />

Saves the script file.<br />

Save and Run button<br />

Saves the script file and then processes it.<br />

If the script has any Run commands then <strong>OrcaFlex</strong> is loaded and the script is processed by the standard <strong>OrcaFlex</strong><br />

batch form. Otherwise the script is processed from within Excel – progress is reported on the Excel status bar.<br />

Save, Run and Submit button<br />

Saves the script file and then processes it within Excel. Each data file saved by the script is then submitted to<br />

Distributed <strong>OrcaFlex</strong> which runs and saves the simulation file.<br />

Note: The Save, Run and Submit button is only available if Distributed <strong>OrcaFlex</strong> is installed on your<br />

machine. In addition, it cannot be used if the script contains any Run commands.<br />

Multiple tables<br />

You can have multiple script tables within a workbook. To create all the batch scripts in one operation select all the<br />

script tables and then click Create Batch Scripts in the <strong>OrcaFlex</strong> menu.<br />

4.3 TEXT DATA FILES<br />

4.3.1 Examples of setting data<br />

This topic gives some examples of setting model data using the <strong>OrcaFlex</strong> Text Data file. The <strong>OrcaFlex</strong> Text Data file<br />

format is described in the Text Data Files topic and this should be read before tackling this topic.<br />

Building an entire <strong>OrcaFlex</strong> model through the Text Data file is possible but not to be recommended. The normal<br />

approach is to modify an existing model imported using the BaseFile identifier and apply incremental changes.<br />

This results in a much more compact Text Data file that can be easily generated using a scripting language or by the<br />

<strong>OrcaFlex</strong> spreadsheet. The <strong>OrcaFlex</strong> Text Data file format is not a scripting language so some Batch script command<br />

operations are not possible – for example the InvokeWizard command.<br />

The easiest way to see how data for a particular model item is represented is to create the item in <strong>OrcaFlex</strong> and then<br />

save the data file as a Text Data file. Existing objects normally need to be selected by name before modifying their<br />

data, although there are some exceptions that require specific selection identifiers and examples of these are given<br />

below.<br />

Setting simple data<br />

To set data on an object existing in the base file 'BaseCase.yml', the object must be first selected by name, here<br />

objects named 'Link1', '3D Buoy1' and 'Line1' are modified:<br />

BaseFile: BaseCase.yml<br />

Link1:<br />

UnstretchedLength: 25<br />

3D Buoy1:<br />

Mass: 4<br />

Volume: 8<br />

Height: 7.5<br />

Line1:<br />

IncludeTorsion: Yes<br />

Note: Object names and text data does not need to be enclosed in quotes, unless the text contains YAML<br />

reserved characters (eg ': ', '- ', '# ' and ', '). So the name 'Line - Upper' needs<br />

quoting but 'Line-Upper' does not.

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

Saved successfully!

Ooh no, something went wrong!