Documente Academic
Documente Profesional
Documente Cultură
Page 1 of 3
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.
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.
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
Page 2 of 3
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.
mk:@MSITStore:C:\Program%20Files\Schlumberger\Petrel%202009\Help\Petrel.chm::/xm... 1/9/2011
Page 3 of 3
mk:@MSITStore:C:\Program%20Files\Schlumberger\Petrel%202009\Help\Petrel.chm::/xm... 1/9/2011