Create Composition Table
The Composition Table is a PI AF data table listing the name of the chemical specie and its related molar fraction.
Follow the steps below to create and associate the Composition Table for the Thermodynamics extension with your model:
Open PI System Explorer
and connect to your database.
Verify that the Thermodynamics templates are already imported to your database:
In the PI System Explorer, select the Library tab.
Expand the Element Templates list.
In the PI System Explorer, select the Elements tab.
Using the SF_Thermo_Flash template, add a New Element
to your database.
Configure the Component Table:
Select the Attributes tab.
Select the Thermodynamics extension for the i_CompositionTable data reference.
Click the Settings button.
Select Component Table Configuration (Custom) and click Next.
Follow the steps found under Component Table Configuration (Custom) to configure the components table properly.
Expand the SF_Thermo_Flash Element to see the child element i_CompositionTable.
Click on the child Element to select it.
Select the Attributes tab and then:
Set the preferred Value for each component entry in the i_CompositionTable.
Check in your progress.
Now that your table is configured, you can create a new Element reference on your model:
Select the Elements tab.
From the List of Elements, right-click your Model and select New > Add Element Reference....
Add the information for the new element:
Click the ellipsis (...) button associated with a Single Element selection.
Select the configured SF_Thermo_Flash Element from the pop up list.
Ensure that the reference type isWeak Reference.
Check in your progress.
Refresh the PI System Explorer.
Your Component Table is now fully configured and usable by the model.
For specific configuration approaches, please read through the following list:
Create Custom Table
In your SF_Thermo_Flash element:
- Select the i_CompositionTable attribute.
- Ensure that the attribute’s Data Reference is Thermodynamics Package.
- Click Settings.
- Select Component Table Configuration (Custom).
- Click Next.
- Using the Component Configuration window, customize the configuration.
Create Table From Upstream Composition Tables
In your SF_Thermo_Flash element:
- Select the i_CompositionTable attribute.
- Ensure that the attribute’s Data Reference is Thermodynamics Package.
- Click Settings.
- Select Component Table Configuration (Ports).
- Click Next.
- Using the Component Configuration window, customize the configuration.
Create Table from Stream Properties
In your SF_Thermo_Meter-Flow element:
Select the i_CompositionTable attribute.
Ensure that the attribute’s Data Reference is Thermodynamics Package.
Click Settings.
Select Stream Property Retriever Configuration.
Click Next.
Using the Stream Property Retriever Configuration window, customize the configuration.
Once configured, the Attribute outputs a DataTable object. See below to view a DataTable in the SF System Explorer.
View a DataTable in SF System Explorer
To view a DataTable in SF System Explorer:
Click the attribute's Value column.
An ellipsis
button appears next to the attribute.
Click the ellipsis
button to open the table in a new window.