Glossary

Click a term below to jump to its definition, or browse the groups.


Server

Adaptive Raw

The Adaptive Raw Sample Method allows a very close approximation of raw data to be displayed by consuming applications, such as the Explorer Trend, at a much faster rate than was previously possible using raw data.

When analyzing data in fine detail, we often want to get the most granular data possible onto the trend. Traditionally, using the Raw sample method we could end up with millions of points of data being returned, with no way of actually showing all of these points on a screen with a resolution of 1920 pixels. Transferring all of those data points back to the web browser would also take a long time.

Adaptive Raw is an algorithm implemented in P2 Server’s calculation engine that is designed to a trace on the Trend that is virtually identical in appearance, but which renders much faster. When using Adaptive Raw, P2 Server does the work of automatically selecting the sample interval to return the most detailed data possible.

The Adaptive Raw sample method works by sending all Raw data points from the historian to P2 Server, and then determining the number of points. If there are less than 2000 points then the raw data is returned, otherwise the adaptive raw algorithm is used to return 2000 points. Essentially, the Adaptive Raw sample method chooses the best data for you. The processing returns a trace that is a very accurate representation of a traditional Raw trend, but with far less data being actually transferred to the trend.

Using this method, we have been able to open up the time ranges available for trending of data using Adaptive Raw, giving an almost perfect copy of a raw Trend, but much faster.

Related: Adaptive Raw Sample Method for a Trend

↑ Back to top

Asset Model

Asset modelling makes use of hierarchies, entities, templates, and attributes to give you a relevant “big picture” of your entire system. 

The Asset Model (previously called the Plant Model) provides a hierarchical way to navigate around P2 Explorer, using the hierarchy navigator. Information is provided in a tree structure, which displays hierarchies and can be designed for any purpose such as a geographic hierarchy, an asset register, or a plant view. 

Related: Hierarchies, Entities, Templates, Attributes, Hierarchy Navigation

↑ Back to top

Attribute

Where an entity defines a real world or conceptual object, it is the attributes of an entity that describe the characteristics of that object. It’s these characteristics, or attributes, that are associated with data that we generally want to model.

For example, an organisation may have a number of wells. Each well has a number of characteristics, such as THP. These characteristics are called attributes, and they are generally the thing that we are interested in finding detailed information about so that we can optimise production.

In P2 Explorer, you can recognise an attribute through its syntax:

Entity:Attribute 

For example:

Well 1:Flow Rate

We can then break these attributes down even further to gain an insight into different aspects of that type of data, called attribute values.  

Related: Attributes 

↑ Back to top

Attribute definition

An attribute definition defines which attributes are connected to each template. 

When defining the attribute, we are telling the system what type of data will be connected to it (time series or tabular), as well as what template and attribute group it will belong to.

Here is an example of an attribute definition, with the name of the associated attribute groups and templates:

Attribute Definition Name Data Type Template Definition Attribute Group Description
THP TimeSeries Oil Producing Well Operating Data Tubing Head Pressure of an oil well
Oil Flowrate TimeSeries Oil Producing Well Production Data The flow rate of oil from the well
THP TimeSeries Gas Producing Well Operating Data Tubing Head Pressure of a gas well
Gas Flowrate TimeSeries Gas Producing Well Production Data The flow rate of gas from the well

Related: Attributes

↑ Back to top

Attribute value

← Return to Glossary

The attribute value reflects the specific data of an entity's attribute, such as flow rate.

For example, if we look at the Flow Rate attribute, we may have a number of different sources of this same data, such as Actual Value (from a historian), Theoretical Value (from a simulation), and Planned Value (from a forecasting system). Each of these attribute values can be associated with that attribute, creating a much more diverse view of your data.

The most common use of attribute values is to assign historian tags to the values. This allows us to create an asset model, where the users no longer need to remember long and complicated tag names. We can also store things like calculations, strings, and numbers to attribute values.

In P2 Explorer, you can recognise an attribute value through its syntax:

Attribute!AttributeValue 

For example:

Flow Rate!Actual

 

Related: Attributes 

↑ Back to top

Attribute value definition

The attribute value definition defines the structure of an attribute. 

  • It associates the attribute with the attribute value.
  • In cases where an attribute has more than one attribute value, it defines the default attribute value associated with the attribute. This is important because if a data fetch is requested for the Entity:Attribute, and no attribute value has been supplied, then the system will use the default value. 

The complete syntax for an attribute value definition, including the entity, is:

Entity:Attribute!AttributeValue

For example:

Well 1:Flow Rate!Actual

Related: Attributes 

↑ Back to top

Context

A comment’s context is some extra information that is added to the comment by a consuming application, such as P2 Explorer, and is used in a way that makes sense to that application.

For example, in P2 Explorer, the context is determined by the page designer. In the case of the comments button component, all comments entered via that component on a page has the context as whatever is decided by the page designer. To illustrate, suppose the comments on a page all have the context of “Oil Report”. Explorer can apply filtering to all the comments in the system to only show comments relevant to the current Explorer page. 

