Professional Documents
Culture Documents
Olga-Tutorial PDF
Olga-Tutorial PDF
You can either go through the Tutorial task by task, starting with Part I, or you can search for subjects you
want to learn more about.
For more information about the features of the GUI, please read Get Started or use F1.
1 / 40
Please enter the Project title here
2 / 40
Please enter the Project title here
2. If you want to save in a different folder, locate and open/create the folder
4. Click Save
3 / 40
Please enter the Project title here
2. Select one of the templates; in this sample an OLGA Empty case is selected
4. Click Save
The new case SampleCase is now part of the project SampleProject that was defined in Step 1.
4 / 40
Please enter the Project title here
In the following steps it is shown how to enter information to the CASE keyword.
1. Go to Model View
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
Please enter the Project title here
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.
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
Please enter the Project title here
7 / 40
Please enter the Project title here
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).
6. Click on NODE_0.
8 / 40
Please enter the Project title here
8. Click on NODE_1.
9 / 40
Please enter the Project title here
10 / 40
Please enter the Project title here
Step 6: Geometry
The Flowpath that we added in Step 5 contains a default GEOMETRY. We are now going to modify
GEOMETRY.
3. Choose the table representation of GEOMETRY-1 (second tab, also marked in yellow).
11 / 40
Please enter the Project title here
11. Copy the PIPE-1's Diameter, Roughness, and Wall to the other pipes. This can be done in the
following way:
b. Press Ctrl + c.
f. Press Ctrl + v.
12 / 40
Please enter the Project title here
13 / 40
Please enter the Project title here
Step 7: Heattransfer
We will here define the HEATTRANSFER keyword.
5. Click OK.
14 / 40
Please enter the Project title here
Step 8: Source
How to add a source.
6. Change the GASFRACTION from -1 to 2:0.1 and the TOTALWATERFRACTION from 0 to 2:0.4
15 / 40
Please enter the Project title here
7. Click OK.
16 / 40
Please enter the Project title here
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
Please enter the Project title here
The case is automatically saved before it is run. The simulation information is given in the output window.
Next, in Part II you will learn how you can view the results of your simulation.
18 / 40
Please enter the Project title here
First, learn how to set the default units for the variables to plot.
19 / 40
Please enter the Project title here
3. Scroll down until you find TEMPERATURE and change unit from K to C.
5. Click OK.
20 / 40
Please enter the Project title here
2. Mark variables either by double clicking on the selected variable(s) or by pressing space bar. All
variables can be marked by selecting Mark all from the right click menu.
Next, learn how to use templates when creating Trend or Profile plots.
21 / 40
Please enter the Project title here
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.
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
Please enter the Project title here
2. In the Select variables... dialog, double click on TM, fluid temperature. The variable is marked.
3. Columns in the Select variables... dialog can be moved around into desired positions. Select a
column and drag-and-drop it to its desired location. Columns can also be deleted and added from
the right click menu. Click on X Axis Variable heading and hold the mouse button down, while
moving the mouse cursor, drop it next to Branch heading.
4. Click on Pipeline length (m) and select Horizontal length (m) as illustrated below.
6. Right click in the Profile plot, select Edit > Select, the Select variables... dialog is shown.
8. Click OK.
23 / 40
Please enter the Project title here
Network Plot
1. Right click on the canvas.
4. Click OK.
24 / 40
Please enter the Project title here
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
Please enter the Project title here
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.
6. Open Excel or a text editor and paste the data into a file.
26 / 40
Please enter the Project title here
27 / 40
Please enter the Project title here
Process Equipment
Based on the SampleCase built in Part I, you will now learn how to add process equipment.
1. Open SampleCase.
4. Click on VALVE, hold down the mouse button and drag it onto the canvas, release.
28 / 40
Please enter the Project title here
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.
4. Click Save.
9. Click Save. Both the SteadyStateCase.opi and RestartCase.opi files will be part of the same project.
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
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
Please enter the Project title here
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
Please enter the Project title here
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
Please enter the Project title here
3. If the version you want to switch to is listed in the version list, then mark that version and click OK. If
the desired version is not listed, carry out the following steps:
a. Click Advanced...
d. Click Open.
f. Click OK.
g. Click OK.
Next, learn how to Run Project and set up dependencies between cases within a project.
32 / 40
Please enter the Project title here
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.
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.
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
Please enter the Project title here
1. Open the case that the parametric study shall be based on.
2. Choose Parametric studies from the Tools menu and select Add study...
4. Different types of name for the parametric cases can be chosen. By default, the parametric cases
are named: 1.opi, 2.opi, and so on. Using Decoration equal to, e.g., "Massflow%1-Pres%2" the
parametric cases will be named: Massflow<the value of the first parameter>-Pres<the value of the
second parameter>.
34 / 40
Please enter the Project title here
Select parameters
1. Right click on the text <Right-click to 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.
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.
35 / 40
Please enter the Project title here
2. Select Range
4. Click OK
Next, learn how one alternatively can give the parameters’s values by use of the Matrix..
36 / 40
Please enter the Project title here
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).
37 / 40
Please enter the Project title here
38 / 40
Please enter the Project title here
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.
39 / 40
Please enter the Project title here
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