Professional Documents
Culture Documents
Using this Tutorial ................................................................................................................................................................................ 1 Part I - Build a Basic Case ............................................................................................................................................................ 2 Step 1: Define a project ................................................................................................................................................................... 3 Step 2: Define a case ....................................................................................................................................................................... 4 Step 3: Case Definition .................................................................................................................................................................... 5 Step 4: Library ...................................................................................................................................................................................... 6 Step 5: Network Component .......................................................................................................................................................... 8 Step 6: Geometry ............................................................................................................................................................................. 11 Step 7: Heattransfer ....................................................................................................................................................................... 14 Step 8: Source .................................................................................................................................................................................. 15 Step 9: Output ................................................................................................................................................................................... 17 Step 10: Run ...................................................................................................................................................................................... 18 Part II - Viewing Results .............................................................................................................................................................. 19 Set Default Units .............................................................................................................................................................................. 20 View Trend Plot ................................................................................................................................................................................ 21 Using Templates ............................................................................................................................................................................... 22 View Profile Plot ............................................................................................................................................................................... 23 Network Plot ....................................................................................................................................................................................... 24 Export data ......................................................................................................................................................................................... 25 Tabulate Data .................................................................................................................................................................................... 26 Part III - Additional Keywords to Basic Case .............................................................................................................. 27 Process Equipment ......................................................................................................................................................................... 28 Restart .................................................................................................................................................................................................. 29 Slug Tracking ..................................................................................................................................................................................... 30 Part IV - Options ................................................................................................................................................................................. 31 Change OLGA executable ........................................................................................................................................................... 32 Run Project ......................................................................................................................................................................................... 33 Part V - Parametric Studies ...................................................................................................................................................... 34 Select parameters ........................................................................................................................................................................... 35 Set Parameter values .................................................................................................................................................................... 36 Matrix .................................................................................................................................................................................................... 37 View Parametric study results .................................................................................................................................................... 39
1 / 40
2 / 40
2. If you want to save in a different folder, locate and open/create the folder 3. In the File name box, type a name for the project 4. Click Save
3 / 40
3. In the Name box, enter the name of the case. 4. Click Save The new case SampleCase is now part of the project SampleProject that was defined in Step 1.
4 / 40
4. Click on CASE 5. In the Properties dialog, add information for the case using the keys AUTHOR, DATE, INFO, PROJECT, and TITLE.
5 / 40
Step 4: Library
We need to define a pipe wall made from different types of materials. Both WALL and MATERIAL belong to the Library group. The following steps show how to define the MATERIAL keywords: 1. Go to the Model View. 2. If SampleCase is not expanded, expand it. 3. Right click on Library and select Add > MATERIAL
5. To make a copy of this material, click on MATERIAL : STEEL in the Model View. 6. Press Ctrl + c. 7. Press Ctrl + v. 8. In the Properties dialog, set the MATERIAL keys of the copy to:
6 / 40
7 / 40
2. Click on NODE. 3. Drag and drop the NODE onto the canvas (hold left mouse button down while moving the mouse onto the canvas, let go). 4. Repeat step 2 and 3. 5. Click on the Fit Window button on the Toolbar.
6. Click on NODE_0. 7. In the Properties dialog, change LABEL and TYPE as shown below.
8 / 40
8. Click on NODE_1. 9. In the Properties dialog, change the NODE keys as shown below.
9 / 40
10 / 40
Step 6: Geometry
The Flowpath that we added in Step 5 contains a default GEOMETRY. We are now going to modify GEOMETRY. 1. Right click on PIPELINE on the canvas. 2. Choose Properties, the Geometry Editor is opened.
3. Choose the table representation of GEOMETRY-1 (second tab, also marked in yellow). 4. Select WALL-1 for PIPE-1.
5. Right click on PIPE-1, select Insert After. 6. Repeat step 5 until you have five pipes. 7. Choose Reset Pipe Labels on the Tools menu. 8. Type in the following Lengths and Elevations for PIPE-2 to PIPE-5:
11 / 40
10. Click OK. 11. Copy the PIPE-1's Diameter, Roughness, and Wall to the other pipes. This can be done in the following way: a. Select PIPE-1's Diameter. b. Press Ctrl + c. c. Select PIPE-2's Diameter while holding down Ctrl + Shift. d. Press the Page Down button on the keyboard. e. Let go of Ctrl + Shift. f. Press Ctrl + v. g. Repeat steps 1 through 6 for Roughness and Wall. 12. Choose Exit on the File Menu.
12 / 40
13 / 40
Step 7: Heattransfer
We will here define the HEATTRANSFER keyword. 1. Right click on PIPELINE on the canvas. 2. Select Add > Boundary&InitialConditions > HEATTRANSFER. 3. In the Properties dialog, click on the Property Page button .
4. Enter the Tambient, Hambient, and Hmininnerwall as shown above. 5. Click OK.
14 / 40
Step 8: Source
How to add a source. 1. Right click on PIPELINE on the canvas. 2. Select Add > Boundary&InitialConditions > SOURCE. 3. In Properties dialog, set keys in the Position section of the SOURCE.
4. In Properties dialog, click on the Timeseries button . 5. Enter TIME = 0, 1 H, TEMPERATURE = 2:30 C, and MASSFLOW = 15, 20 kg/s. 6. Change the GASFRACTION from -1 to 2:0.1 and the TOTALWATERFRACTION from 0 to 2:0.4
15 / 40
7. Click OK.
16 / 40
Step 9: Output
Here, we will add some plotting variables that we want look at after the simulation has been run. TREND TRENDDATA on Case Level TRENDDATA on Flowpath Level PROFILE PROFILEDATA on Case Level PROFILEDATA on Flowpath Level OUTPUT
First, learn how to define how often the TREND variables are to be written to file.
17 / 40
Next, in Part II you will learn how you can view the results of your simulation.
18 / 40
First, learn how to set the default units for the variables to plot.
19 / 40
4. A warning is displayed, click on Yes. 5. Click OK. All temperatures plotted will now be shown in degrees Celsius.
20 / 40
3. Click OK, the Trend plot is shown. 4. Right click in the chart, select Edit > Titles... 5. Delete "Trend Plot" 6. Write "60 bara outlet pressure" 7. Close the trend plot.
Next, learn how to use templates when creating Trend or Profile plots.
21 / 40
Using Templates
Templates for Trend and Profile plot can be stored and re-used. To store a template do the following: 1. Make the wanted changes to the plot by using the Configuration... dialog accessed from the Edit menu. 2. To save the template choose Save As Template from the File menu. 3. To open a template choose Open Template from the File menu. Next time you want to create a Trend plot, you can simply use the template. Click on the drop-down arrow next to and select a template previously stored.
22 / 40
5. Click OK, the Profile plot is shown. 6. Right click in the Profile plot, select Edit > Select, the Select variables... dialog is shown. 7. Double click on HOL and GT. 8. Click OK. 9. Close the profile plot.
23 / 40
Network Plot
1. Right click on the canvas. 2. Select Network Plot > Load profile plot... 3. In the Select variable... dialog select GT. 4. Click OK. 5. Press to start the viewing of total mass flow through PIPELINE.
To deselect the Network Plot, do the following: 1. Right click on the canvas. 2. Select Network Plot > Unload profile plot.
24 / 40
Export data
How to export data from the results files (*.tpl and *.ppl) is described below. 1. Open the Select variables... dialog either for trend or profile plot. 2. Mark the variables to export. N.B., you can only exports variables from one file at the time. 3. Press the Export button. (If it is profile data, a time selection box will be activated. Chose the points in time that are to be exported. Click OK.) The data is copied to the clipboard. 4. Open Excel or a text editor and paste the data into a file.
25 / 40
Tabulate Data
To tabulate data for given points in time or positions, Track Values can be used in Trend and Profile plots. 1. Open the trend or profile plot with the variables that are to be tabulated. 2. Right click in the plot and select View > Track Values. 3. Find the point(s) in time/position(s) to tabulate. Click once with the left mouse button. Repeat until all points in time or positions of interest are tracked.
4. Right click in one of the frozen track value dialogs, and select Copy all data. 5. The data is copied to the clipboard. 6. Open Excel or a text editor and paste the data into a file.
26 / 40
27 / 40
Process Equipment
Based on the SampleCase built in Part I, you will now learn how to add process equipment. 1. Open SampleCase. 2. Double click on PIPELINE. 3. Click on the Components button on the Toolbar menu. ProcessEquipment is opened, however, there are two other options as well; Piping and BoundaryInitialConditions.
4. Click on VALVE, hold down the mouse button and drag it onto the canvas, release. 5. In the Properties dialog, give the following data:
28 / 40
Restart
The following is based on the case that was built in Part I. If you already have a case that you want to make a restart from go to step 7. 1. Change the outlet pressure from 60 bara to 20 bara. This can be done in the following way: click on the OUTLET node on the canvas, change the pressure in the Properties dialog. 2. Choose Save Case As... from the File menu. 3. Change the File name to SteadyStateCase. 4. Click Save. 5. On Output on Case Level add the branch variable LIQC to TRENDDATA. 6. Run the simulation. 7. Choose Duplicate Case... on the file menu. 8. Change the File name to RestartCase. 9. Click Save. Both the SteadyStateCase.opi and RestartCase.opi files will be part of the same project. The following steps apply for RestartCase. 10. Select RESTART under CaseDefinition in the Model View (make sure you are doing this on the correct file). 11. In the Properties dialog, set READFILE to ON and select the entry field for FILE. 12. Click on 13. Select SteadyStateCase.rsw. 14. Click Open. A restart case has been defined. The keys that are gray, e.g., WALL and MATERIAL cannot be changed. All keys that can be changed (given in black) will be reread if changed, e.g., MASSFLOW for SOURCE.
29 / 40
Slug Tracking
Based on the restart file that was made during the restart task, you will here learn how to add slug tracking. 1. Right click on RestartCase in Model View, select Add > FA-models > SLUGTRACKING. 2. Change HYDRODYNAMIC in the Properties dialog to ON. (The values written in Italics are default values.)
30 / 40
Part IV - Options
Part IV illustrate how to two different options in OLGA; how to change OLGA executable in the GUI and how to set case dependencies in a project.
31 / 40
Next, learn how to Run Project and set up dependencies between cases within a project.
32 / 40
Run Project
Here you will learn how to run all your cases belonging to a project in one action. This functionality is called Run Project. Before you can start Run Project, you have to establish the dependencies between the cases included in the project. Follow steps 1 through 4. 1. On the Project menu, click Project Dependencies...
2. Choose the case in the drop-down list that you want to set the dependencies for. E.g., the project defined in the previous Parts contain the cases: SampleCase.opi, SteadyStateCase.opi, and RestartCase.opi. The first two cases do not depend on any other cases, but RestartCase.opi depends on SteadyStateCase.opi. 3. The order of the simulations is shown on the right side of the Project Dependencies window. 4. Click OK when all dependencies are specified. 5. Your project is now ready to run. On the Simulation menu, select Run Project. Alternatively, you can select Run Project Batch. The cases are run in the specified order given through the dependencies.
33 / 40
34 / 40
Select parameters
1. Right click on the text <Right-click to select parameter>. 2. Choose Select Parameter... 3. From the drop-down menu in the Select Parameter dialog, choose the group of keywords that contains the parameter that is to be changed.
4. Double click or press the > button on the keyword to be selected, e.g., SOURCE. 5. Click on the text <Click to select parameter>. 6. Select, e.g., MASSFLOW. N.B., if the diameter for the entire geometry of a flowpath is to be changed, move all PIPEs to the right side and select diameter as parameter. 7. Click OK. Repeat steps 1 through 7 for each parameter to be investigated.
35 / 40
Next, learn how one alternatively can give the parameterss values by use of the Matrix..
36 / 40
Matrix...
Matrix... is an input option for writing values directly instead of using Set Values. It is to be used when more than one parameter is to be changed and all combinations of parameter values are to be considered (e.g., NxM). 1. Click on the Matrix... button.
37 / 40
38 / 40
2. Select variable type, trend or profile variables. 3. Select the x-axis parameter. 4. Select the variable that should be plotted against the x-axis parameter. 5. Select the second parameter to get several graphs, this is optional. N.B., a single point will not be shown in the graph. 6. Press the Plot button
39 / 40
7. The Tabulate button can be used if you want to tabulate the data from the graph. Select the time and position (only for profile plots) and press the Tabulate.
8. To export the tabulated data press the Export button. The data is then copied to the clipboard.
40 / 40