Professional Documents
Culture Documents
LedaFlow Tutorial LedaFlow Tutorial. Study of Severe Slugging Effects in A Pipeline - Riser Geometry
LedaFlow Tutorial LedaFlow Tutorial. Study of Severe Slugging Effects in A Pipeline - Riser Geometry
LedaFlow Tutorial LedaFlow Tutorial. Study of Severe Slugging Effects in A Pipeline - Riser Geometry
LedaFlow® Tutorial
Table of contents
Sommaire
Introduction ............................................................................................................................................. 1
Create a database .................................................................................................................................... 2
Create a case ........................................................................................................................................... 3
Set PVT option ......................................................................................................................................... 6
Set heat transfer option .......................................................................................................................... 9
Define the pipe wall properties ............................................................................................................. 10
Set pipe geometry ................................................................................................................................. 13
Configure mesh ..................................................................................................................................... 15
Set boundary conditions ....................................................................................................................... 17
Set numerical parameters ..................................................................................................................... 18
Run the case .......................................................................................................................................... 20
Plot and export the results .................................................................................................................... 21
LedaFlow® Tutorial 2014
Introduction
This tutorial has been designed to study the severe slugging effects found in a simple geometry, using
water and air at atmospheric pressure. The document teaches step by step the basic features of
LedaFlow: from creating a database and a new case to analysing the obtained results.
Geometry
This tutorial will be based on a previous report written by J.Fabre et al for the Society of Petroleum
Engineers, published in 1987 (SPE 16846).. The following figure represents the geometry of the
pipeline that will be used during this exercise.
Pipeline/Riser geometry
14
12
Z - Pipe height (m)
10
8
6
4
2
0
0 5 10 15 20 25
X - Pipe length (m)
Device characteristics
1
LedaFlow® Tutorial 2014
Create a database
LedaFlow uses a MySQL version 5.1 as a database service. The user has the possibility to create
several databases inside MySQL to organise data. The database management tool allows the user to
manage all the databases and their contents.
2
LedaFlow® Tutorial 2014
Click on “Close” once the database has been created. Your case will be saved in this
database.
Note: LedaFlow saves automatically all changes and results. You do not need to save it manually.
Create a case
3
LedaFlow® Tutorial 2014
4
LedaFlow® Tutorial 2014
5
LedaFlow® Tutorial 2014
For this exercise, the user must set the thermodynamics options in order to run the calculation
because we use a water-air mixture. The user could you use a specific PVT table or introduce the
thermodynamic variables as constants among other options. In this tutorial the above-mentioned
case will be explained.
6
LedaFlow® Tutorial 2014
7
LedaFlow® Tutorial 2014
8
LedaFlow® Tutorial 2014
LedaFlow includes several options for heat transfer modelling: U Value, walls and dynamic walls.
According to the option selected, the user will have to set up the wall properties.
9
LedaFlow® Tutorial 2014
Define the pipe wall properties by clicking on the “Walls library” icon
10
LedaFlow® Tutorial 2014
Under “Wall layers” option, click twice on to add two new layers
Select the material “Steel” for the first layer, “Insulation” for the second one and “Isolated”
for the last one
Set a thickness of 5 mm for each layer
11
LedaFlow® Tutorial 2014
12
LedaFlow® Tutorial 2014
LedaFlow opens the following window, where you can edit the pipeline geometry and properties.
Open the Excel file that contains the geometry of the pipeline for this case
Copy the content of the file and paste it in the “Pipe Properties” window
Under the “Walls” column, double-click on “Wall1” and change the assigned wall to
“FlowlineWall”. Do so for all geometry points to have the same wall all over.
Once the geometry is set, click on “Ok”. The following message appears
13
LedaFlow® Tutorial 2014
The aim of this message is to warn the user that any changes on the geometry will affect the
mesh and the simulation results. Make sure that your geometry is well defined before
running the case
Click on “Yes” to continue
14
LedaFlow® Tutorial 2014
Configure mesh
Set the mesh for the pipe by clicking on the “Edit mesh in construction” icon
15
LedaFlow® Tutorial 2014
The following graph shows the geometry, the meshing and the L-Ratio of the S-Riser system
If you change the geometry in the “Pipe Properties Window”, you will have to update the meshing to
continue
It is the ratio between the length of two consecutive cells and it is really important to keep it lower
than 2 to run the calculation. Otherwise, LedaFlow will send a warning message.
In any case, start the simulation with a fine mesh, like the one you have just created, and then try to
simplify it. However, it is not advisable to have long cell lengths near the base of the riser and within
the catenary. The idea is to be able to account for the filling and emptying of the base of the pipe,
and if cells are too long, this effect may not be observed correctly.
16
LedaFlow® Tutorial 2014
Gas
Right click on the inlet node
Click on “Properties”
Choose No for the “flash inflow” option
Time (s) 0
Ft (kg/s) 0.2807
mg (-) 0.0019
ml (-) 0.9981
Temperature (°C) 20
17
LedaFlow® Tutorial 2014
LedaFlow is using a dynamic time step which means the size of the time step depends on the grid and
the velocities through the CFL number.
The numerical settings are defined by: the maximum time step, the CFL number, the sample rate and
the time to advance the solution.
18
LedaFlow® Tutorial 2014
19
LedaFlow® Tutorial 2014
Once LedaFlow has finished simulating the case, the progress bar will be complete. If you go to the
“Output” tab, under the Status window, you can see the errors encountered (if any) and a review of
the simulation numerical results.
20
LedaFlow® Tutorial 2014
You can visualise the terrain slugging effect by plotting the pressure as a function of time for the
lowest point of the pipe. This point is the most interesting one, because it is where the liquid
accumulates and does not let the gas go through.
To create a plot, click on the “Create a new plot” icon on the toolbar.
Make sure that “Flowline” is selected under the “Plot Object” list
Under the “Templates” tab, ungroup “PT and phase mass flowrates” by clicking on the [+]
sign
21
LedaFlow® Tutorial 2014
Select “Pressure” to plot pressure evolution with time for this pipe
You can also choose “Pressure” from the “Select Variables” tab.
Once you click “Ok”, a new window will be opened where you will see the simulation results. By
default, LedaFlow plots the trend of the first mesh cell. You will need to instruct LedaFlow to show
you the results for the lowest point of the pipe.
To do so, click on the “Edit Position” icon on the toolbar located on the up-left corner of the
new window.
22
LedaFlow® Tutorial 2014
In the new window that appears, drag the position bar to reach the bottom of the pipe, at
25.1277 m (cell number 148).
Click on “Ok”. LedaFlow will plot the pressure trend on this point.
To export the results to a .csv format, click con the “Export data to .csv file” icon on the toolbar.
This will allow you to work on the results in other software, like Excel.
Congratulations, you have finished the tutorial. Analyse the results of the simulation in terms of
pressure amplitudes and slugging periods.
23
LedaFlow® Tutorial 2014
Annexe
24