0% found this document useful (0 votes)
294 views3 pages

Petrel Workflow Editor Basics

This document introduces basic operations in the workflow editor, including looping commands. It describes using a simple loop to set the elevation of a surface multiple times as a variable increases by 50 each iteration. The For All Icons In command is used to loop through objects in a folder, specifying a variable to refer to each object. Managing output data by using commands like New Folder, Move, and Remove Content is also covered. Looping through folders to compare or extract attributes from corresponding objects in different lists can be achieved by counting iterations with For All Icons In.

Uploaded by

mhdstat
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
294 views3 pages

Petrel Workflow Editor Basics

This document introduces basic operations in the workflow editor, including looping commands. It describes using a simple loop to set the elevation of a surface multiple times as a variable increases by 50 each iteration. The For All Icons In command is used to loop through objects in a folder, specifying a variable to refer to each object. Managing output data by using commands like New Folder, Move, and Remove Content is also covered. Looping through folders to compare or extract attributes from corresponding objects in different lists can be achieved by counting iterations with For All Icons In.

Uploaded by

mhdstat
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Basic Operations (Workflow editor)

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\[Link]::/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\[Link]::/xm... 1/9/2011

Basic Operations (Workflow editor)

Page 3 of 3

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

Common questions

Powered by AI

Using a loop command with a variable is crucial in automating repetitive tasks efficiently. In the workflow process, a loop iterates a set number of times, and a variable can dynamically change the conditions or inputs in each iteration. For example, incrementing a surface's elevation by 50 in each loop iteration automates the manipulation of data across multiple runs, ensuring consistency and saving time compared to manual operations .

Challenges in counting iterations within loops include miscounting due to dynamic changes in datasets or unexpected errors during execution, potentially leading to inaccurate loop results or process failures. These challenges can be mitigated by implementing robust error-catching mechanisms and validation checks that ensure loop counters are accurately maintained and adjusted according to real-time data conditions. Additionally, employing logging and monitoring techniques can help track loop progress and diagnose issues as they arise, thereby ensuring reliable loop execution .

The 'For All Icons In' command enhances looping capabilities by allowing the workflow to iterate through each object in a specified folder. It enables recursive search within subfolders and can filter objects by type, such as selecting only surfaces. This makes it valuable for managing workflows that require operations on multiple objects, such as selecting all surfaces in a project. Furthermore, its ability to assign a variable to each object during the loop facilitates complex operations like comparing or generating new data based on existing objects .

'Make Surface' can be utilized effectively within a loop to process multiple datasets simultaneously, significantly enhancing workflow productivity. By iterating over a list of points and utilizing attributes as inputs, new surfaces can be systematically generated with each loop iteration ensuring uniform application of data transformations. This approach not only accelerates the creation of new data forms but also maintains high consistency levels across various datasets, which is essential for scalable and robust workflow solutions .

Not using the recursive option in the 'For All Icons In' command can limit the ability to comprehensively search and process objects that reside in subfolders. In complex folder structures where relevant objects may be hierarchically nested, failing to apply a recursive search can result in incomplete data processing and potentially missing out on significant objects that need to be acted upon. It reduces the command's effectiveness in handling large, intricate datasets that require a uniform operation across all instances, potentially leading to operational inefficiencies and increased manual workload .

Defining the end of a loop explicitly is important as it ensures that the workflow operation terminates as intended. Without a defined end, loops may run indefinitely, leading to resource wastage or system crashes. It establishes clear operational boundaries, preventing errors and ensuring that the workflow proceeds smoothly to the next steps or iterations, leading to more predictable and manageable workflow activities .

The 'Remove Content' command is beneficial when there is a need to clear outdated or irrelevant data from a folder before new data is generated. This is particularly useful when dealing with dynamic datasets where the output data changes frequently. Removing content ensures that only current and relevant data is present, which aids in preventing clutter and potential confusion in data management, especially in complex workflows involving multiple data transformations .

Variable assignments play a crucial role in retaining information within loops, allowing workflows to maintain context across iterations. By assigning variables to current objects, a workflow can dynamically store and reference data, which is essential for processes that require past results or conditions to influence future operations. This capability facilitates complex logic operations, such as retaining and comparing attributes, leading to more intelligent and adaptable workflow execution .

Loops enable efficient data comparison by iterating over datasets systematically, such as comparing corresponding objects in two separate folders. This approach automates the process of matching and evaluating data pairs—like comparing surface 1 from one folder with surface 1 in another—allowing for consistent and repeatable operations that minimize errors common in manual comparison .

The 'New Folder' and 'Move' commands significantly enhance organizational efficiency in workflows by creating a structured environment for data management. 'New Folder' allows the creation of directories to categorize data outputs, while 'Move' places generated data into these directories. This not only helps in organizing outputs effectively—such as placing fault surfaces and dip angle calculations in separate folders—but also improves the ability to track data provenance and retrieve results quickly during iterative processes or subsequent analyses .

Basic Operations (Workflow editor)
This section introduces the use of some of the basic functions of theWorkflow editor.
Pare
Result is a clean selection of just the surfaces.
Managing output data
In the above example, fault polygons are used as input
Page 3 of 3
Basic Operations (Workflow editor)
1/9/2011
mk:@MSITStore:C: (mailto:mk:@MSITStore:C:)Program%20FilesSchlumberg

You might also like