Skip to main content

Configuration Application Example

Vapor Liquid Separator

The set up of a Gas Meter Element starts in the "Thermodynamics - Components Configuration" window.![Figure 1268: Components Configuration - Example](/img/docs/configuration-application-example_Components Configuration_Example.png)

The set up within a Gas Meter Element is as follows:

  1. Configure the ComponentTable Attribute with Value Type Anything.
  2. For Data Reference, select the Thermodynamics extension.
  3. For the Component Table Configuration, select the Settings option.
  4. In the Available Components list, select the following components and add them to the Selected Components list: (As shown in the example in Figure 1268.)
  • WATER

  • PROPYLENE

  • PROPANE

  • n-BUTANE

  • METHANE

  • HYDROGEN

  • ETHYLENE

  • ETHANE

  • ACETYLENE

    A Child Element, ComponentTable, is created and displayed in the Element Properties window.

  1. Click the Attributes tab, if not already open, to access the Attributes list.

  2. In the Value column, assign the values to each component:

    Note: These values may be measured in PI points, be the results of formula calculations, be fixed values, or be incoming from another data source. If they do not add up to 1 or 100, the extension internally normalizes the values as shown in Figure 1269\ (below).Figure 1269: Element Properties - Normalizing Values

  3. Assign a temperature value to the 'Temperature' attribute.

  4. Assign a pressure value to the 'Pressure' attribute. Remember to always convert relative pressure values into absolute values.

  5. Configure the ComponentTable Attribute with Value Type Anything.

  6. For Data Reference, select the Thermodynamics extension.

  7. For the Component Table Configuration, select the Settings option

  8. Open the Stream Flash Calculation window.Figure 1270: Stream Flash Calculation - Example

  9. In the Stream Flash Calculation window:

  10. Click the Composition Element down arrow and select the Element you want.

  11. Click the Composition Attribute down arrow and select the Attribute you want.

  12. Click the EoS Method down arrow and select the equation of state method you want (e.g. PR).

  13. Click the BIC Initialization down arrow and select Based on Equation of State Method.

  14. Click the Flash Type down arrow and select Flash (given temperature and pressure).

  15. Click the Internal Phase down arrow and select Mixed Phase (Default).

  16. Click the Temperature down arrow and select an Attribute with a temperature based UOM.

  17. Click the Pressure down arrow and select an Attribute with an absolute pressure based UOM.

  18. Press OK.

    The equilibrium calculation is performed and the results are encapsulated in the Pimsoft.Sigmafine.DataReference.Stream object. You can retrieve or calculate properties once this object has been defined.

  19. To retrieve the vapor composition, define a new data table attribute (e.g. VaporComponentTable) and assign the ThermoPackage extension.

  20. Select the Stream Property Retriever Configuration option.

  21. In the Stream Property Retriever Configuration window:

  22. Click the Flash Attribute down arrow and select Flash.

  23. Click the Property Retrieved down arrow and select Component Table.

  24. Click the Internal Phase down arrow and select Vapor Only.

  25. Click OK

    The data table results display like this:Figure 1271: Data Table Results

    You can then calculate the enthalpy of the vapor phase to provide information for the energy balance.

  26. To calculate the enthalpy of the vapor phase:

  27. Select the Thermodynamics extension as the Data Reference for the Attribute MeasuredSpecificEnergy.

  28. Click the Settings button for that Attribute and select Calculations Configuration from the options menu.

  29. Click Next.

    The Calculation Configuration window opens.Figure 1272: Calculation Configuration - Example

  30. In the Calculation Configuration window:

  31. Click the Calculation Type down arrow and select Enthalpy of Mixture.

  32. Click the Flash Attribute down arrow and select i_StreamFlashCalculation.

  33. Click the Phase down arrow and select Vapor.

  34. Click OK.

    The results display as:Figure 1273: Enthalpy Calculation Results