In fact, you should avoid setting up multiple current data in batch scripts if possible: this is best done interactively on the environment form. Note that this is not the same as setting the active current. Similarly, if the environment has been selected and there is more than one current data set, then you must select one of them before specifying any current data. If the environment has been selected and there is more than one wave train, then before you can specify any wave train data you must give another select command to select the wave train. Other values only need to be specified in the following special cases. Some examples of the select and assignment commands are given in examples of setting data. must then be either the name of an object that exists in the current model or one of the reserved names 'General' (for the general data form) or 'Environment' (for the environment data form). The parameter is optional, and by default is 'object', meaning select the named object. Specify the object to which subsequent assignment commands will apply. If the optional parameter is included then the new object will be given that name. The list of possible variable data source object types can be found in the data source type tree on the variable data form. Select Edit | Add from the model browser menu to see a list of possible values for this parameter.Īlternatively variable data sources can be created by setting the parameter to "Bending stiffness", "Drag coefficient" etc. The parameter can be "Line type", "Vessel type", "Line", "Winch" etc. The new object is automatically selected which means that subsequent assignment commands apply to this new object. This command is equivalent to the fatigue analysis File | New menu item. This command makes the active model a fatigue analysis and then resets data to default values. This command is equivalent to the File | New menu item. This command makes the active model an OrcaFlex model, deletes all objects from the model and then resets data to default values. This command is equivalent to the Calculation | Reset menu item. You would normally follow this command with a Save command. This command is equivalent to the Calculation | Extend dynamic simulation menu item. In the Load/LoadData, Save/SaveData and RunStatics/RunDynamics/Run commands, if is a relative path then it is taken to be relative to the directory from which the script file was loaded.Īdds a new stage of length. yml then a text data file will be saved otherwise a binary data file will be saved. Saves the fatigue model to which should have the. When saving data, if the file extension is. If calculation results (either statics or dynamics) are available then a simulation file will be saved. Saves tabular results to an Excel workbook with the same name, but an.Saves the results to which should have the.This command is identical to RunDynamics. This will result in the most effective use of processor resources. The recommended approach is to use the batch script to generate OrcaFlex data files and then add those to the batch job list. This means that if your machine has multiple processors, those processors will not be fully utilised. The commands in a batch script are executed sequentially. We no longer recommend that you use the RunStatics and RunDynamics commands. After the file is saved the model is reset. Run dynamics for the current model and save the resulting simulation to. Perform statics for the current model and save the resulting simulation to. Opens the data from the OrcaFlex data file named. The file can be a data file, a simulation file or a fatigue analysis file. You need to put quotes round file names or other parameters that include spaces or non-alphanumeric characters. The following batch script commands are available. Some of the commands have different interpretations, depending on what type of model is active, as described below. The active model can change due to a Load/LoadData command, or following a NewModel/NewFatigue command. The active model defaults, at the start of script execution to being an OrcaFlex model. This can be either an OrcaFlex model containing vessels, lines etc., or a fatigue analysis. The script commands are executed in the context of an active model.