Taking this a step further, a page designer can use the same context for the same entity on a completely different page. When a comment is applied to that entity, users will see all comments for that entity and context (e.g. Oil Report), even though they are displayed on different pages.

Related: Comments

↑ Back to top

Data format

P2 Server fetches data from external systems and, depending on the adaptor being used, the data is returned in one of two formats: time series or tabular.

Time series: A sequence of named data points which typically contains consecutive measurements over a period of time.

Tabular: Contains data points that can be represented using rows and columns.

When you are defining an attribute, one of the things you need to define is the format of the data returned by an attribute. 

P2 Server uses this information in a number of different areas, to work out what operations it can do on the data being returned.

Related: Data formats and data types

↑ Back to top

Data type

In P2 Server, the items used to configure the system and the data returned from the system, all have a specific data type that is used. We use a specific data type, rather than just treating everything as a string, so that we can be smarter with the data. 

Data types are especially important when defining datasources and attributes. These are some of the different data types that you will encounter:

  • Boolean – has two values denoting true or false.
  • DateTime – a structure that represents the date and time in UTC.
  • Decimal – a number written in decimal notation.
  • Duration – a period of time.
  • Integer – a whole number that can be positive, negative, or zero.
  • String – a sequence of characters.
  • EncryptedString – a sequence of characters that has been encrypted.
  • Tag – a value from a time series datasource.

Related: Data formats and data types

↑ Back to top

Dataset

When used in P2 Server, dataset refers to a type of datasource that returns tabular data, and is specified during the configuration of that datasource.

In P2 Explorer, a dataset refers to an SQL query that has been created for a dataset datasource. This query returns data in a tabular format, which can be added to a page so that components can use the data for visualisation purposes.

dataset-explorer-gloss

Adding a dataset to a page in P2 Explorer

dataset-server-gloss

Datasets that have been added to a datasource in P2 Server, and are available for adding to P2 Explorer

 

Related: Creating a Dataset Datasource, Data Formats and Data Types, How to Write a Dataset Query

↑ Back to top

Matrix data

See: Tabular data

↑ Back to top

PARAM

PARAM and PARAMS are P2 Server keywords, used for passing a single parameter (PARAM), or a collection of parameters (PARAMS) to a dataset query.

The PARAM/PARAMS keywords are used in conjunction with their data type, so that P2 Server can replace this with the relevant database syntax (for example, SQL Server syntax).

Within the query, parameters are used as variables within the ‘Where’ clause, thus affecting the query results.

Here is an example of the two PARAM keyword variations, used with their datatypes, in a dataset query:

Select Sum(DowntimeHours) as SumDowntimeHours, DowntimeReason
From SampleData
Where StartDate Between PARAM(StartDate, datetime) and PARAM(EndDate, datetime)
And Entity in (PARAMS(EntitiesList, entity))
Group by DowntimeReason

The PARAM and PARAMS used in a dataset query appear as options in P2 Explorer, in the data selector under Dataset Parameters.

Related: How to Write a Dataset Query, Data Formats and Data Types

↑ Back to top

Plant Model

See: Asset Model

↑ Back to top

Raw

The Raw Sample Method returns unprocessed raw data from the Historian.

If Raw is the selected Sample Method in an Explorer Trend, the time setting becomes Duration and the duration is selected as 8 hours. The limit of 8 hours, which can be updated in Explorer's web.config file (MaximumRawDuration), is there to restrict the amount of raw data points required for this method.

An alternative method to use for a longer period is Adaptive Raw.

Related: Changing the Trend Control Selections

↑ Back to top

Relational data

See: Tabular data

↑ Back to top

System identifier

One of the more advanced, but very useful, features of a tabular datasource in P2 Server is a concept known as a System Identifier.  This enables P2 Server to translate an entity name in P2 Server, to the equivalent name in each of the source systems.  

For example, say we have an entity in P2 Server, called Well_1.  This same well may be known as W1 in P2 Production and Well1 in Qbyte.  Since these are different names, how can we tie these all back together?  In P2 Server we can create a mapping between an entity, and an equivalent name in each datasource (so we can have one mapping for each datasource).

When you request data for Well_1, from the P2 Production datasource, P2 Server will substitute the entity name Well_1 with W1 in the SQL statement being executed in the dataset.  When the data is returned, P2 Server automatically adds an extra column to the returned data, with the original entity name included, completing the conversion in both directions.

Related: Datasources and Adaptors

↑ Back to top

Tabular data

Tabular data contains data points that can be represented using rows and columns. This data is often represented in charts such as bar charts, or as a pivot table on a page.

Here is an example of some data that could be returned in tabular form:

Name Age Height Weight Colour
Jerry 23 165 61 Green
Alex 36 172 69 Blue
Sam 42 184 75 Grey

Tabular data is obtained from Oracle or SQL Server, and requires a dataset datasource.

Important Note: If your tabular data has timestamp information, you have another option. We can convert it into time series data by using the Relational Adaptor. This allows you to convert the data that you have in an Oracle or SQL Server database into a time series data stream, as you would get if you were connected to a PI or PHD historian.

