Beruflich Dokumente
Kultur Dokumente
For
P i p e l i n e S t u d i o De m a n d An d I n v e n t o r y An a l y s i s
E x c e l Ap p l i c a t i o n
10 March 2003
SYNOPSIS:
DISCLAIMER:
Contents
1
INTRODUCTION..............................................................................................................4
1.1 OVERVIEW ...........................................................................................................4
1.2
2
3
ABBREVIATIONS..................................................................................................4
4.2
4.3
OUTPUTS ......................................................................................................................13
5.1 DEMAND FLOW AND PRESSURE RESULTS ..................................................13
5.2
5.3
TREND.................................................................................................................14
INTRODUCTION
The Demand and Inventory Analysis Application is a Windows-based application that uses
Pipeline Studio (PLS) and Microsoft Excel to provide analysis of inventory and demand in a
specific pipeline configuration. This document provides the details of how to run the
application, what the application expects as input, and the output produced by the application.
The purpose of the application is to facilitate analysis of pipeline inventory over a 24-hour
period based on specified initial demands and flow profiles.
This tool demonstrates, through the Demand and Inventory Analysis application, how Pipeline
Studio (PLS) can be integrated with Microsoft Excel to provide an operation tool with a user
interface that is familiar to most engineers, planners and operators. Although the actual
application is immaterial, it is instructive because it demonstrates how PLS can be
embedded into a 3rd party application such as MS Excel to provide a bespoke layered
application with a simple user interface. This layered application hides the details of the
simulator, allowing the user to focus on key operational parameters such as demand profiles
and forecasts of inventory in an environment in which they feel comfortable.
This user guide walks you though using the application. However, equally valuable is the VBA
code used within Excel to manipulate the input data, run PLS, then retrieve data generated by
the simulator and present it back to the user in PLS. The VBA code is accessible from within
the DemandAnalysis.xls Excel spreadsheet.
1.1
OVERVIEW
This application uses Microsoft Excel as a front end to Energy Solutions Pipeline Studio.
The application uses a fixed pipeline topology which is specified in the PLS configuration file,
DemandAnalysis.tgw. All the relevant operational parameters for the PLS simulation are
entered through Excel worksheets. After successful completion of the PLS steady-state and
transient simulation, the results are displayed in Excel Worksheets in the form of tables and
graphs.
1.2
ABBREVIATIONS
The following abbreviations are used in this document:
PLS
Pipeline Studio
TGNET
ESI
MS
Microsoft
Scenario
Data
Initial
Demand
Pipeline Studio
Results
PLS CONFIGURATION
3.1
BASE CONFIGURATION
The PLS model used in the application is stored in the configuration file DemandAnalysis.tgw.
The network view for this configuration is shown in Figure 2.
Figure 2 A simple gas pipeline network with a supply, compressor station and
deliveries
3.1.1
APPLICATION INPUT
Input to the application is entered in two worksheets: Base flows and Demand Profile.
4.1
Input Name
Cell
Description
Case name
C2
Case Demand
C3
Compressor_01
Status
C10
Overrides
D14:D35
4.1.1
COMPRESSOR STATUS
The compressor status can be specified by selecting the value in the select list box, as shown
in the Figure 4.
4.1.2
Case Name
case_5
Case Demand
320000m3/hr
Total Manual
101000m3/hr
Total Derived
219000m3/hr
Derivation Ratio
Actual Case Demand
1.001371742
320000m3/hr
Input Name
Description
Case name
Case Demand
Total Manual
Total derived
Derivation Ratio
Actual Case
Demand
The user may override some calculated case delivery flows. This is done by entering an
override values for the delivery (cells D14:D35). The remaining case flows are then
recalculated to meet the requested case flow.
Deliveries
Overrides
Case Flow
(Demand at 8AM)
(m3/hr)
(m3/hr)
TTP_PowerPlant
41050
41000
41000.0
DNAT_Factory
18000
19000
19000.0
PlantTTP
12000
20000
20000.0
GGP_PowerPlant
9500
9513.0
METHI_PowerPlant
16000
16021.9
SRM_Refinery
14000
TATU_Fertilizer
8000
8011.0
SPC_Fertilizer
24000
24032.9
SPP_PowerPlant
12000
12016.5
ST_CompStation
18000
18024.7
MADHA_Town
10000
10013.7
SHT_Factory
6000
6008.2
ACC_Factory
12000
12016.5
CHEPP_PowerPlant
18000
18024.7
ACC_Factory2
10000
10013.7
CHETPP_PowerPlant
14000
14019.2
CHE_Factory
10000
VARAN_City
12200
12216.7
MAND_PowerPlant
17000
17023.3
8000
8011.0
BEG_BoilerPlant
14000
14019.2
SECU_City
10000
10013.7
MAYU_Town
14000
7000
14000.0
7000.0
4.1.3
4.2
Enter the Case Demand value whence the case flow value of each delivery will be
calculated.
Click Tools/ XLPLS/ Create Setpoints menu. During the processing, the status bar
displays Busy.
After converting the input data into the required PLS input file, the status bar displays
Ready
10
4.2.1
4.2.2
11
4.2.3
4.3
Enter the 24-hour profile for each delivery as a fraction of the delivery case demand
Click Tools/ XLPLS/Create Scneario menu option. During the processing, the status
bar displays Busy.
After converting the input data into the required PLS input file, the status bar displays
Ready
12
APPLICATION OUTPUTS
After successful completion of the PLS simulation, the PLS trend data is loaded back into
Excel and displayed in various formats. The results are shown in the Demand Flow &
Pressure Results, Inventory Results and Trend sheets.
5.1
13
5.2
INVENTORY RESULTS
The "Inventory Results" sheet shows graphical time series of data for the inventory of the
pipeline upstream of the compressor, the inventory of the pipeline downstream of the
compressor, the total network inventory and the compressor status (1=ON, 0=OFF).
A sample trend is shown in Figure 12.
5.3
TREND RESULTS
14
The Trend sheet allows the user to select and display any of the trend data generated by
the PLS simulation. The user can select the name of a trend item using the drop down select
list above the trend plot. The selected trend data will be displayed graphically on worksheet.
A sample trend plot is shown in Figure 13.
15