3
Basic Operations (Workflow editor) This section introduces the use of some of the basic functions of theWorkflow editor. Parent topic: Example Workflows (Workflow editor) A Simple Loop The above example takes a surface ('Flat Surface'), sets it to a constant elevation, set by a variable ('$Elevation) and makes a polygon describing the contact between that surface and another one ('Top Tarbert'). The value of the variable is then increased by 50 and the whole process is run again. The loop command controls how many times the loop will be run, which in this case is 5 times. For All Icons In command TheFor All Icons In command creates a loop which will run for each of the objects in the specified folder. The end of the loop must be defined using the End Loop command. Within the command the user specifies a variable which will be used to refer to the object during the loop. The command also holds the option of being Recursive (searching also inside any subfolders below the main "For all icons in" folder) and to only look for objects of a specified type e.g. surfaces. More For All Icons In Examples The project has Main and Sub folders which contain a mix of surfaces and polygons. The user want to act on all the surfaces so chooses Recursive and Type (by pushing a Surface into the type selection) Page 1 of 3 Basic Operations (Workflow editor) 1/9/2011 mk:@MSITStore:C:\Program%20Files\Schlumberger\Petrel%202009\Help\Petrel.chm::/xm ...

Basic Operations (Workflow Editor)

  • Upload
    mhdstat

  • View
    17

  • Download
    1

Embed Size (px)

DESCRIPTION

Workflow Editor

Citation preview

Page 1: Basic Operations (Workflow Editor)

Basic Operations (Workflow editor)

This section introduces the use of some of the basic functions of theWorkflow editor.

Parent topic: Example Workflows (Workflow editor)

A Simple Loop

The above example takes a surface ('Flat Surface'), sets it to a constant elevation, set by a variable ('$Elevation) and makesa polygon describing the contact between that surface and another one ('Top Tarbert'). The value of the variable is thenincreased by 50 and the whole process is run again. The loop command controls how many times the loop will be run,which in this case is 5 times.

For All Icons In command

TheFor All Icons In command creates a loop which will run for each of the objects in the specified folder. The end of theloop must be defined using the End Loop command. Within the command the user specifies a variable which will be usedto refer to the object during the loop. The command also holds the option of being Recursive (searching also inside anysubfolders below the main "For all icons in" folder) and to only look for objects of a specified type e.g. surfaces.

More For All Icons In Examples

The project has Main and Sub folders which contain a mix of surfaces and polygons.

The user want to act on all the surfaces so chooses Recursive and Type (by pushing a Surface into the type selection)

Page 1 of 3Basic Operations (Workflow editor)

1/9/2011mk:@MSITStore:C:\Program%20Files\Schlumberger\Petrel%202009\Help\Petrel.chm::/xm...

Page 2: Basic Operations (Workflow Editor)

Result is a clean selection of just the surfaces.

Managing output data

In the above example, fault polygons are used as input to generate surfaces. The New folder command generates newfolders in the input tab at the start of the workflow. Further down the workflow, the Move command is used to place theoutput of the fault surface in the folder created previously. In the second loop, the Dip angle of the fault surface iscalculated and a surface generated. The second Move command places the dip surfaces to a second folder. RemoveContent can be used to remove the content of an existing folder, and the Run command is used to run another previouslydefined workflow.

Looping through folders

In many cases it can be useful to loop through a list of objects to find the one that is required in a workflow. A typicalexample is that you have two folders each containing ten surfaces, and you want to compare surface 1 in the first folderwith surface 1 in the second. Alternatively, you may have a list of points with attributes and you need to extract the 3rdattribute from each point set as input to Make Surface.

This can be achieved by looping through the second list using the For All Icons In command and counting the iterations.When the required number of iterations has been reached, a variable can be assigned to the current object so that it isretained.

Page 2 of 3Basic Operations (Workflow editor)

1/9/2011mk:@MSITStore:C:\Program%20Files\Schlumberger\Petrel%202009\Help\Petrel.chm::/xm...

Page 3: Basic Operations (Workflow Editor)

Page 3 of 3Basic Operations (Workflow editor)

1/9/2011mk:@MSITStore:C:\Program%20Files\Schlumberger\Petrel%202009\Help\Petrel.chm::/xm...