Anda di halaman 1dari 3

Basic Operations (Workflow editor)

Page 1 of 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)

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

Basic Operations (Workflow editor)

Page 2 of 3

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 new
folders in the input tab at the start of the workflow. Further down the workflow, the Move command is used to place the
output of the fault surface in the folder created previously. In the second loop, the Dip angle of the fault surface is
calculated and a surface generated. The second Move command places the dip surfaces to a second folder. Remove
Content can be used to remove the content of an existing folder, and the Run command is used to run another previously
defined 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 typical
example is that you have two folders each containing ten surfaces, and you want to compare surface 1 in the first folder
with surface 1 in the second. Alternatively, you may have a list of points with attributes and you need to extract the 3
rdattribute 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 is
retained.

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

Basic Operations (Workflow editor)

Page 3 of 3

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

Anda mungkin juga menyukai