Related: Data formats and data types 

↑ Back to top

Template

A template in P2 Server is a way of defining the attributes of an entity, where an entity is a real world object (such as a pump) or a conceptual object (such as an area).

For example, an organisation may have a number of wells. Some wells produce oil while other wells produce gas. Instinctively, we can understand that oil producing wells share a number of characteristics that we want to model, whereas gas producing wells have a different set of characteristics that we care about.

The grouping of characteristics of a well is called a “template”. In the above example, we have an Oil Producing Well Template and a Gas Producing Well Template.

All entities that are assigned a template take on the attributes of that template. For example, all Oil Producing Well templates will have attributes like Tubing Head Pressure, Tubing Head Temperature, and Choke Position; whereas Water Injection Wells might have Injection Pressure, Annulus Pressure, and Water Flowrate.

Note that in common usage the meaning of template may change, depending on our frame of reference:

  • When we talk about a template in reference to a particular entity, then we are normally referring to the template instance.
  • When we otherwise talk about a template, then we are normally referring to the template definition.

Related: Templates 

↑ Back to top

Template definition

A Template Definition defines the template name, the group it belongs to, and the associated attributes. Each template is only defined once in the system. 

Template Definition

Template Definition as shown in P2 Server Management Studio

Related: Templates 

↑ Back to top

Template instance

Templates are assigned to an entity for a period of time, so an entity can have multiple templates assigned to it over its lifetime. When a template is assigned to an entity for a period of time, this is known as a template instance.

For example, if we have a well named Hunter, it may now be an oil producing well, but in the future when it stops producing oil, it may be converted into a water injection well. The system stores the time of this transition so it knows the period of time in the past where the well was an Oil Producer and when it became a Water Injector.

In the example below, before 2016 the Hunter well has attributes that relate to an oil producing well (e.g. Oil Production). After 2016, Hunter will change to a water injection well and the attributes that we are interested in will be different (e.g. Water Consumption). 

Note that a Start Time or End Time of NULL indicates that the template applies for all of time, which would be the most common start and end times in the system for templates. Items would normally only have a primary start or primary end time when an entity transitions from one type to another, such as from an Oil Producer to a Water Injector.

An example of a template instance in P2 Server Management Studio

Related: Templates 

↑ Back to top

Templated Calculation

A Templated Calculation in P2 Explorer refers to a calculation that uses certain keywords or functions to allow the same calculation to be used to evaluate different entities.

The following keywords and functions are commonly used to create Templated Calculations:

For example, a calculation for evaluating the maximum pressure of an entity may be the same across all or many entities in the system. Rather than creating a calculation for each entity, you would only have to create one templated calculation that could be reused across multiple entities.

Templated calculations are mostly commonly used for calculating an attribute value on a template. 

Related: Calculations, Creating a Calculation, Creating Templates and Attributes

↑ Back to top

Time series data

Time series data is a sequence of named data points which typically contains consecutive measurements over a period of time. Every data point in time series data has an associated timestamp, which records the date and time of the measurement.

In P2 Server, each of these named data points are referred to as tags.

Time series data is used in pages and calculations, but is also often represented in a trend, which makes it easier to find and identify patterns over time for analysis and forecasting.

Time series data is obtained from sources such as data historians, and requires a tag datasource.

Related: Data Formats and Data Types

↑ Back to top


Explorer

Components

In P2 Explorer you can add components to a page in order to create dashboards, mimics, and other types of pages. 

Components that are considered 'shapes' include:  Tank, Gauge, Temperature Meter, Pressure Meter, Level Meter, Simple Line, Status Indicator.

Although you cannot create your own shape, you can imitate one by using the Image component.

The components in Explorer Studio are organised into logical groups, to make them easy to find. These include charts, tables, display widgets, time pickers, selection controls, hierarchies, and layouts.

Related: Components, Can I make my own shapes?

↑ Back to top

Shapes

See: Components

↑ Back to top

Snapshots

In P2 Explorer, you can take a "snapshot" of a page or trend.

A snapshot allows you to save the current user selections of a page or trend and allows them to be retrieved at a later date.

For example, you may elect to save a snapshot of a page containing a pivot table, for a selected month and with particular columns selected.

This is useful if, for example, you want to use a page but require different preset selections, or for producing a set of monthly reports using the data on a particular page.

To create a snapshot, open a  page or trend and then click the snapshot snapshot-icon-35 icon on the ribbon:

To open a snapshot, open a workspace, click the preview previewicon icon for the page or trend, and then click the snapshot you want to open. You can also open a snapshot from the list displayed in My Environment.

Related: Snapshots

↑ Back to top

Trend Zoom

The trend zoom function allows you to view a close-up of trace lines in a selected area of the trace window.

You can zoom progressively until you have the appropriate zoom level, and you can also undo and redo zoom levels.

Read more: Trend Zoom

↑ Back to top

Also see: Adaptive Raw, Asset Model, Context, Dataset, Raw

Comments are closed